cloud-web-corejs 1.0.54-dev.24 → 1.0.54-dev.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/package.json +6 -3
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/view.vue +22 -6
  6. package/src/components/advancedSearchDialog/mixins.js +1 -1
  7. package/src/components/baseAttachment/index.vue +22 -13
  8. package/src/components/baseAttachment/mixins.js +1 -1
  9. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  10. package/src/components/excelExport/index.js +2 -1
  11. package/src/components/excelExport/index.vue +8 -6
  12. package/src/components/excelExport/mixins.js +3 -2
  13. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  14. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
  15. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  16. package/src/components/fileLibrary/filterDialog.vue +383 -0
  17. package/src/components/fileLibrary/index.vue +23 -24
  18. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  19. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  20. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  21. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +337 -207
  22. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  23. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  24. package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
  25. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  26. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  27. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  28. package/src/components/fileLibrary/shareDialog.vue +1 -1
  29. package/src/components/formOplog/mixins.js +77 -1
  30. package/src/components/jsonImport/index.js +1 -1
  31. package/src/components/jsonImport/mixins.js +1 -1
  32. package/src/components/onlineTalk/index.vue +277 -121
  33. package/src/components/onlineTalk/mixins.js +1 -1
  34. package/src/components/statusTag/mixins.js +66 -1
  35. package/src/components/table/CellSlot.vue +1 -0
  36. package/src/components/table/index.js +12 -10
  37. package/src/components/table/tableForm.vue +99 -63
  38. package/src/components/table/tableFormMixin.js +1 -1
  39. package/src/components/table/util/index.js +328 -0
  40. package/src/components/table/vxeFilter/mixin.js +1 -1
  41. package/src/components/vb-tabs/x-tabs.vue +3 -2
  42. package/src/components/wf/content.vue +2 -0
  43. package/src/components/wf/setCandidateDialog.vue +1 -0
  44. package/src/components/wf/wf.js +1774 -1
  45. package/src/components/wf/wfStartDialog.vue +1 -1
  46. package/src/components/wf/wfUtil.js +1 -1
  47. package/src/components/xform/form-designer/designer.js +1 -1
  48. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  49. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  50. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  51. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  52. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  53. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  54. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
  55. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  56. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  57. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  58. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  59. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  60. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  61. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  62. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  63. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  64. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1400 -16
  65. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +259 -6
  66. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  67. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  68. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  69. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  70. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  71. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  72. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  73. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
  74. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  75. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
  76. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  77. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
  78. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  79. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +6 -2
  80. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  81. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  82. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  83. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  84. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  85. package/src/components/xform/form-designer/indexMixin.js +811 -1
  86. package/src/components/xform/form-designer/setting-panel/form-setting.vue +834 -154
  87. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  88. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  89. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
  90. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  91. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  93. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  94. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  95. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
  96. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  97. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1043 -496
  98. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  99. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  100. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  101. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  102. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  103. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  104. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  105. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  106. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  107. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +48 -5
  108. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  109. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  110. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  111. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  112. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  113. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  114. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  115. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  116. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  117. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  118. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  119. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  120. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  121. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
  122. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  123. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  124. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  125. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  126. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  127. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  128. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  129. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  130. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  131. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
  132. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
  133. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  134. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +301 -19
  135. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
  136. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +265 -0
  137. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +17 -6
  138. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  139. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  140. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  141. package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
  142. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +755 -362
  143. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  144. package/src/components/xform/form-render/container-item/data-table-item.vue +45 -15
  145. package/src/components/xform/form-render/container-item/data-table-mixin.js +21 -18
  146. package/src/components/xform/form-render/container-item/data-table-mixin2.js +2169 -0
  147. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  148. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  149. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  150. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  151. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  152. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  153. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  154. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  155. package/src/components/xform/form-render/indexMixin.js +2387 -3
  156. package/src/components/xform/lang/zh-CN.js +14 -3
  157. package/src/components/xform/mixins/defaultHandle.js +1 -1
  158. package/src/components/xform/mixins/scriptHttp.js +174 -1
  159. package/src/components/xform/utils/emitter.js +4 -4
  160. package/src/components/xform/utils/format.js +21 -30
  161. package/src/components/xform/utils/formula-util.js +669 -0
  162. package/src/components/xform/utils/util.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/layout/components/AppMain.vue +5 -1
  165. package/src/layout/components/Sidebar/default.vue +50 -6
  166. package/src/layout/components/TagsView/index.vue +22 -8
  167. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  168. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  169. package/src/layout/components/extractedCode/viewDialog.vue +192 -0
  170. package/src/layout/components/watermark/index.vue +83 -0
  171. package/src/layout/defaultLayout.vue +1 -1
  172. package/src/mixins/selectDialog/index.js +1 -1
  173. package/src/mixins/tableTree/index.js +1 -1
  174. package/src/router/modules/customer.js +15 -0
  175. package/src/store/config/index.js +667 -1
  176. package/src/store/modules/permission.js +1 -1
  177. package/src/store/modules/settings.js +1 -1
  178. package/src/store/modules/user.js +1 -1
  179. package/src/utils/index.js +4 -2
  180. package/src/utils/pddLog.js +103 -0
  181. package/src/utils/request.js +28 -357
  182. package/src/utils/vab.js +19 -27
  183. package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
  184. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  185. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  186. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  187. package/src/views/bd/setting/bd_company_env/dialog.vue +161 -0
  188. package/src/views/bd/setting/bd_company_env/edit.vue +151 -0
  189. package/src/views/bd/setting/bd_company_env/list.vue +164 -0
  190. package/src/views/bd/setting/config_manage/list.vue +49 -0
  191. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  192. package/src/views/bd/setting/form_import_log/list.vue +205 -0
  193. package/src/views/bd/setting/form_script/edit.vue +9 -0
  194. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  195. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  196. package/src/views/bd/setting/form_script/list1.vue +4 -4
  197. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  198. package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
  199. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  200. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  201. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  202. package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
  203. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  204. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  205. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  206. package/src/views/bd/setting/form_template/edit.vue +22 -1
  207. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  208. package/src/views/bd/setting/form_template/list.vue +5 -5
  209. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  210. package/src/views/bd/setting/form_template/mixins/edit.js +201 -1
  211. package/src/views/bd/setting/form_template/mixins/list.js +688 -22
  212. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  213. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  214. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  215. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  216. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  217. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  218. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  219. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  220. package/src/views/bd/setting/table_model/edit.vue +862 -426
  221. package/src/views/bd/setting/table_model/list.vue +4 -4
  222. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  223. package/src/views/bd/setting/table_model/mixins/edit.js +1130 -13
  224. package/src/views/bd/setting/table_model/mixins/list.js +439 -14
  225. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  226. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  227. package/src/views/user/area/dialog.vue +21 -9
  228. package/src/views/user/bill_setting/edit.vue +1 -1
  229. package/src/views/user/bill_setting/list.vue +1 -1
  230. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  231. package/src/views/user/common_attribute/list.vue +1 -1
  232. package/src/views/user/common_script/edit.vue +1 -1
  233. package/src/views/user/common_script/list.vue +1 -1
  234. package/src/views/user/company_info/dialog.vue +164 -154
  235. package/src/views/user/company_info/edit.vue +1 -1
  236. package/src/views/user/extend_datasource/dialog.vue +1 -0
  237. package/src/views/user/extend_datasource/edit.vue +3 -0
  238. package/src/views/user/extend_datasource/list.vue +2 -1
  239. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  240. package/src/views/user/fieldTranslation/list.vue +32 -32
  241. package/src/views/user/file_type/edit.vue +30 -1
  242. package/src/views/user/file_type/list.vue +28 -0
  243. package/src/views/user/form/vform/designer.vue +775 -749
  244. package/src/views/user/form/vform/out_render.vue +1 -1
  245. package/src/views/user/form/vform/render.vue +3 -3
  246. package/src/views/user/form/view/list.vue +30 -12
  247. package/src/views/user/groups/edit.vue +2 -0
  248. package/src/views/user/groups/list.vue +1 -0
  249. package/src/views/user/home/default.vue +1022 -979
  250. package/src/views/user/home/dev.vue +29 -0
  251. package/src/views/user/home/index.vue +16 -6
  252. package/src/views/user/login/default.vue +36 -5
  253. package/src/views/user/login/indexMixin.js +117 -3
  254. package/src/views/user/notify_message/dialog.vue +1 -1
  255. package/src/views/user/notify_template/edit.vue +188 -187
  256. package/src/views/user/notify_template/edit2.vue +176 -0
  257. package/src/views/user/notify_template/list.vue +4 -1
  258. package/src/views/user/notify_template/list2.vue +190 -0
  259. package/src/views/user/outLink/form_view.vue +39 -12
  260. package/src/views/user/outLink/index.vue +17 -0
  261. package/src/views/user/outLink/view.vue +28 -23
  262. package/src/views/user/position/dialog.vue +1 -1
  263. package/src/views/user/position/list.vue +4 -4
  264. package/src/views/user/project_tag/edit.vue +2 -2
  265. package/src/views/user/project_tag/list.vue +9 -4
  266. package/src/views/user/push_setting/list.vue +2 -2
  267. package/src/views/user/request_setting/edit.vue +253 -0
  268. package/src/views/user/request_setting/list.vue +249 -0
  269. package/src/views/user/role/dialog.vue +1 -1
  270. package/src/views/user/role/list.vue +4 -4
  271. package/src/views/user/sale_org/dialog.vue +1 -1
  272. package/src/views/user/sale_org/list.vue +4 -1
  273. package/src/views/user/user/dialog.vue +2 -2
  274. package/src/views/user/user/edit.vue +39 -19
  275. package/src/views/user/user/form_dialog.vue +158 -0
  276. package/src/views/user/user/form_edit.vue +63 -2
  277. package/src/views/user/user/form_info.vue +210 -0
  278. package/src/views/user/user/form_list.vue +1 -0
  279. package/src/views/user/user/list.vue +4 -20
  280. package/src/views/user/wf/wf_manage/list.vue +1 -1
  281. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  282. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  283. package/src/views/user/wf/wf_obj_config/itemEdit.vue +11 -1
  284. package/src/views/user/wf/wf_obj_config/list.vue +101 -10
  285. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,979 +1,1022 @@
