| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- /**
- * 详情
- * */
- $(function () {
- var edit_id = helper.request.queryString("edit_id");
- if (edit_id) {
- getSchedule(edit_id);
- }
- });
- //获取详情
- function getSchedule(edit_id) {
- $.getJSON(huayi.config.callcenter_url + "Workcalendar/GetSingle", {
- id: edit_id,
- token: $.cookie('token')
- }, function (res) {
- if (res.state.toLowerCase() === 'success') {
- scheduleDatas = res.data;
- $('#iscus').text(formatterIsCus(scheduleDatas.F_IsRead));
- $('#remindtime').text(scheduleDatas.F_Date);
- $('#createuser').text(scheduleDatas.F_CreateUser);
- $('#createtime').text(scheduleDatas.F_CreateTime);
- if (scheduleDatas.F_Content) {
- $('#content').html(helper.filter.content(scheduleDatas.F_Content));
- } else {
- $('#content').text('暂无内容。。。');
- }
- }
- })
- }
- // 格式化是否客户查看
- function formatterIsCus(val) {
- var statusMap = {
- false: '未读',
- true: '已读'
- }
- return statusMap[val];
- }
|