阜外心血管项目前端

scheduleDetail.js 939B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * 详情
  3. * */
  4. $(function () {
  5. var edit_id = helper.request.queryString("edit_id");
  6. if (edit_id) {
  7. getSchedule(edit_id);
  8. }
  9. });
  10. //获取详情
  11. function getSchedule(edit_id) {
  12. $.getJSON(huayi.config.callcenter_url + "Workcalendar/GetSingle", {
  13. id: edit_id,
  14. token: $.cookie('token')
  15. }, function (res) {
  16. if (res.state.toLowerCase() === 'success') {
  17. scheduleDatas = res.data;
  18. $('#iscus').text(formatterIsCus(scheduleDatas.F_IsRead));
  19. $('#remindtime').text(scheduleDatas.F_Date);
  20. $('#createuser').text(scheduleDatas.F_CreateUser);
  21. $('#createtime').text(scheduleDatas.F_CreateTime);
  22. if (scheduleDatas.F_Content) {
  23. $('#content').html(helper.filter.content(scheduleDatas.F_Content));
  24. } else {
  25. $('#content').text('暂无内容。。。');
  26. }
  27. }
  28. })
  29. }
  30. // 格式化是否客户查看
  31. function formatterIsCus(val) {
  32. var statusMap = {
  33. false: '未读',
  34. true: '已读'
  35. }
  36. return statusMap[val];
  37. }