1
- <template>
2
- <div class="index-home">
3
- <el-row>
4
- <el-col :span="8">
5
- <div class="i-user-info">
6
- <img class="img" v-if="headPhotoUrl" :src="headPhotoUrl"/>
7
- <p class="name">{{ $t1('您好') }},{{ userInfo.nickName }}</p>
8
- <p>{{ companyInfo.companyName }}</p>
9
- </div>
10
- <div class="notice-box">
11
- <div class="txt" @click="openMoreNotifyMessage()">
12
- <i class="iconfont icon-xiaoxitongzhi"></i>
13
- <span v-if="unreadMessageNum>0"
14
- v-html="$t1('您 有{number}条 未读消息,请及时查看。',{number: `<b>${(unreadMessageNum > 99 ? '99+' : unreadMessageNum)}</b>`})">
15
- </span>
16
- <span v-else-if="unreadMessageNum==0">
17
- {{ $t1('您 暂无 未读消息。') }}
18
- </span>
19
- </div>
20
- <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
21
- <el-button type="text" @click="getUnreadMessageNum(true)"><i class="el-icon-refresh"></i></el-button>
22
- </el-tooltip>
23
- <el-tooltip class="item" effect="dark" :content="$t1('查看更多')" placement="top">
24
- <el-button type="text" @click="openMoreNotifyMessage()" class="more">
25
- <i class="el-icon-news"></i>
26
- </el-button>
27
- </el-tooltip>
28
- </div>
29
- <el-card class="box-card">
30
- <div slot="header" class="clearfix">
31
- <span style="float:left">
32
- <i class="el-icon-chat-line-round ico"></i>
33
- {{ $t1('公告') }}
34
- </span>
35
- <el-button type="text" @click="openSystemNoticeDialog()"><span class="more">MORE+</span></el-button>
36
- </div>
37
- <div class="home-notice-list">
38
- <div v-for="(systemNotice,index) in systemNotices" :key="index" class="item"
39
- @click="openSystemNoticeDialog(systemNotice)"
40
- :title="systemNotice.title">
41
- {{ systemNotice.title }}
42
- <span class="time">{{ systemNotice.modifyDate.substring(0, 10) }}</span>
43
- </div>
44
- </div>
45
- </el-card>
46
- </el-col>
47
- <el-col :span="homeConfig.toDoSpan || 12" style="padding-left:6px;">
48
- <el-card class="box-card">
49
- <div slot="header" class="clearfix">
50
- <span style="float:left">
51
- <i class="el-icon-chat-line-round ico"></i>
52
- {{ $t1('待办事项') }}
53
- </span>
54
- <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
55
- <el-button type="text" @click="getWfInfoList(true)" class="more" style="right:107px">
56
- <i class="el-icon-refresh"></i>
57
- </el-button>
58
- </el-tooltip>
59
- <el-button type="text" @click="$router.push('/basic/wf/wf_manage/list')" class="more">
60
- <i class="el-icon-news"></i>
61
- <span>{{ $t1('查看更多+') }}</span>
62
- </el-button>
63
- </div>
64
- <div class="need-to">
65
- <vxe-grid :data="unDoWfRows" ref="table-wf" v-bind="wfOption"
66
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
67
- @custom="$vxeTableUtil.customHandle"></vxe-grid>
68
- </div>
69
- </el-card>
70
- </el-col>
71
- <el-col :span="4" style="padding-left:6px;" v-show="homeConfig.showFastTrack!==false">
72
- <el-card class="box-card">
73
- <div slot="header" class="clearfix">
74
- <span style="float:left">
75
- <i class="el-icon-star-off ico"></i>
76
- {{ $t1('快捷通道') }}
77
- </span>
78
- <el-button type="text" @click="showCommMenuDialog = true"><span class="more">MORE+</span></el-button>
79
- </div>
80
- <div class="fast-box">
81
- <div class="item" v-for="commMenu in commMenus" :key="commMenu.id">
82
- <a href="javascript:void(0);" @click="rourteTo(commMenu)">
83
- <p><i :class="!!commMenu.menuImg?('iconfont '+commMenu.menuImg):null"></i><span>{{
84
- commMenu.menuName
85
- }}</span></p>
86
- </a>
87
- </div>
88
- </div>
89
- </el-card>
90
- </el-col>
91
-
92
- <!-- <el-col :span="8">
93
- <el-card class="box-card">
94
- <div slot="header" class="clearfix">
95
- <span style="float:left">
96
- <i class="el-icon-message ico"></i>
97
- 消息通知
98
- </span>
99
- <el-button type="text" @click="openNotifyTemplateGroupDialog" class="more" style="right:100px">
100
- <i class="el-icon-receiving"></i>
101
- <span>选择分组</span>
102
- </el-button>
103
- <el-button type="text" @click="openMoreNotifyMessage()" class="more">
104
- <i class="el-icon-news"></i>
105
- <span>查看更多+</span>
106
- </el-button>
107
- </div>
108
- <div class="home-notice-list to-reed" style="height: 400px;">
109
- <div v-for="(notifyMessage,index) in notifyMessages" class="item"
110
- :class="{noread:notifyMessage.readed == 0}"
111
- :title="notifyMessage.content" @click="checkNotifyMessage(notifyMessage,index)">
112
- <div class="clearfix">
113
- <el-tag type="warning">{{
114
- notifyMessage.notifyTypeName
115
- }}
116
- </el-tag>
117
- <span class="time">{{
118
- notifyMessage.createDate
119
- }}</span>
120
- <div class="btns fr">
121
- <el-link type="primary" @click.stop="openNotifyMessageDialog(notifyMessage)"><i class="el-icon-files"></i>
122
- </el-link>
123
- </div>
124
- </div>
125
- <span class="name">{{ notifyMessage.content }}</span>
126
- </div>
127
- </div>
128
- </el-card>
129
- </el-col> -->
130
- </el-row>
131
- <slot></slot>
132
- <systemNoticeInfoDialog v-if="showSystemNoticeInfoDialog" :visiable.sync="showSystemNoticeInfoDialog"
133
- :param="csnRow" :appendToTop="true"></systemNoticeInfoDialog>
134
-
135
- <commMenuDialog v-if="showCommMenuDialog" :visiable.sync="showCommMenuDialog"
136
- @confirm="commMenuCallBack"></commMenuDialog>
137
- <wfContentDialog v-if="showWfDialog" :visible.sync="showWfDialog" @close="wfClose"
138
- :option.sync="wfContentOption"></wfContentDialog>
139
-
140
- <notifyMessageDialog ref="notifyMessageDialog"></notifyMessageDialog>
141
-
142
- <notifyMessageInfoDialog v-if="showNoticeDialog" :visiable.sync="showNoticeDialog"
143
- :dataId.sync="notifyMessageInfoId"
144
- @readHanlde="notifyMessageReadHanlde"></notifyMessageInfoDialog>
145
-
146
-
147
- <el-dialog
148
- :title="$t1('选择分组')"
149
- :append-to-body="true"
150
- :modal-append-to-body="true"
151
- :close-on-click-modal="false"
152
- v-if="showGroupDialog"
153
- :visible.sync="showGroupDialog"
154
- :modal="false"
155
- custom-class="el-dialog dialog-style list-dialog"
156
- width="355px"
157
- :destroy-on-close="true"
158
- >
159
- <div class="cont group-list">
160
- <div class="item" v-for="(notifyTemplate,index) in notifyTemplates" :key="index"
161
- @click="openMoreNotifyMessage(notifyTemplate.notifyType)">
162
- <i class="iconfont icon-fenzu"></i>
163
- <span class="name">{{ notifyTemplate.ntName }}</span>
164
- <!-- <span class="nums">99+</span>-->
165
- </div>
166
- </div>
167
- </el-dialog>
168
-
169
- </div>
170
- </template>
171
-
172
- <script>
173
- import systemNoticeInfoDialog from '../../../views/user/system_notice/infoDialog.vue';
174
- import commMenuDialog from '../../../views/user/commMenu/index.vue';
175
- import notifyMessageDialog from '../../../views/user/notify_message/dialog.vue';
176
- import notifyMessageInfoDialog from '../../../views/user/notify_message/infoDialog';
177
-
178
- import {getToken} from "@base/utils/auth";
179
- import wfContentDialog from "../../../views/user/wf/wf_manage/wfContentDialog";
180
- import corejsConfig from "@/corejsConfig";
181
-
182
- export default {
183
- name: 'home',
184
- components: {
185
- systemNoticeInfoDialog,
186
- commMenuDialog,
187
- notifyMessageDialog,
188
- notifyMessageInfoDialog,
189
- wfContentDialog
190
- },
191
- data() {
192
- return {
193
- showNoticeDialog: false,
194
- showGroupDialog: false,
195
- notifyTemplates: [],
196
- userInfo: {},
197
- companyInfo: {},
198
- systemNotices: [],
199
- showSystemNoticeInfoDialog: false,
200
- csnRow: null,
201
- headPhotoUrl: '',
202
- dialogVisible: true,
203
- unDoWfRows: [],
204
- wfOption: {},
205
- showWfDialog: false,
206
- wfContentOption: {},
207
- showWfContent: true,
208
- wfContent: null,
209
- wfDataId: '',
210
- showCommMenuDialog: false,
211
- commMenus: [],
212
- notifyMessages: [],
213
- notifyMessageInfoIndex: null,
214
- notifyMessageInfoId: null,
215
- unreadMessageNum: 0,
216
- activating: true,
217
- wfTimer: null,
218
- homeConfig:corejsConfig.homeConfig || {}
219
- };
220
- },
221
- activated() {
222
- this.activating = true;
223
- if (this.wfTimer) {
224
- this.timerExcFun(true);
225
- }
226
- },
227
- deactivated() {
228
- this.activating = false;
229
- },
230
- beforeDestroy() {
231
- this.clearTimer();
232
- },
233
- created() {
234
- this.getUserInfo();
235
- this.initSystemNotice();
236
- this.initCommMenu();
237
- this.initNotifyMessage();
238
- this.initWfParam();
239
- this.initWfTimer();
240
- },
241
- methods: {
242
- wfClose() {
243
- this.timerExcFun(true);
244
- },
245
- initWfTimer() {
246
- this.wfTimer = setInterval(() => {
247
- this.timerExcFun(false);
248
- }, 10000);
249
- this.timerExcFun(true);
250
- },
251
- timerExcFun(isLoading) {
252
- if (!this.activating) {
253
- return;
254
- }
255
- this.getWfInfoList(isLoading);
256
- this.getUnreadMessageNum(isLoading);
257
- this.$emit('timerHandle')
258
- },
259
- clearTimer() {
260
- clearInterval(this.wfTimer);
261
- this.wfTimer = null;
262
- },
263
- getUserInfo() {
264
- this.$http({
265
- url: USER_PREFIX + '/user/currentUser',
266
- method: 'post',
267
- success: res => {
268
- let userInfo = res.objx;
269
- this.headPhotoUrl = userInfo.headPhotoUrl ? userInfo.headPhotoUrl : require('@/resources/images' + '/default-header.png');
270
-
271
- this.userInfo = userInfo;
272
- }
273
- });
274
- this.$http({
275
- url: USER_PREFIX + '/company_info/getCurrent',
276
- method: `post`,
277
- success: res => {
278
- this.companyInfo = res.objx || {};
279
- }
280
- });
281
- },
282
- initSystemNotice() {
283
- this.$http({
284
- url: USER_PREFIX + '/system_notice/listPage',
285
- data: {publish: true},
286
- method: 'post',
287
- success: res => {
288
- this.systemNotices = res.objx && res.objx.records ? res.objx.records : [];
289
- }
290
- });
291
- },
292
- openSystemNoticeDialog(row) {
293
- this.csnRow = row || null;
294
- this.showSystemNoticeInfoDialog = true;
295
- },
296
- initUnDoWfInfo() {
297
- this.$http({
298
- url: AGILEBPM_PREFIX + '/wf_manage/listPage',
299
- data: {type: 0},
300
- method: 'post',
301
- success: res => {
302
- this.unDoWfRows = res.objx.records || [];
303
- }
304
- });
305
- },
306
- initWfTableList() {
307
- let that = this;
308
- let paramColumns = this.wfParamDTOs.map(item => {
309
- return {
310
- title: this.$t1(item.paramName),
311
- field: item.paramKey,
312
- width: 150
313
- };
314
- })
315
- var statuses = {running: this.$t1('审核中'), back: this.$t1('已驳回'), end: this.$t1('已完成')};
316
- let tableOption = {
317
- vue: this,
318
- tableRef: 'table-wf',
319
- tableName: 'home-table-wf',
320
- config: {
321
- height: 'auto'
322
- },
323
- columns: [
324
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
325
- {
326
- title: this.$t1('单据类型'),
327
- field: 'objTypeName',
328
- width: 150,
329
- fixed: 'left'
330
- },
331
- {
332
- title: this.$t1('流程主题'),
333
- field: 'name',
334
- width: 150
335
- },
336
- {
337
- title: this.$t1('启动人'),
338
- field: 'starterName',
339
- width: 150
340
- },
341
- {
342
- title: this.$t1('当前任务'),
343
- field: 'taskName',
344
- width: 150
345
- },
346
- {
347
- title: this.$t1('当前任务用户'),
348
- field: 'candidateNames',
349
- width: 150
350
- },
351
- {
352
- title: this.$t1('启动时间'),
353
- field: 'createDate',
354
- width: 150
355
- },
356
- ...paramColumns,
357
- {
358
- width: 47,
359
- fixed: 'right',
360
- title: '',
361
- sortable: false,
362
- slots: {
363
- default: ({row}) => {
364
- return [
365
- <a
366
- href="javascript:void(0);"
367
- class="a-link"
368
- onclick={() => {
369
- this.openWfDialog(row);
370
- }}
371
- >
372
- <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
373
- popper-class="tooltip-skin">
374
- <i class="el-icon-edit"/>
375
- </el-tooltip>
376
- </a>
377
- ];
378
- }
379
- }
380
- }
381
- ]
382
- };
383
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
384
- this.wfOption = opts;
385
- });
386
- },
387
- openWfDialog(row) {
388
- this.wfContentOption = {
389
- objId: row.objId,
390
- url: row.url,
391
- objTypeCode: row.objTypeCode
392
- };
393
- this.showWfDialog = true;
394
- },
395
- commMenuCallBack(datas) {
396
- this.commMenus = datas || [];
397
- },
398
- initCommMenu() {
399
- this.$http({
400
- url: USER_PREFIX + '/comm_menu/currentList',
401
- data: {longOne: 0},
402
- method: 'POST'
403
- }).then(resultMsg => {
404
- this.commMenus = resultMsg.objx || [];
405
- });
406
- },
407
- initNotifyMessage() {
408
- this.$http({
409
- url: USER_PREFIX + '/notify_message/listPage',
410
- data: {},
411
- method: 'post',
412
- success: res => {
413
- this.notifyMessages = res.objx && res.objx.records ? res.objx.records : [];
414
- }
415
- });
416
- },
417
- openNotifyMessageDialog(row) {
418
- if (row.jumpContent) {
419
- this.$refs.notifyMessageDialog.open(row, () => {
420
- row.readed = 1;
421
- });
422
- }
423
- },
424
- openMoreNotifyMessage(notifyType) {
425
- let data = {notifyType: (notifyType || '')};
426
- let view = {
427
- name: 'notify_message:list',
428
- query: data
429
- };
430
- this.$store.dispatch('tagsView/delCachedView', view).then(() => {
431
- this.$router.replace(view);
432
- });
433
-
434
- if (notifyType) {
435
- this.showGroupDialog = false;
436
- }
437
- },
438
- checkNotifyMessage(row, index) {
439
- this.showNoticeDialog = true;
440
- this.notifyMessageInfoIndex = index;
441
- this.notifyMessageInfoId = row.id;
442
- },
443
- notifyMessageReadHanlde() {
444
- this.notifyMessages[this.notifyMessageInfoIndex].readed = 1;
445
- },
446
- openNotifyTemplateGroupDialog() {
447
- this.$http({
448
- url: USER_PREFIX + `/notify_template/listPage`,
449
- method: `post`,
450
- data: {},
451
- isLoading: true,
452
- loadingTarget: document.body,
453
- success: res => {
454
- this.notifyTemplates = res.objx && res.objx.records ? res.objx.records : [];
455
- this.showGroupDialog = true;
456
- }
457
- });
458
- },
459
- rourteTo(route) {
460
- if (route.type == 4) {
461
- this.jumpOutLink(route)
462
- } else if (route.type == 3) {
463
- let menuCode = route.menuCode;
464
- let path = "/user/outLink/index/" + menuCode;
465
- this.$router.push({path: path, query: {url: route.url}});
466
- } else {
467
- this.$router.push(route.url);
468
- }
469
- },
470
- jumpOutLink(route) {
471
- let path = route.url;
472
- if (route.type == 4 && path) {
473
- if (path.indexOf('token={token}') >= 0) {
474
- path = path.replace('token={token}', 'token=' + getToken())
475
- }
476
- window.open(path);
477
- }
478
- },
479
- initWfParam() {
480
- return this.$http({
481
- url: USER_PREFIX + '/wf_param/list',
482
- method: `post`,
483
- data: {},
484
- isLoading: true,
485
- loadingTarget: document.body,
486
- modalStrictly: true,
487
- success: res => {
488
- this.wfParamDTOs = res.objx || [];
489
- this.initWfTableList();
490
- }
491
- });
492
- },
493
- getWfInfoList(isLoading) {
494
- if (!this.activating) {
495
- return;
496
- }
497
- this.$http({
498
- url: USER_PREFIX + '/wf_info/listPage',
499
- data: {type: 0, size: 20},
500
- method: 'post',
501
- isLoading: isLoading,
502
- loadingTarget: document.body,
503
- success: res => {
504
- this.unDoWfRows = res.objx && res.objx.records ? res.objx.records : [];
505
- },
506
- failMsg: false,
507
- errorMsg: false,
508
- fail: (res, response) => {
509
- if (response && response.status == 200) {
510
- this.$errorMsg(res);
511
- }
512
- }
513
- });
514
- },
515
- getUnreadMessageNum(isLoading) {
516
- if (!this.activating) {
517
- return;
518
- }
519
- return this.$http({
520
- url: USER_PREFIX + '/notify_message/countMessage',
521
- method: `post`,
522
- data: {},
523
- isLoading: isLoading,
524
- loadingTarget: document.body,
525
- success: res => {
526
- this.unreadMessageNum = res.objx || 0;
527
- },
528
- failMsg: false,
529
- errorMsg: false,
530
- fail: (res, response) => {
531
- if (response && response.status == 200) {
532
- this.$errorMsg(res);
533
- }
534
- }
535
- });
536
- },
537
- wfhandleCallback(flag) {
538
- if ([1, 2, 3].includes(flag)) {
539
- this.showWfDialog = false;
540
- this.wfClose();
541
- }
542
- }
543
- }
544
- };
545
- </script>
546
- <style lang="scss" scoped>
547
- @import '~@/styles/variables.scss';
548
-
549
- body #app .index-home {
550
- margin: 3px 10px;
551
- height: calc(100vh - 38px);
552
- overflow: auto;
553
-
554
- #containt {
555
- margin: 0;
556
- background: none;
557
- height: auto;
558
- box-shadow: none;
559
- }
560
-
561
- .i-user-info {
562
- background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116% 45px;
563
- margin-bottom: 6px;
564
- background-size: 181px;
565
- padding: 14px 38px 11px 16px;
566
- border-radius: 4px 4px;
567
- color: #fff;
568
- font-size: 12px;
569
- margin-top: 3px;
570
- height: 95px;
571
- overflow: hidden;
572
-
573
- .name {
574
- opacity: 1;
575
- font-weight: 600;
576
- margin: 9px 0 14px;
577
- font-size: 14px;
578
- }
579
-
580
- .img {
581
- width: 60px;
582
- height: 60px;
583
- float: left;
584
- border-radius: 50%;
585
- border: solid 4px rgba(255, 255, 255, 0.28);
586
- margin-right: 10px;
587
- }
588
- }
589
-
590
- .home-notice-list {
591
- height: 182px;
592
- margin: 0 -12px;
593
-
594
- .item {
595
- padding: 6px 12px;
596
- font-size: 12px;
597
- cursor: pointer;
598
- overflow: hidden;
599
- text-overflow: ellipsis;
600
- white-space: nowrap;
601
-
602
- .time {
603
- color: #b9b9b9;
604
- font-size: 12px;
605
- right: 12px;
606
- }
607
-
608
- &:hover {
609
- color: $baseColor;
610
- background-color: transparentize($baseColor, 0.97);
611
-
612
- .time {
613
- color: $baseColor
614
- }
615
- }
616
-
617
- &.no-read:before {
618
- content: "";
619
- width: 6px;
620
- height: 6px;
621
- background-color: $red;
622
- border-radius: 50%;
623
- vertical-align: middle;
624
- display: inline-block;
625
- margin-bottom: 1px;
626
- }
627
- }
628
-
629
- &.to-reed {
630
- height: 300px;
631
- overflow: auto;
632
- margin: -8px -12px;
633
-
634
-
635
- .item {
636
- white-space: initial;
637
- padding: 8px 22px 2px;
638
- position: relative;
639
-
640
- &:after {
641
- content: "";
642
- position: absolute;
643
- left: 22px;
644
- right: 22px;
645
- border-top: dashed 1px #eee;
646
- height: 1px;
647
- bottom: 0;
648
- }
649
-
650
- &.noread {
651
- &:before {
652
- content: "";
653
- width: 6px;
654
- height: 6px;
655
- background-color: $red;
656
- border-radius: 50%;
657
- margin-right: 5px;
658
- display: inline-block;
659
- position: absolute;
660
- left: 10px;
661
- top: 16px;
662
- }
663
- }
664
-
665
- .el-tag {
666
- zoom: 0.95;
667
- padding: 0 5px;
668
- height: 24px;
669
- line-height: 24px;
670
- }
671
-
672
- // .noread{
673
- // position: absolute;right:0;top:0;
674
- // span{transform: rotate(47deg);
675
- // -ms-transform: rotate(47deg);
676
- // -moz-transform: rotate(47deg);
677
- // -webkit-transform: rotate(47deg);
678
- // -o-transform: rotate(47deg);
679
- // z-index: 3;
680
- // color: #FFF;
681
- // position: absolute;
682
- // right: 1px;
683
- // top: 2px;}
684
- // &:after{
685
- // content: "\e618";
686
- // font-size: 62px;
687
- // font-family: "iconfont";
688
- // color:$red
689
- // }
690
- // }
691
- .time {
692
- position: relative;
693
- right: 0;
694
- margin-left: 12px;
695
- }
696
-
697
- .name {
698
- overflow: hidden;
699
- text-overflow: ellipsis;
700
- white-space: nowrap;
701
- margin-top: 3px;
702
- display: block;
703
- margin-bottom: 4px;
704
- }
705
-
706
- &:hover .name {
707
- color: $baseColor
708
- }
709
-
710
- &:first-child:before {
711
- border-top: none
712
- }
713
-
714
- .btns {
715
- text-align: right;
716
-
717
- .el-link {
718
- font-size: 12px;
719
- display: inline-block;
720
- margin-left: 14px;
721
-
722
- i {
723
- font-size: 12px;
724
- margin-right: 3px;
725
- }
726
- }
727
- }
728
- }
729
-
730
- }
731
- }
732
-
733
- .fast-box {
734
- height: 329px;
735
- overflow: hidden;
736
-
737
- .item {
738
- width: 100%;
739
- text-align: center;
740
- float: left;
741
-
742
- p {
743
- color: #2a6494;
744
- border: solid 1px #e2e2e2;
745
- margin: 3.5px 4px;
746
- width: calc(100% - 4px);
747
- border-radius: 6px;
748
- position: relative;
749
- height: 33px;
750
- line-height: 32px;
751
- text-align: left;
752
- padding-left: 14px;
753
- font-size: 12px;
754
-
755
- i {
756
- font-size: 14px;
757
- vertical-align: middle;
758
- margin-right: 2px;
759
- }
760
-
761
- span {
762
- vertical-align: middle;
763
- }
764
-
765
- &:before {
766
- content: '';
767
- width: 4px;
768
- height: 14px;
769
- display: inline-block;
770
- background: #225279b8;
771
- position: absolute;
772
- left: -1px;
773
- top: 9px;
774
- }
775
-
776
- &:hover {
777
- background-color: $baseColor;
778
- color: #fff;
779
- border-color: $baseColor;
780
-
781
- &:before {
782
- background: #fff;
783
- }
784
- }
785
- }
786
- }
787
- }
788
-
789
- .need-to {
790
- height: 332px;
791
- }
792
-
793
- .table-box {
794
- width: 100%;
795
- font-size: 12px;
796
-
797
- th {
798
- line-height: 32px;
799
- background: #f7f7f7;
800
- font-weight: 400;
801
- color: #808080;
802
- padding: 0 6px;
803
- }
804
-
805
- td {
806
- text-align: center;
807
- line-height: 34px;
808
- color: #424242;
809
- border-bottom: solid 1px #eee;
810
- padding: 0 6px;
811
- }
812
-
813
- tr:last-child td {
814
- border-bottom: none;
815
- }
816
- }
817
- }
818
-
819
- .box-card .more {
820
- background-color: #f7f7f7;
821
- }
822
-
823
- .group-list {
824
- padding: 18px 18px 6px 32px !important;
825
- height: 400px;
826
- overflow: auto;
827
-
828
- .item {
829
- position: relative;
830
- height: 36px;
831
- border: solid 1px #eee;
832
- line-height: 34px;
833
- border-radius: 2px;
834
- padding: 0 42px 0 14px;
835
- margin-bottom: 10px;
836
- cursor: pointer;
837
-
838
- &::before {
839
- content: "";
840
- width: 8px;
841
- height: 8px;
842
- border: solid 1px #eee;
843
- border-radius: 50%;
844
- display: inline-block;
845
- position: absolute;
846
- left: -16px;
847
- top: 13px;
848
- }
849
-
850
- &.checked {
851
- &:before {
852
- content: "";
853
- background-color: $baseColor;
854
- border-color: $baseColor
855
- }
856
-
857
- background-color: transparentize($baseColor, 0.9);
858
- color: $baseColor;
859
- border-color: $baseColor;
860
- }
861
-
862
- i {
863
- font-size: 12px;
864
- vertical-align: middle;
865
- }
866
-
867
- .name {
868
- font-size: 12px;
869
- margin-left: 8px;
870
- vertical-align: middle;
871
- }
872
-
873
- .nums {
874
- width: 22px;
875
- height: 22px;
876
- border-radius: 50%;
877
- display: inline-block;
878
- position: absolute;
879
- right: 5px;
880
- top: 6px;
881
- color: #FFF;
882
- font-size: 12px;
883
- background-color: $red;
884
- line-height: 22px;
885
- text-align: center;
886
- }
887
- }
888
- }
889
-
890
- .notice-box {
891
- background-color: #2a649429;
892
- border-radius: 0 0 4px 4px;
893
- padding: 9px 12px;
894
- margin-bottom: 5px;
895
- margin-top: -6px;
896
- position: relative;
897
- z-index: 2;
898
- font-size: 13px;
899
- color: #212121;
900
- overflow: hidden;
901
-
902
- .txt {
903
- line-height: 28px;
904
- font-size: 12px;
905
- position: relative;
906
- display: inline-block;
907
- cursor: pointer;
908
-
909
- &:before {
910
- content: "";
911
- background-color: $baseColor;
912
- width: 4px;
913
- height: 20px;
914
- border-radius: 2px;
915
- display: inline-block;
916
- vertical-align: middle;
917
- margin-right: 18px;
918
- }
919
-
920
- i {
921
- font-size: 14px;
922
- margin-right: 12px;
923
- vertical-align: middle;
924
- }
925
-
926
- > span {
927
- vertical-align: middle;
928
- height: 22px;
929
- line-height: 22px;
930
- display: inline-block;
931
-
932
- b {
933
- color: #FFF;
934
- margin: 0 4px;
935
- font-size: 16px;
936
- vertical-align: middle;
937
- background: #FF5615;
938
- border-radius: 50%;
939
- display: inline-block;
940
- padding: 4px;
941
- font-weight: 200;
942
- line-height: 1;
943
- }
944
- }
945
-
946
- }
947
-
948
- .el-button {
949
- position: absolute;
950
- right: 46px;
951
- padding: 0;
952
- height: 22px;
953
- line-height: 22px;
954
- min-width: 22px;
955
- text-align: center;
956
- border-radius: 2px;
957
- top: 50%;
958
- margin-top: -11px;
959
-
960
- i {
961
- font-size: 15px;
962
- }
963
-
964
- &:hover {
965
- background-color: $baseColor;
966
- color: #FFF;
967
- }
968
-
969
- &.more {
970
- right: 12px;
971
- background: #f7f7f7;
972
-
973
- &:hover {
974
- color: $baseColor
975
- }
976
- }
977
- }
978
- }
979
- </style>
1
+ <template>
2
+ <div class="index-home">
3
+ <el-row>
4
+ <el-col :span="8">
5
+ <div class="i-user-info">
6
+ <img class="img" v-if="headPhotoUrl" :src="headPhotoUrl"/>
7
+ <p class="name">{{ $t1('您好') }},{{ userInfo.nickName }}</p>
8
+ <p>{{ companyInfo.companyName }}</p>
9
+ </div>
10
+ <div class="notice-box">
11
+ <div class="txt" @click="openMoreNotifyMessage()">
12
+ <i class="iconfont icon-xiaoxitongzhi"></i>
13
+ <span v-if="unreadMessageNum>0"
14
+ v-html="$t1('您 有{number}条 未读消息,请及时查看。',{number: `<b>${(unreadMessageNum > 99 ? '99+' : unreadMessageNum)}</b>`})">
15
+ </span>
16
+ <span v-else-if="unreadMessageNum==0">
17
+ {{ $t1('您 暂无 未读消息。') }}
18
+ </span>
19
+ </div>
20
+ <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
21
+ <el-button type="text" @click="getUnreadMessageNum(true)"><i class="el-icon-refresh"></i></el-button>
22
+ </el-tooltip>
23
+ <el-tooltip class="item" effect="dark" :content="$t1('查看更多')" placement="top">
24
+ <el-button type="text" @click="openMoreNotifyMessage()" class="more">
25
+ <i class="el-icon-news"></i>
26
+ </el-button>
27
+ </el-tooltip>
28
+ </div>
29
+ <el-card class="box-card">
30
+ <div slot="header" class="clearfix">
31
+ <span style="float:left">
32
+ <i class="el-icon-chat-line-round ico"></i>
33
+ {{ $t1('公告') }}
34
+ </span>
35
+ <el-button type="text" @click="openSystemNoticeDialog()"><span class="more">MORE+</span></el-button>
36
+ </div>
37
+ <div class="home-notice-list">
38
+ <div v-for="(systemNotice,index) in systemNotices" :key="index" class="item"
39
+ @click="openSystemNoticeDialog(systemNotice)"
40
+ :title="systemNotice.title">
41
+ {{ systemNotice.title }}
42
+ <span class="time">{{ systemNotice.modifyDate.substring(0, 10) }}</span>
43
+ </div>
44
+ </div>
45
+ </el-card>
46
+ </el-col>
47
+ <el-col :span="homeConfig.toDoSpan || 16" style="padding-left:6px;">
48
+ <el-card class="box-card">
49
+ <div slot="header" class="clearfix">
50
+ <span style="float:left">
51
+ <i class="el-icon-chat-line-round ico"></i>
52
+ {{ $t1('待办事项') }}
53
+ </span>
54
+ <el-tooltip class="item" effect="dark" :content="$t1('刷新')" placement="top">
55
+ <el-button type="text" @click="getWfInfoList(true)" class="more" style="right:107px">
56
+ <i class="el-icon-refresh"></i>
57
+ </el-button>
58
+ </el-tooltip>
59
+ <el-button type="text" @click="toWfManageList" class="more">
60
+ <i class="el-icon-news"></i>
61
+ <span>{{ $t1('查看更多+') }}</span>
62
+ </el-button>
63
+ </div>
64
+ <div class="need-to">
65
+ <vxe-grid :data="unDoWfRows" ref="table-wf" v-bind="wfOption"
66
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
67
+ @custom="$vxeTableUtil.customHandle"></vxe-grid>
68
+ </div>
69
+ </el-card>
70
+ </el-col>
71
+ </el-row>
72
+ <el-row>
73
+ <el-col :span="24" v-show="homeConfig.showFastTrack!==false">
74
+ <el-card class="box-card">
75
+ <div slot="header" class="clearfix">
76
+ <span style="float:left">
77
+ <i class="el-icon-star-off ico"></i>
78
+ {{ $t1('快捷通道') }}
79
+ </span>
80
+ <el-button type="text" @click="showCommMenuDialog = true"><span class="more">MORE+</span></el-button>
81
+ </div>
82
+ <div class="fast-box">
83
+ <div class="item" v-for="commMenu in commMenus" :key="commMenu.id">
84
+ <a href="javascript:void(0);" @click="rourteTo(commMenu)">
85
+ <p><i :class="!!commMenu.menuImg?('iconfont '+commMenu.menuImg):null"></i><span>{{
86
+ commMenu.menuName
87
+ }}</span></p>
88
+ </a>
89
+ </div>
90
+ </div>
91
+ </el-card>
92
+ </el-col>
93
+
94
+ <!-- <el-col :span="8">
95
+ <el-card class="box-card">
96
+ <div slot="header" class="clearfix">
97
+ <span style="float:left">
98
+ <i class="el-icon-message ico"></i>
99
+ 消息通知
100
+ </span>
101
+ <el-button type="text" @click="openNotifyTemplateGroupDialog" class="more" style="right:100px">
102
+ <i class="el-icon-receiving"></i>
103
+ <span>选择分组</span>
104
+ </el-button>
105
+ <el-button type="text" @click="openMoreNotifyMessage()" class="more">
106
+ <i class="el-icon-news"></i>
107
+ <span>查看更多+</span>
108
+ </el-button>
109
+ </div>
110
+ <div class="home-notice-list to-reed" style="height: 400px;">
111
+ <div v-for="(notifyMessage,index) in notifyMessages" class="item"
112
+ :class="{noread:notifyMessage.readed == 0}"
113
+ :title="notifyMessage.content" @click="checkNotifyMessage(notifyMessage,index)">
114
+ <div class="clearfix">
115
+ <el-tag type="warning">{{
116
+ notifyMessage.notifyTypeName
117
+ }}
118
+ </el-tag>
119
+ <span class="time">{{
120
+ notifyMessage.createDate
121
+ }}</span>
122
+ <div class="btns fr">
123
+ <el-link type="primary" @click.stop="openNotifyMessageDialog(notifyMessage)"><i class="el-icon-files"></i>
124
+ </el-link>
125
+ </div>
126
+ </div>
127
+ <span class="name">{{ notifyMessage.content }}</span>
128
+ </div>
129
+ </div>
130
+ </el-card>
131
+ </el-col> -->
132
+ </el-row>
133
+ <slot></slot>
134
+ <systemNoticeInfoDialog v-if="showSystemNoticeInfoDialog" :visiable.sync="showSystemNoticeInfoDialog"
135
+ :param="csnRow" :appendToTop="true"></systemNoticeInfoDialog>
136
+
137
+ <commMenuDialog v-if="showCommMenuDialog" :visiable.sync="showCommMenuDialog"
138
+ @confirm="commMenuCallBack"></commMenuDialog>
139
+ <wfContentDialog v-if="showWfDialog" :visible.sync="showWfDialog" @close="wfClose"
140
+ :option.sync="wfContentOption"></wfContentDialog>
141
+
142
+ <notifyMessageDialog ref="notifyMessageDialog"></notifyMessageDialog>
143
+
144
+ <notifyMessageInfoDialog v-if="showNoticeDialog" :visiable.sync="showNoticeDialog"
145
+ :dataId.sync="notifyMessageInfoId"
146
+ @readHanlde="notifyMessageReadHanlde"></notifyMessageInfoDialog>
147
+
148
+
149
+ <el-dialog
150
+ :title="$t1('选择分组')"
151
+ :append-to-body="true"
152
+ :modal-append-to-body="true"
153
+ :close-on-click-modal="false"
154
+ v-if="showGroupDialog"
155
+ :visible.sync="showGroupDialog"
156
+ :modal="false"
157
+ custom-class="el-dialog dialog-style list-dialog"
158
+ width="355px"
159
+ :destroy-on-close="true"
160
+ >
161
+ <div class="cont group-list">
162
+ <div class="item" v-for="(notifyTemplate,index) in notifyTemplates" :key="index"
163
+ @click="openMoreNotifyMessage(notifyTemplate.notifyType)">
164
+ <i class="iconfont icon-fenzu"></i>
165
+ <span class="name">{{ notifyTemplate.ntName }}</span>
166
+ <!-- <span class="nums">99+</span>-->
167
+ </div>
168
+ </div>
169
+ </el-dialog>
170
+
171
+ </div>
172
+ </template>
173
+
174
+ <script>
175
+ import systemNoticeInfoDialog from '../../../views/user/system_notice/infoDialog.vue';
176
+ import commMenuDialog from '../../../views/user/commMenu/index.vue';
177
+ import notifyMessageDialog from '../../../views/user/notify_message/dialog.vue';
178
+ import notifyMessageInfoDialog from '../../../views/user/notify_message/infoDialog';
179
+
180
+ import {getToken} from "@base/utils/auth";
181
+ import wfContentDialog from "../../../views/user/wf/wf_manage/wfContentDialog";
182
+ import corejsConfig from "@/corejsConfig";
183
+
184
+ export default {
185
+ name: 'home',
186
+ props: {
187
+ wf_manage_url: String
188
+ },
189
+ components: {
190
+ systemNoticeInfoDialog,
191
+ commMenuDialog,
192
+ notifyMessageDialog,
193
+ notifyMessageInfoDialog,
194
+ wfContentDialog
195
+ },
196
+ data() {
197
+ return {
198
+ showNoticeDialog: false,
199
+ showGroupDialog: false,
200
+ notifyTemplates: [],
201
+ userInfo: {},
202
+ companyInfo: {},
203
+ systemNotices: [],
204
+ showSystemNoticeInfoDialog: false,
205
+ csnRow: null,
206
+ headPhotoUrl: '',
207
+ dialogVisible: true,
208
+ unDoWfRows: [],
209
+ wfOption: {},
210
+ showWfDialog: false,
211
+ wfContentOption: {},
212
+ showWfContent: true,
213
+ wfContent: null,
214
+ wfDataId: '',
215
+ showCommMenuDialog: false,
216
+ commMenus: [],
217
+ notifyMessages: [],
218
+ notifyMessageInfoIndex: null,
219
+ notifyMessageInfoId: null,
220
+ unreadMessageNum: 0,
221
+ activating: true,
222
+ wfTimer: null,
223
+ homeConfig: corejsConfig.homeConfig || {}
224
+ };
225
+ },
226
+ activated() {
227
+ this.activating = true;
228
+ if (this.wfTimer) {
229
+ this.timerExcFun(true);
230
+ }
231
+ },
232
+ deactivated() {
233
+ this.activating = false;
234
+ },
235
+ beforeDestroy() {
236
+ this.clearTimer();
237
+ },
238
+ created() {
239
+ this.getUserInfo();
240
+ this.initSystemNotice();
241
+ this.initCommMenu();
242
+ this.initNotifyMessage();
243
+ this.initWfParam();
244
+ this.initWfTimer();
245
+ },
246
+ methods: {
247
+ wfClose() {
248
+ this.timerExcFun(true);
249
+ },
250
+ initWfTimer() {
251
+ this.wfTimer = setInterval(() => {
252
+ this.timerExcFun(false);
253
+ }, 10000);
254
+ this.timerExcFun(true);
255
+ },
256
+ timerExcFun(isLoading) {
257
+ if (!this.activating) {
258
+ return;
259
+ }
260
+ this.getWfInfoList(isLoading);
261
+ this.getUnreadMessageNum(isLoading);
262
+ this.$emit('timerHandle')
263
+ },
264
+ clearTimer() {
265
+ clearInterval(this.wfTimer);
266
+ this.wfTimer = null;
267
+ },
268
+ getUserInfo() {
269
+ this.$http({
270
+ url: USER_PREFIX + '/user/currentUser',
271
+ method: 'post',
272
+ success: res => {
273
+ let userInfo = res.objx;
274
+ this.headPhotoUrl = userInfo.headPhotoUrl ? userInfo.headPhotoUrl : require('@/resources/images' + '/default-header.png');
275
+
276
+ this.userInfo = userInfo;
277
+ }
278
+ });
279
+ this.$http({
280
+ url: USER_PREFIX + '/company_info/getCurrent',
281
+ method: `post`,
282
+ success: res => {
283
+ this.companyInfo = res.objx || {};
284
+ }
285
+ });
286
+ },
287
+ initSystemNotice() {
288
+ this.$http({
289
+ url: USER_PREFIX + '/system_notice/listPage',
290
+ data: {publish: true},
291
+ method: 'post',
292
+ success: res => {
293
+ this.systemNotices = res.objx && res.objx.records ? res.objx.records : [];
294
+ }
295
+ });
296
+ },
297
+ openSystemNoticeDialog(row) {
298
+ this.csnRow = row || null;
299
+ this.showSystemNoticeInfoDialog = true;
300
+ },
301
+ initUnDoWfInfo() {
302
+ this.$http({
303
+ url: AGILEBPM_PREFIX + '/wf_manage/listPage',
304
+ data: {type: 0},
305
+ method: 'post',
306
+ success: res => {
307
+ this.unDoWfRows = res.objx.records || [];
308
+ }
309
+ });
310
+ },
311
+ initWfTableList() {
312
+ let that = this;
313
+ let paramColumns = this.wfParamDTOs.map(item => {
314
+ return {
315
+ title: this.$t1(item.paramName),
316
+ field: item.paramKey,
317
+ width: 150
318
+ };
319
+ })
320
+ var statuses = {running: this.$t1('审核中'), back: this.$t1('已驳回'), end: this.$t1('已完成')};
321
+ let tableOption = {
322
+ vue: this,
323
+ tableRef: 'table-wf',
324
+ tableName: 'home-table-wf',
325
+ config: {
326
+ height: 'auto'
327
+ },
328
+ columns: [
329
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
330
+ {
331
+ title: this.$t1('单据类型'),
332
+ field: 'objTypeName',
333
+ width: 150,
334
+ fixed: 'left'
335
+ },
336
+ {
337
+ title: this.$t1('流程主题'),
338
+ field: 'name',
339
+ width: 150
340
+ },
341
+ {
342
+ title: this.$t1('启动人'),
343
+ field: 'starterName',
344
+ width: 150
345
+ },
346
+ {
347
+ title: this.$t1('当前任务'),
348
+ field: 'taskName',
349
+ width: 150
350
+ },
351
+ {
352
+ title: this.$t1('当前任务用户'),
353
+ field: 'candidateNames',
354
+ width: 150
355
+ },
356
+ {
357
+ title: this.$t1('启动时间'),
358
+ field: 'createDate',
359
+ width: 150
360
+ },
361
+ ...paramColumns,
362
+ {
363
+ width: 47,
364
+ fixed: 'right',
365
+ title: '',
366
+ sortable: false,
367
+ slots: {
368
+ default: ({row}) => {
369
+ return [
370
+ <a
371
+ href="javascript:void(0);"
372
+ class="a-link"
373
+ onclick={() => {
374
+ this.openWfDialog(row);
375
+ }}
376
+ >
377
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
378
+ popper-class="tooltip-skin">
379
+ <i class="el-icon-edit"/>
380
+ </el-tooltip>
381
+ </a>
382
+ ];
383
+ }
384
+ }
385
+ }
386
+ ]
387
+ };
388
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
389
+ this.wfOption = opts;
390
+ });
391
+ },
392
+ openWfDialog(row) {
393
+ this.wfContentOption = {
394
+ objId: row.objId,
395
+ url: row.url,
396
+ objTypeCode: row.objTypeCode
397
+ };
398
+ this.showWfDialog = true;
399
+ },
400
+ commMenuCallBack(datas) {
401
+ this.commMenus = datas || [];
402
+ },
403
+ initCommMenu() {
404
+ this.$http({
405
+ url: USER_PREFIX + '/comm_menu/currentList',
406
+ data: {longOne: 0},
407
+ method: 'POST'
408
+ }).then(resultMsg => {
409
+ this.commMenus = resultMsg.objx || [];
410
+ });
411
+ },
412
+ initNotifyMessage() {
413
+ this.$http({
414
+ url: USER_PREFIX + '/notify_message/listPage',
415
+ data: {},
416
+ method: 'post',
417
+ success: res => {
418
+ this.notifyMessages = res.objx && res.objx.records ? res.objx.records : [];
419
+ }
420
+ });
421
+ },
422
+ openNotifyMessageDialog(row) {
423
+ if (row.jumpContent) {
424
+ this.$refs.notifyMessageDialog.open(row, () => {
425
+ row.readed = 1;
426
+ });
427
+ }
428
+ },
429
+ openMoreNotifyMessage(notifyType) {
430
+ let data = {notifyType: (notifyType || '')};
431
+ let view = {
432
+ name: 'notify_message:list',
433
+ query: data
434
+ };
435
+ this.$store.dispatch('tagsView/delCachedView', view).then(() => {
436
+ this.$router.replace(view);
437
+ });
438
+
439
+ if (notifyType) {
440
+ this.showGroupDialog = false;
441
+ }
442
+ },
443
+ checkNotifyMessage(row, index) {
444
+ this.showNoticeDialog = true;
445
+ this.notifyMessageInfoIndex = index;
446
+ this.notifyMessageInfoId = row.id;
447
+ },
448
+ notifyMessageReadHanlde() {
449
+ this.notifyMessages[this.notifyMessageInfoIndex].readed = 1;
450
+ },
451
+ openNotifyTemplateGroupDialog() {
452
+ this.$http({
453
+ url: USER_PREFIX + `/notify_template/listPage`,
454
+ method: `post`,
455
+ data: {},
456
+ isLoading: true,
457
+ loadingTarget: document.body,
458
+ success: res => {
459
+ this.notifyTemplates = res.objx && res.objx.records ? res.objx.records : [];
460
+ this.showGroupDialog = true;
461
+ }
462
+ });
463
+ },
464
+ rourteTo(route) {
465
+ if (route.type == 4) {
466
+ this.jumpOutLink(route)
467
+ } else if (route.type == 3) {
468
+ let menuCode = route.menuCode;
469
+ let path = "/user/outLink/index/" + menuCode;
470
+ this.$router.push({path: path, query: {url: route.url}});
471
+ } else {
472
+ let path = this.getPath(route)
473
+ if (!path) return
474
+ this.$router.push(path);
475
+ }
476
+ },
477
+ getPath(route3) {
478
+ let item = null;
479
+ let path = null
480
+ if (route3.type == 0) {
481
+ //普通菜单
482
+ if (route3.url) {
483
+ path = route3.route || route3.url;
484
+ let str = "/report/vform/render/";
485
+ if (path.indexOf(str) == 0) {
486
+ } else {
487
+ let pIndex = path.indexOf('?');
488
+ if (pIndex > 0) {
489
+ path = path.substring(0, pIndex);
490
+ }
491
+ }
492
+ }
493
+ } else if (route3.type == 5) {
494
+ //动态表单
495
+ let url = route3.route || route3.url;
496
+ path = url;
497
+ }
498
+ if (path && path.startsWith("@")) {
499
+ path = null
500
+ }
501
+ return path;
502
+ },
503
+ jumpOutLink(route) {
504
+ let path = route.url;
505
+ if (route.type == 4 && path) {
506
+ if (path.indexOf('token={token}') >= 0) {
507
+ path = path.replace('token={token}', 'token=' + getToken())
508
+ }
509
+ window.open(path);
510
+ }
511
+ },
512
+ initWfParam() {
513
+ return this.$http({
514
+ url: USER_PREFIX + '/wf_param/list',
515
+ method: `post`,
516
+ data: {},
517
+ isLoading: true,
518
+ loadingTarget: document.body,
519
+ modalStrictly: true,
520
+ success: res => {
521
+ this.wfParamDTOs = res.objx || [];
522
+ this.initWfTableList();
523
+ }
524
+ });
525
+ },
526
+ getWfInfoList(isLoading) {
527
+ if (!this.activating) {
528
+ return;
529
+ }
530
+ this.$http({
531
+ url: USER_PREFIX + '/wf_info/listPage',
532
+ data: {type: 0, size: 20},
533
+ method: 'post',
534
+ isLoading: isLoading,
535
+ loadingTarget: document.body,
536
+ success: res => {
537
+ this.unDoWfRows = res.objx && res.objx.records ? res.objx.records : [];
538
+ },
539
+ failMsg: false,
540
+ errorMsg: false,
541
+ fail: (res, response) => {
542
+ if (response && response.status == 200) {
543
+ this.$errorMsg(res);
544
+ }
545
+ }
546
+ });
547
+ },
548
+ getUnreadMessageNum(isLoading) {
549
+ if (!this.activating) {
550
+ return;
551
+ }
552
+ return this.$http({
553
+ url: USER_PREFIX + '/notify_message/countMessage',
554
+ method: `post`,
555
+ data: {},
556
+ isLoading: isLoading,
557
+ loadingTarget: document.body,
558
+ success: res => {
559
+ this.unreadMessageNum = res.objx || 0;
560
+ },
561
+ failMsg: false,
562
+ errorMsg: false,
563
+ fail: (res, response) => {
564
+ if (response && response.status == 200) {
565
+ this.$errorMsg(res);
566
+ }
567
+ }
568
+ });
569
+ },
570
+ wfhandleCallback(flag) {
571
+ if ([1, 2, 3].includes(flag)) {
572
+ this.showWfDialog = false;
573
+ this.wfClose();
574
+ }
575
+ },
576
+ toWfManageList() {
577
+ let url = this.wf_manage_url || '/basic/wf/wf_manage/list'
578
+ this.$router.push(url)
579
+ }
580
+ }
581
+ };
582
+ </script>
583
+ <style lang="scss" scoped>
584
+ @import '~@/styles/variables.scss';
585
+
586
+ body #app .index-home {
587
+ margin: 3px 10px;
588
+ height: calc(100vh - 38px);
589
+ overflow: auto;
590
+
591
+ #containt {
592
+ margin: 0;
593
+ background: none;
594
+ height: auto;
595
+ box-shadow: none;
596
+ }
597
+
598
+ .i-user-info {
599
+ background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116% 45px;
600
+ margin-bottom: 6px;
601
+ background-size: 181px;
602
+ padding: 14px 38px 11px 16px;
603
+ border-radius: 4px 4px;
604
+ color: #fff;
605
+ font-size: 12px;
606
+ margin-top: 3px;
607
+ height: 95px;
608
+ overflow: hidden;
609
+
610
+ .name {
611
+ opacity: 1;
612
+ font-weight: 600;
613
+ margin: 9px 0 14px;
614
+ font-size: 14px;
615
+ }
616
+
617
+ .img {
618
+ width: 60px;
619
+ height: 60px;
620
+ float: left;
621
+ border-radius: 50%;
622
+ border: solid 4px rgba(255, 255, 255, 0.28);
623
+ margin-right: 10px;
624
+ }
625
+ }
626
+
627
+ .home-notice-list {
628
+ height: 182px;
629
+ margin: 0 -12px;
630
+
631
+ .item {
632
+ padding: 6px 12px;
633
+ font-size: 12px;
634
+ cursor: pointer;
635
+ overflow: hidden;
636
+ text-overflow: ellipsis;
637
+ white-space: nowrap;
638
+
639
+ .time {
640
+ color: #b9b9b9;
641
+ font-size: 12px;
642
+ right: 12px;
643
+ }
644
+
645
+ &:hover {
646
+ color: $baseColor;
647
+ background-color: transparentize($baseColor, 0.97);
648
+
649
+ .time {
650
+ color: $baseColor
651
+ }
652
+ }
653
+
654
+ &.no-read:before {
655
+ content: "";
656
+ width: 6px;
657
+ height: 6px;
658
+ background-color: $red;
659
+ border-radius: 50%;
660
+ vertical-align: middle;
661
+ display: inline-block;
662
+ margin-bottom: 1px;
663
+ }
664
+ }
665
+
666
+ &.to-reed {
667
+ height: 300px;
668
+ overflow: auto;
669
+ margin: -8px -12px;
670
+
671
+
672
+ .item {
673
+ white-space: initial;
674
+ padding: 8px 22px 2px;
675
+ position: relative;
676
+
677
+ &:after {
678
+ content: "";
679
+ position: absolute;
680
+ left: 22px;
681
+ right: 22px;
682
+ border-top: dashed 1px #eee;
683
+ height: 1px;
684
+ bottom: 0;
685
+ }
686
+
687
+ &.noread {
688
+ &:before {
689
+ content: "";
690
+ width: 6px;
691
+ height: 6px;
692
+ background-color: $red;
693
+ border-radius: 50%;
694
+ margin-right: 5px;
695
+ display: inline-block;
696
+ position: absolute;
697
+ left: 10px;
698
+ top: 16px;
699
+ }
700
+ }
701
+
702
+ .el-tag {
703
+ zoom: 0.95;
704
+ padding: 0 5px;
705
+ height: 24px;
706
+ line-height: 24px;
707
+ }
708
+
709
+ // .noread{
710
+ // position: absolute;right:0;top:0;
711
+ // span{transform: rotate(47deg);
712
+ // -ms-transform: rotate(47deg);
713
+ // -moz-transform: rotate(47deg);
714
+ // -webkit-transform: rotate(47deg);
715
+ // -o-transform: rotate(47deg);
716
+ // z-index: 3;
717
+ // color: #FFF;
718
+ // position: absolute;
719
+ // right: 1px;
720
+ // top: 2px;}
721
+ // &:after{
722
+ // content: "\e618";
723
+ // font-size: 62px;
724
+ // font-family: "iconfont";
725
+ // color:$red
726
+ // }
727
+ // }
728
+ .time {
729
+ position: relative;
730
+ right: 0;
731
+ margin-left: 12px;
732
+ }
733
+
734
+ .name {
735
+ overflow: hidden;
736
+ text-overflow: ellipsis;
737
+ white-space: nowrap;
738
+ margin-top: 3px;
739
+ display: block;
740
+ margin-bottom: 4px;
741
+ }
742
+
743
+ &:hover .name {
744
+ color: $baseColor
745
+ }
746
+
747
+ &:first-child:before {
748
+ border-top: none
749
+ }
750
+
751
+ .btns {
752
+ text-align: right;
753
+
754
+ .el-link {
755
+ font-size: 12px;
756
+ display: inline-block;
757
+ margin-left: 14px;
758
+
759
+ i {
760
+ font-size: 12px;
761
+ margin-right: 3px;
762
+ }
763
+ }
764
+ }
765
+ }
766
+
767
+ }
768
+ }
769
+
770
+ .fast-box {
771
+ margin: 6px 4px 4px;
772
+ overflow: hidden;
773
+
774
+ .item {
775
+ width: 118px;
776
+ text-align: center;
777
+ float: left;
778
+ margin-right: 14px;
779
+
780
+ p {
781
+ color: #2a6494;
782
+ border: solid 1px #e2e2e2;
783
+ margin: 3.5px 4px;
784
+ width: calc(100% - 4px);
785
+ border-radius: 6px;
786
+ position: relative;
787
+ height: 54px;
788
+ line-height: 54px;
789
+ text-align: left;
790
+ padding-left: 14px;
791
+ font-size: 12px;
792
+
793
+ i {
794
+ font-size: 14px;
795
+ vertical-align: middle;
796
+ margin-right: 2px;
797
+ }
798
+
799
+ span {
800
+ vertical-align: middle;
801
+ }
802
+
803
+ &:before {
804
+ content: '';
805
+ width: 4px;
806
+ height: 24px;
807
+ display: inline-block;
808
+ background: #225279b8;
809
+ position: absolute;
810
+ left: -1px;
811
+ top: 50%;
812
+ margin-top: -12px;
813
+ }
814
+
815
+ &:hover {
816
+ background-color: $baseColor;
817
+ color: #fff;
818
+ border-color: $baseColor;
819
+
820
+ &:before {
821
+ background: #fff;
822
+ }
823
+ }
824
+ }
825
+ }
826
+ }
827
+
828
+ .need-to {
829
+ height: 332px;
830
+ }
831
+
832
+ .table-box {
833
+ width: 100%;
834
+ font-size: 12px;
835
+
836
+ th {
837
+ line-height: 32px;
838
+ background: #f7f7f7;
839
+ font-weight: 400;
840
+ color: #808080;
841
+ padding: 0 6px;
842
+ }
843
+
844
+ td {
845
+ text-align: center;
846
+ line-height: 34px;
847
+ color: #424242;
848
+ border-bottom: solid 1px #eee;
849
+ padding: 0 6px;
850
+ }
851
+
852
+ tr:last-child td {
853
+ border-bottom: none;
854
+ }
855
+ }
856
+ }
857
+
858
+ .box-card .more {
859
+ background-color: #f7f7f7;
860
+ }
861
+
862
+ .group-list {
863
+ padding: 18px 18px 6px 32px !important;
864
+ height: 400px;
865
+ overflow: auto;
866
+
867
+ .item {
868
+ position: relative;
869
+ height: 36px;
870
+ border: solid 1px #eee;
871
+ line-height: 34px;
872
+ border-radius: 2px;
873
+ padding: 0 42px 0 14px;
874
+ margin-bottom: 10px;
875
+ cursor: pointer;
876
+
877
+ &::before {
878
+ content: "";
879
+ width: 8px;
880
+ height: 8px;
881
+ border: solid 1px #eee;
882
+ border-radius: 50%;
883
+ display: inline-block;
884
+ position: absolute;
885
+ left: -16px;
886
+ top: 13px;
887
+ }
888
+
889
+ &.checked {
890
+ &:before {
891
+ content: "";
892
+ background-color: $baseColor;
893
+ border-color: $baseColor
894
+ }
895
+
896
+ background-color: transparentize($baseColor, 0.9);
897
+ color: $baseColor;
898
+ border-color: $baseColor;
899
+ }
900
+
901
+ i {
902
+ font-size: 12px;
903
+ vertical-align: middle;
904
+ }
905
+
906
+ .name {
907
+ font-size: 12px;
908
+ margin-left: 8px;
909
+ vertical-align: middle;
910
+ }
911
+
912
+ .nums {
913
+ width: 22px;
914
+ height: 22px;
915
+ border-radius: 50%;
916
+ display: inline-block;
917
+ position: absolute;
918
+ right: 5px;
919
+ top: 6px;
920
+ color: #FFF;
921
+ font-size: 12px;
922
+ background-color: $red;
923
+ line-height: 22px;
924
+ text-align: center;
925
+ }
926
+ }
927
+ }
928
+
929
+ .notice-box {
930
+ background-color: #2a649429;
931
+ border-radius: 0 0 4px 4px;
932
+ padding: 9px 12px;
933
+ margin-bottom: 5px;
934
+ margin-top: -6px;
935
+ position: relative;
936
+ z-index: 2;
937
+ font-size: 13px;
938
+ color: #212121;
939
+ overflow: hidden;
940
+
941
+ .txt {
942
+ line-height: 28px;
943
+ font-size: 12px;
944
+ position: relative;
945
+ display: inline-block;
946
+ cursor: pointer;
947
+
948
+ &:before {
949
+ content: "";
950
+ background-color: $baseColor;
951
+ width: 4px;
952
+ height: 20px;
953
+ border-radius: 2px;
954
+ display: inline-block;
955
+ vertical-align: middle;
956
+ margin-right: 18px;
957
+ }
958
+
959
+ i {
960
+ font-size: 14px;
961
+ margin-right: 12px;
962
+ vertical-align: middle;
963
+ }
964
+
965
+ > span {
966
+ vertical-align: middle;
967
+ height: 22px;
968
+ line-height: 22px;
969
+ display: inline-block;
970
+
971
+ b {
972
+ color: #FFF;
973
+ margin: 0 4px;
974
+ font-size: 16px;
975
+ vertical-align: middle;
976
+ background: #FF5615;
977
+ border-radius: 50%;
978
+ display: inline-block;
979
+ padding: 4px;
980
+ font-weight: 200;
981
+ line-height: 1;
982
+ }
983
+ }
984
+
985
+ }
986
+
987
+ .el-button {
988
+ position: absolute;
989
+ right: 46px;
990
+ padding: 0;
991
+ height: 22px;
992
+ line-height: 22px;
993
+ min-width: 22px;
994
+ text-align: center;
995
+ border-radius: 2px;
996
+ top: 50%;
997
+ margin-top: -11px;
998
+
999
+ i {
1000
+ font-size: 15px;
1001
+ }
1002
+
1003
+ &:hover {
1004
+ background-color: $baseColor;
1005
+ color: #FFF;
1006
+ }
1007
+
1008
+ &.more {
1009
+ right: 12px;
1010
+ background: #f7f7f7;
1011
+
1012
+ &:hover {
1013
+ color: $baseColor
1014
+ }
1015
+ }
1016
+ }
1017
+
1018
+ ::v-deep .el-card.is-always-shadow {
1019
+ box-shadow: 0 2px 2px 0 rgb(0 0 0 / 6%);
1020
+ }
1021
+ }
1022
+ </style>