1001310049_edit.jsp 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <html>
  2. <head>
  3. <style>
  4. /*禁止页面滚动条 star*/
  5. body {
  6. overflow-y: hidden;
  7. }
  8. .layui-table-body {
  9. overflow-x: hidden;
  10. }
  11. /*禁止页面滚动条 end*/
  12. .el-avatar {
  13. vertical-align: middle;
  14. }
  15. .el-avatar>img {
  16. vertical-align: top;
  17. }
  18. .el-avatar--circle {
  19. border: 1px solid #b5b5b5;
  20. }
  21. .urge_notManage {
  22. height: calc(100% - 174px);
  23. overflow-y: auto;
  24. }
  25. .iconPathDisabled {
  26. position: absolute;
  27. bottom: -1px;
  28. right: 6px;
  29. line-height: normal;
  30. font-size: 18px;
  31. border-radius: 50%;
  32. background-color: #fff;
  33. }
  34. .ck-toolbar, .ck-editor__editable_inline {
  35. border: none !important;
  36. }
  37. </style>
  38. </head>
  39. <body>
  40. <div id="space-content">
  41. <div class="urge_notManage">
  42. <table lay-filter="appDataTable" lay-data="{id: 'auditIds'}" class="layui-table">
  43. <thead>
  44. <tr>
  45. <th lay-data="{field:'auditId', width: 80, type:'checkbox'}"></th>
  46. <th lay-data="{field:'0', width: 80}">头像</th>
  47. <th lay-data="{field:'1'}">办理人员</th>
  48. <th lay-data="{field:'2'}">节点</th>
  49. <th lay-data="{field:'3'}">接收时间</th>
  50. <th lay-data="{field:'4'}">状态</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr v-for="item in auditPersonData">
  55. <td>
  56. <input type="hidden" :value="item.auditId" :disabled="!item.bindMsg" />
  57. </td>
  58. <td>
  59. <div style="position: relative;">
  60. <el-avatar :size="36" :src="item.iconPath">
  61. {{item.personName}}
  62. </el-avatar>
  63. <i title="该用户未绑定微信,无法发送消息" class="iconPathDisabled spaceicon icon-null" v-if="!item.bindMsg"></i>
  64. </div>
  65. </td>
  66. <td>
  67. {{item.personName}} / {{item.postName}}
  68. </td>
  69. <td>
  70. {{item.nodeTitle}}
  71. </td>
  72. <td>
  73. {{item.time}}
  74. </td>
  75. <td>
  76. <span style="color: #f42331;" v-if="!item.checkTime">未查看</span>
  77. <span style="color: #999999;" v-if="item.checkTime">已查看</span>
  78. </td>
  79. </tr>
  80. </tbody>
  81. </table>
  82. </div>
  83. <el-form action="@service{name:`sys_urged_audit`}@" method="post" :model="obj" ref="obj" style="height: 174px;">
  84. <!-- 富文本框 -->
  85. <div class="process-editor" style="height: 174px;">
  86. <space-editor v-model="obj.content" type="flow" height="85px" placeholder="请输入催促内容" ref="editor"></space-editor>
  87. <div class="process-handle-brn">
  88. <el-button type="primary" icon="el-icon-s-promotion" size="small" @click="space.forms.submit();">催促
  89. </el-button>
  90. </div>
  91. </div>
  92. </el-form>
  93. </div>
  94. </body>
  95. <script type="text/javascript">
  96. var auditPersonList = '${auditPersonList}';
  97. space.vue = new Vue({
  98. el: space.appContent,
  99. data() {
  100. return {
  101. obj: {
  102. auditIds: undefined,
  103. cmsId: undefined,
  104. content: '',
  105. },
  106. auditPersonData: space.utils.isNull(auditPersonList) ? [] : JSON.parse(auditPersonList),
  107. winInterval: undefined
  108. };
  109. },
  110. mounted: function () {
  111. var _this = this;
  112. this.winInterval = setInterval(function() {
  113. if (!_this.$refs.editor.editor) {
  114. return;
  115. }
  116. window.clearInterval(_this.winInterval);
  117. space.plugins.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
  118. _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
  119. }, 100);
  120. }
  121. })
  122. space.forms.before = function() {
  123. space.vue.$data.obj.auditIds = space.plugins.layuiTable.checkbox.getSelectedStr('auditIds', 'auditId')
  124. if (space.vue.$data.obj.auditIds.length == 0) {
  125. space.layMsg.warning("未选择办理人");
  126. return false;
  127. }
  128. if (!space.vue.$data.obj.content) {
  129. space.layMsg.warning('请输入催促内容');
  130. return false;
  131. }
  132. space.plugins.ckEditor.CMS.submit(space.vue.$refs.editor.editor);
  133. return true;
  134. }
  135. </script>
  136. </html>