cloud-web-corejs 1.0.54-dev.50 → 1.0.54-dev.501

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