| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- $(function() {
- var id = helper.request.queryString("id");
- Ajax(id);
-
- function Ajax(id) {
- $.ajax({
- type: "get",
- url: huayi.config.callcenter_url + "callcenterapi/api/Knowledge/getsingle",
- async: true,
- dataType: 'json',
- data: {
- token: $.cookie("token"),
- id: id
- },
- success: function(data) {
- var con = data.data;
- if(data.state.toLowerCase() == 'success') {
- //alert(con.types[0]);
- $('.lb').html(con.typenames[0]); //所属类别
- // if (con.types[0]) {
- // $('.lb').html(con.types[0]); //所属类别
- // } else if (con.types[1]{
- // $('.lb').html(con.types[1]); //所属类别
- // } else if (con.types[2]{
- // $('.lb').html(con.types[2]); //所属类别
- // } else if (con.types[3]{
- // $('.lb').html(con.types[3]); //所属类别
- // }else if (con.types[4]{
- // $('.lb').html(con.types[4]); //所属类别
- // }else if (con.types[5]{
- // $('.lb').html(con.types[5]); //所属类别
- // }else if (con.types[6]{
- // $('.lb').html(con.types[6]); //所属类别
- // }
- $('.cjr').html(con.model.createuser); //创建人
- $('.time').html(con.model.createtime); //创建日期
- $('.content').html(con.model.content); //创建内容
- $('.con_title').html(con.model.title); //创建标题
- }
- }
- });
- }
- })
|