cloud-web-corejs 1.0.54-dev.31 → 1.0.54-dev.310

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 (322) hide show
  1. package/package.json +8 -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/propertiesDialog.vue +1 -1
  6. package/src/components/VabUpload/view.vue +135 -119
  7. package/src/components/advancedSearchDialog/mixins.js +1 -1
  8. package/src/components/baseAttachment/index.vue +49 -40
  9. package/src/components/baseAttachment/mixins.js +1 -1
  10. package/src/components/errorMsg/mixins.js +7 -5
  11. package/src/components/excelExport/button.vue +57 -4
  12. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  13. package/src/components/excelExport/index.js +7 -5
  14. package/src/components/excelExport/index.vue +64 -8
  15. package/src/components/excelExport/mixins.js +3 -2
  16. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
  17. package/src/components/fileLibrary/fileObjNotifyEdit.vue +4 -4
  18. package/src/components/fileLibrary/filterDialog.vue +383 -0
  19. package/src/components/fileLibrary/index.vue +23 -24
  20. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  21. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  22. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  23. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +335 -212
  24. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
  25. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
  26. package/src/components/fileLibrary/mixins/indexMixins.js +69 -26
  27. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  28. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  29. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  30. package/src/components/fileLibrary/shareDialog.vue +1 -1
  31. package/src/components/formOplog/mixins.js +1 -1
  32. package/src/components/jsonImport/index.js +1 -1
  33. package/src/components/jsonImport/mixins.js +1 -1
  34. package/src/components/statusTag/mixins.js +1 -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 +6 -6
  41. package/src/components/tempStorage/index.vue +9 -6
  42. package/src/components/tempStorage/tempStorageDialog.vue +1 -1
  43. package/src/components/vb-tabs/x-tabs.vue +3 -2
  44. package/src/components/wf/content.vue +125 -28
  45. package/src/components/wf/mixins/setCandidateDialog.js +2 -1
  46. package/src/components/wf/setCandidateDialog.vue +10 -0
  47. package/src/components/wf/setCandidateDialog2.vue +320 -0
  48. package/src/components/wf/wf.js +1 -1
  49. package/src/components/wf/wfStartDialog.vue +70 -42
  50. package/src/components/wf/wfTaskUserRangeDialog.vue +131 -0
  51. package/src/components/wf/wfUtil.js +1 -1
  52. package/src/components/xform/form-designer/designer.js +3 -2
  53. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  54. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  55. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  56. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
  57. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  58. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  59. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  60. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  61. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
  62. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  63. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  64. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  65. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  66. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  67. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  68. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  69. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
  70. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  71. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  72. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  73. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  74. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  75. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +23 -16
  76. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -379
  77. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  78. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  79. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  80. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  81. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  82. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  83. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  84. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +2 -2
  85. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  86. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
  87. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
  88. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  89. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
  90. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  91. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
  92. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +22 -17
  93. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  94. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  95. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
  96. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  97. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  98. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  99. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  100. package/src/components/xform/form-designer/indexMixin.js +1 -1
  101. package/src/components/xform/form-designer/setting-panel/form-setting.vue +926 -158
  102. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  103. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  104. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +71 -7
  105. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
  106. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
  107. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  108. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  109. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
  110. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  111. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  112. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
  113. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  114. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1183 -500
  115. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  116. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  117. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  118. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  119. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  120. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  121. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  122. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  123. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  124. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  125. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
  126. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
  127. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  128. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  129. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  130. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  131. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  132. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  133. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  134. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  135. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  136. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  137. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  138. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  139. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  140. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  141. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
  142. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  143. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
  144. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  145. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  146. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  147. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  148. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  149. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  150. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  151. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  152. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
  153. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
  154. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
  155. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  156. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
  157. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
  158. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
  159. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
  160. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
  161. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
  162. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +25 -10
  163. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  164. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  165. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  166. package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
  167. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1435 -865
  168. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  169. package/src/components/xform/form-render/container-item/data-table-item.vue +86 -42
  170. package/src/components/xform/form-render/container-item/data-table-mixin.js +21 -18
  171. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  172. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  173. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  174. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  175. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  176. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  177. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  178. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  179. package/src/components/xform/form-render/index.vue +4 -1
  180. package/src/components/xform/form-render/indexMixin.js +11 -25
  181. package/src/components/xform/lang/zh-CN.js +17 -3
  182. package/src/components/xform/mixins/defaultHandle.js +1 -1
  183. package/src/components/xform/mixins/scriptHttp.js +3 -1
  184. package/src/components/xform/utils/emitter.js +4 -4
  185. package/src/components/xform/utils/format.js +21 -30
  186. package/src/components/xform/utils/formula-util.js +669 -0
  187. package/src/components/xform/utils/util.js +1451 -1
  188. package/src/components/xform/utils/validators.js +1 -5
  189. package/src/index.js +2 -2
  190. package/src/layout/components/AppMain.vue +5 -1
  191. package/src/layout/components/Sidebar/default.vue +50 -6
  192. package/src/layout/components/TagsView/index.vue +37 -12
  193. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  194. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  195. package/src/layout/components/extractedCode/viewDialog.vue +193 -0
  196. package/src/layout/components/watermark/index.vue +83 -0
  197. package/src/layout/defaultLayout.vue +1 -1
  198. package/src/mixins/selectDialog/index.js +1 -1
  199. package/src/mixins/tableTree/index.js +1 -1
  200. package/src/router/modules/customer.js +61 -8
  201. package/src/store/config/index.js +1 -1
  202. package/src/store/modules/permission.js +1 -1
  203. package/src/store/modules/settings.js +1 -1
  204. package/src/store/modules/tagsView.js +1 -14
  205. package/src/store/modules/user.js +1 -1
  206. package/src/utils/index.js +2 -3
  207. package/src/utils/pddLog.js +103 -0
  208. package/src/utils/pdfUtil.js +71 -0
  209. package/src/utils/request.js +324 -1
  210. package/src/utils/vab.js +19 -27
  211. package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
  212. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  213. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  214. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  215. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
  216. package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
  217. package/src/views/bd/setting/bd_company_env/list.vue +175 -0
  218. package/src/views/bd/setting/config_manage/list.vue +51 -0
  219. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  220. package/src/views/bd/setting/form_import_log/list.vue +206 -0
  221. package/src/views/bd/setting/form_script/edit.vue +9 -0
  222. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  223. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  224. package/src/views/bd/setting/form_script/list1.vue +4 -4
  225. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  226. package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
  227. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  228. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  229. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  230. package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
  231. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  232. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  233. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  234. package/src/views/bd/setting/form_template/edit.vue +22 -1
  235. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  236. package/src/views/bd/setting/form_template/list.vue +5 -5
  237. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  238. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  239. package/src/views/bd/setting/form_template/mixins/list.js +688 -22
  240. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  241. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  242. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  243. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  244. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  245. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  246. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  247. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  248. package/src/views/bd/setting/push_data/edit.vue +139 -0
  249. package/src/views/bd/setting/push_data/list.vue +283 -0
  250. package/src/views/bd/setting/push_data_h/edit.vue +153 -0
  251. package/src/views/bd/setting/push_data_h/list.vue +293 -0
  252. package/src/views/bd/setting/request_async_setting/edit.vue +279 -0
  253. package/src/views/bd/setting/request_async_setting/list.vue +297 -0
  254. package/src/views/bd/setting/request_setting/edit.vue +258 -0
  255. package/src/views/bd/setting/request_setting/list.vue +248 -0
  256. package/src/views/bd/setting/table_model/edit.vue +875 -426
  257. package/src/views/bd/setting/table_model/list.vue +4 -4
  258. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  259. package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
  260. package/src/views/bd/setting/table_model/mixins/list.js +439 -14
  261. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  262. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  263. package/src/views/user/area/dialog.vue +21 -9
  264. package/src/views/user/bill_setting/edit.vue +1 -1
  265. package/src/views/user/bill_setting/list.vue +1 -1
  266. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  267. package/src/views/user/common_attribute/list.vue +1 -1
  268. package/src/views/user/common_script/edit.vue +1 -1
  269. package/src/views/user/common_script/list.vue +1 -1
  270. package/src/views/user/company_info/dialog.vue +164 -154
  271. package/src/views/user/company_info/edit.vue +1 -1
  272. package/src/views/user/extend_datasource/dialog.vue +1 -0
  273. package/src/views/user/extend_datasource/edit.vue +3 -0
  274. package/src/views/user/extend_datasource/list.vue +2 -1
  275. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  276. package/src/views/user/fieldTranslation/list.vue +32 -32
  277. package/src/views/user/form/vform/designer.vue +775 -749
  278. package/src/views/user/form/vform/out_render.vue +1 -1
  279. package/src/views/user/form/vform/render.vue +8 -4
  280. package/src/views/user/form/view/edit.vue +38 -37
  281. package/src/views/user/form/view/list.vue +68 -15
  282. package/src/views/user/groups/edit.vue +2 -0
  283. package/src/views/user/groups/list.vue +1 -0
  284. package/src/views/user/home/default.vue +1024 -979
  285. package/src/views/user/home/dev.vue +29 -0
  286. package/src/views/user/home/index.vue +16 -6
  287. package/src/views/user/login/default.vue +32 -3
  288. package/src/views/user/login/indexMixin.js +117 -3
  289. package/src/views/user/notify_message/dialog.vue +1 -1
  290. package/src/views/user/notify_template/edit.vue +188 -187
  291. package/src/views/user/notify_template/edit2.vue +176 -0
  292. package/src/views/user/notify_template/list.vue +4 -1
  293. package/src/views/user/notify_template/list2.vue +190 -0
  294. package/src/views/user/outLink/form_view.vue +39 -12
  295. package/src/views/user/outLink/index.vue +17 -0
  296. package/src/views/user/outLink/view.vue +28 -23
  297. package/src/views/user/position/edit.vue +55 -54
  298. package/src/views/user/position/list.vue +4 -4
  299. package/src/views/user/project_tag/dialog.vue +9 -4
  300. package/src/views/user/project_tag/edit.vue +2 -2
  301. package/src/views/user/project_tag/list.vue +9 -4
  302. package/src/views/user/push_setting/list.vue +2 -2
  303. package/src/views/user/request_setting/edit.vue +258 -0
  304. package/src/views/user/request_setting/list.vue +248 -0
  305. package/src/views/user/role/dialog.vue +1 -1
  306. package/src/views/user/role/list.vue +4 -4
  307. package/src/views/user/sale_org/dialog.vue +1 -1
  308. package/src/views/user/sale_org/list.vue +4 -1
  309. package/src/views/user/user/dialog.vue +46 -23
  310. package/src/views/user/user/edit.vue +1059 -1021
  311. package/src/views/user/user/form_dialog.vue +158 -0
  312. package/src/views/user/user/form_edit.vue +63 -2
  313. package/src/views/user/user/form_info.vue +210 -0
  314. package/src/views/user/user/form_list.vue +1 -0
  315. package/src/views/user/user/list.vue +22 -3
  316. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  317. package/src/views/user/wf/wf_manage/list.vue +30 -1
  318. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  319. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  320. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  321. package/src/views/user/wf/wf_obj_config/list.vue +114 -9
  322. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,979 +1,1024 @@
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, searchCount: false},
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, searchCount: false},
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: {searchCount: false},
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: {searchCount: false},
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, searchCount: false},
533
+ method: 'post',
534
+ isLoading: isLoading,
535
+ modal: isLoading || false,
536
+ // loadingTarget: document.body,
537
+ success: res => {
538
+ this.unDoWfRows = res.objx && res.objx.records ? res.objx.records : [];
539
+ },
540
+ failMsg: false,
541
+ errorMsg: false,
542
+ fail: (res, response) => {
543
+ if (response && response.status == 200) {
544
+ this.$errorMsg(res);
545
+ }
546
+ }
547
+ });
548
+ },
549
+ getUnreadMessageNum(isLoading) {
550
+ if (!this.activating) {
551
+ return;
552
+ }
553
+ return this.$http({
554
+ url: USER_PREFIX + '/notify_message/countMessage',
555
+ method: `post`,
556
+ data: {},
557
+ isLoading: isLoading,
558
+ modal: isLoading || false,
559
+ // loadingTarget: document.body,
560
+ success: res => {
561
+ this.unreadMessageNum = res.objx || 0;
562
+ },
563
+ failMsg: false,
564
+ errorMsg: false,
565
+ fail: (res, response) => {
566
+ if (response && response.status == 200) {
567
+ this.$errorMsg(res);
568
+ }
569
+ }
570
+ });
571
+ },
572
+ wfhandleCallback(flag) {
573
+ if ([1, 2, 3].includes(flag)) {
574
+ this.showWfDialog = false;
575
+ this.wfClose();
576
+ }
577
+ },
578
+ toWfManageList() {
579
+ let url = this.wf_manage_url || '/basic/wf/wf_manage/list'
580
+ this.$router.push(url)
581
+ }
582
+ }
583
+ };
584
+ </script>
585
+ <style lang="scss" scoped>
586
+ @import '~@/styles/variables.scss';
587
+
588
+ body #app .index-home {
589
+ margin: 3px 10px;
590
+ height: calc(100vh - 38px);
591
+ overflow: auto;
592
+
593
+ #containt {
594
+ margin: 0;
595
+ background: none;
596
+ height: auto;
597
+ box-shadow: none;
598
+ }
599
+
600
+ .i-user-info {
601
+ background: url(~@/resources/images/home-img.png) #2a6494 no-repeat 116% 45px;
602
+ margin-bottom: 6px;
603
+ background-size: 181px;
604
+ padding: 14px 38px 11px 16px;
605
+ border-radius: 4px 4px;
606
+ color: #fff;
607
+ font-size: 12px;
608
+ margin-top: 3px;
609
+ height: 95px;
610
+ overflow: hidden;
611
+
612
+ .name {
613
+ opacity: 1;
614
+ font-weight: 600;
615
+ margin: 9px 0 14px;
616
+ font-size: 14px;
617
+ }
618
+
619
+ .img {
620
+ width: 60px;
621
+ height: 60px;
622
+ float: left;
623
+ border-radius: 50%;
624
+ border: solid 4px rgba(255, 255, 255, 0.28);
625
+ margin-right: 10px;
626
+ }
627
+ }
628
+
629
+ .home-notice-list {
630
+ height: 182px;
631
+ margin: 0 -12px;
632
+
633
+ .item {
634
+ padding: 6px 12px;
635
+ font-size: 12px;
636
+ cursor: pointer;
637
+ overflow: hidden;
638
+ text-overflow: ellipsis;
639
+ white-space: nowrap;
640
+
641
+ .time {
642
+ color: #b9b9b9;
643
+ font-size: 12px;
644
+ right: 12px;
645
+ }
646
+
647
+ &:hover {
648
+ color: $baseColor;
649
+ background-color: transparentize($baseColor, 0.97);
650
+
651
+ .time {
652
+ color: $baseColor
653
+ }
654
+ }
655
+
656
+ &.no-read:before {
657
+ content: "";
658
+ width: 6px;
659
+ height: 6px;
660
+ background-color: $red;
661
+ border-radius: 50%;
662
+ vertical-align: middle;
663
+ display: inline-block;
664
+ margin-bottom: 1px;
665
+ }
666
+ }
667
+
668
+ &.to-reed {
669
+ height: 300px;
670
+ overflow: auto;
671
+ margin: -8px -12px;
672
+
673
+
674
+ .item {
675
+ white-space: initial;
676
+ padding: 8px 22px 2px;
677
+ position: relative;
678
+
679
+ &:after {
680
+ content: "";
681
+ position: absolute;
682
+ left: 22px;
683
+ right: 22px;
684
+ border-top: dashed 1px #eee;
685
+ height: 1px;
686
+ bottom: 0;
687
+ }
688
+
689
+ &.noread {
690
+ &:before {
691
+ content: "";
692
+ width: 6px;
693
+ height: 6px;
694
+ background-color: $red;
695
+ border-radius: 50%;
696
+ margin-right: 5px;
697
+ display: inline-block;
698
+ position: absolute;
699
+ left: 10px;
700
+ top: 16px;
701
+ }
702
+ }
703
+
704
+ .el-tag {
705
+ zoom: 0.95;
706
+ padding: 0 5px;
707
+ height: 24px;
708
+ line-height: 24px;
709
+ }
710
+
711
+ // .noread{
712
+ // position: absolute;right:0;top:0;
713
+ // span{transform: rotate(47deg);
714
+ // -ms-transform: rotate(47deg);
715
+ // -moz-transform: rotate(47deg);
716
+ // -webkit-transform: rotate(47deg);
717
+ // -o-transform: rotate(47deg);
718
+ // z-index: 3;
719
+ // color: #FFF;
720
+ // position: absolute;
721
+ // right: 1px;
722
+ // top: 2px;}
723
+ // &:after{
724
+ // content: "\e618";
725
+ // font-size: 62px;
726
+ // font-family: "iconfont";
727
+ // color:$red
728
+ // }
729
+ // }
730
+ .time {
731
+ position: relative;
732
+ right: 0;
733
+ margin-left: 12px;
734
+ }
735
+
736
+ .name {
737
+ overflow: hidden;
738
+ text-overflow: ellipsis;
739
+ white-space: nowrap;
740
+ margin-top: 3px;
741
+ display: block;
742
+ margin-bottom: 4px;
743
+ }
744
+
745
+ &:hover .name {
746
+ color: $baseColor
747
+ }
748
+
749
+ &:first-child:before {
750
+ border-top: none
751
+ }
752
+
753
+ .btns {
754
+ text-align: right;
755
+
756
+ .el-link {
757
+ font-size: 12px;
758
+ display: inline-block;
759
+ margin-left: 14px;
760
+
761
+ i {
762
+ font-size: 12px;
763
+ margin-right: 3px;
764
+ }
765
+ }
766
+ }
767
+ }
768
+
769
+ }
770
+ }
771
+
772
+ .fast-box {
773
+ margin: 6px 4px 4px;
774
+ overflow: hidden;
775
+
776
+ .item {
777
+ width: 118px;
778
+ text-align: center;
779
+ float: left;
780
+ margin-right: 14px;
781
+
782
+ p {
783
+ color: #2a6494;
784
+ border: solid 1px #e2e2e2;
785
+ margin: 3.5px 4px;
786
+ width: calc(100% - 4px);
787
+ border-radius: 6px;
788
+ position: relative;
789
+ height: 54px;
790
+ line-height: 54px;
791
+ text-align: left;
792
+ padding-left: 14px;
793
+ font-size: 12px;
794
+
795
+ i {
796
+ font-size: 14px;
797
+ vertical-align: middle;
798
+ margin-right: 2px;
799
+ }
800
+
801
+ span {
802
+ vertical-align: middle;
803
+ }
804
+
805
+ &:before {
806
+ content: '';
807
+ width: 4px;
808
+ height: 24px;
809
+ display: inline-block;
810
+ background: #225279b8;
811
+ position: absolute;
812
+ left: -1px;
813
+ top: 50%;
814
+ margin-top: -12px;
815
+ }
816
+
817
+ &:hover {
818
+ background-color: $baseColor;
819
+ color: #fff;
820
+ border-color: $baseColor;
821
+
822
+ &:before {
823
+ background: #fff;
824
+ }
825
+ }
826
+ }
827
+ }
828
+ }
829
+
830
+ .need-to {
831
+ height: 332px;
832
+ }
833
+
834
+ .table-box {
835
+ width: 100%;
836
+ font-size: 12px;
837
+
838
+ th {
839
+ line-height: 32px;
840
+ background: #f7f7f7;
841
+ font-weight: 400;
842
+ color: #808080;
843
+ padding: 0 6px;
844
+ }
845
+
846
+ td {
847
+ text-align: center;
848
+ line-height: 34px;
849
+ color: #424242;
850
+ border-bottom: solid 1px #eee;
851
+ padding: 0 6px;
852
+ }
853
+
854
+ tr:last-child td {
855
+ border-bottom: none;
856
+ }
857
+ }
858
+ }
859
+
860
+ .box-card .more {
861
+ background-color: #f7f7f7;
862
+ }
863
+
864
+ .group-list {
865
+ padding: 18px 18px 6px 32px !important;
866
+ height: 400px;
867
+ overflow: auto;
868
+
869
+ .item {
870
+ position: relative;
871
+ height: 36px;
872
+ border: solid 1px #eee;
873
+ line-height: 34px;
874
+ border-radius: 2px;
875
+ padding: 0 42px 0 14px;
876
+ margin-bottom: 10px;
877
+ cursor: pointer;
878
+
879
+ &::before {
880
+ content: "";
881
+ width: 8px;
882
+ height: 8px;
883
+ border: solid 1px #eee;
884
+ border-radius: 50%;
885
+ display: inline-block;
886
+ position: absolute;
887
+ left: -16px;
888
+ top: 13px;
889
+ }
890
+
891
+ &.checked {
892
+ &:before {
893
+ content: "";
894
+ background-color: $baseColor;
895
+ border-color: $baseColor
896
+ }
897
+
898
+ background-color: transparentize($baseColor, 0.9);
899
+ color: $baseColor;
900
+ border-color: $baseColor;
901
+ }
902
+
903
+ i {
904
+ font-size: 12px;
905
+ vertical-align: middle;
906
+ }
907
+
908
+ .name {
909
+ font-size: 12px;
910
+ margin-left: 8px;
911
+ vertical-align: middle;
912
+ }
913
+
914
+ .nums {
915
+ width: 22px;
916
+ height: 22px;
917
+ border-radius: 50%;
918
+ display: inline-block;
919
+ position: absolute;
920
+ right: 5px;
921
+ top: 6px;
922
+ color: #FFF;
923
+ font-size: 12px;
924
+ background-color: $red;
925
+ line-height: 22px;
926
+ text-align: center;
927
+ }
928
+ }
929
+ }
930
+
931
+ .notice-box {
932
+ background-color: #2a649429;
933
+ border-radius: 0 0 4px 4px;
934
+ padding: 9px 12px;
935
+ margin-bottom: 5px;
936
+ margin-top: -6px;
937
+ position: relative;
938
+ z-index: 2;
939
+ font-size: 13px;
940
+ color: #212121;
941
+ overflow: hidden;
942
+
943
+ .txt {
944
+ line-height: 28px;
945
+ font-size: 12px;
946
+ position: relative;
947
+ display: inline-block;
948
+ cursor: pointer;
949
+
950
+ &:before {
951
+ content: "";
952
+ background-color: $baseColor;
953
+ width: 4px;
954
+ height: 20px;
955
+ border-radius: 2px;
956
+ display: inline-block;
957
+ vertical-align: middle;
958
+ margin-right: 18px;
959
+ }
960
+
961
+ i {
962
+ font-size: 14px;
963
+ margin-right: 12px;
964
+ vertical-align: middle;
965
+ }
966
+
967
+ > span {
968
+ vertical-align: middle;
969
+ height: 22px;
970
+ line-height: 22px;
971
+ display: inline-block;
972
+
973
+ b {
974
+ color: #FFF;
975
+ margin: 0 4px;
976
+ font-size: 16px;
977
+ vertical-align: middle;
978
+ background: #FF5615;
979
+ border-radius: 50%;
980
+ display: inline-block;
981
+ padding: 4px;
982
+ font-weight: 200;
983
+ line-height: 1;
984
+ }
985
+ }
986
+
987
+ }
988
+
989
+ .el-button {
990
+ position: absolute;
991
+ right: 46px;
992
+ padding: 0;
993
+ height: 22px;
994
+ line-height: 22px;
995
+ min-width: 22px;
996
+ text-align: center;
997
+ border-radius: 2px;
998
+ top: 50%;
999
+ margin-top: -11px;
1000
+
1001
+ i {
1002
+ font-size: 15px;
1003
+ }
1004
+
1005
+ &:hover {
1006
+ background-color: $baseColor;
1007
+ color: #FFF;
1008
+ }
1009
+
1010
+ &.more {
1011
+ right: 12px;
1012
+ background: #f7f7f7;
1013
+
1014
+ &:hover {
1015
+ color: $baseColor
1016
+ }
1017
+ }
1018
+ }
1019
+
1020
+ ::v-deep .el-card.is-always-shadow {
1021
+ box-shadow: 0 2px 2px 0 rgb(0 0 0 / 6%);
1022
+ }
1023
+ }
1024
+ </style>