cloud-web-corejs 1.0.54-dev.35 → 1.0.54-dev.351

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 (354) hide show
  1. package/package.json +8 -3
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/mixins.js +1 -1
  4. package/src/components/VabUpload/propertiesDialog.vue +1 -1
  5. package/src/components/VabUpload/view.vue +218 -120
  6. package/src/components/advancedSearchDialog/mixins.js +1 -1
  7. package/src/components/baseAttachment/index.vue +49 -40
  8. package/src/components/baseAttachment/mixins.js +1 -1
  9. package/src/components/baseInputExport/mixins.js +386 -1
  10. package/src/components/errorMsg/mixins.js +94 -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/excelImport/mixins.js +750 -1
  17. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
  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 +333 -1
  34. package/src/components/langImport/mixins.js +500 -16
  35. package/src/components/statusTag/mixins.js +1 -1
  36. package/src/components/table/CellSlot.vue +1 -0
  37. package/src/components/table/index.js +12 -10
  38. package/src/components/table/tableForm.vue +99 -63
  39. package/src/components/table/tableFormMixin.js +1 -1
  40. package/src/components/table/util/index.js +328 -0
  41. package/src/components/table/vxeFilter/mixin.js +6 -6
  42. package/src/components/tempStorage/index.vue +9 -6
  43. package/src/components/tempStorage/tempStorageDialog.vue +1 -1
  44. package/src/components/vb-tabs/x-tabs.vue +3 -2
  45. package/src/components/wf/addOpinionButton.vue +57 -0
  46. package/src/components/wf/content.vue +833 -362
  47. package/src/components/wf/mixins/addOpinionButton.js +3 -0
  48. package/src/components/wf/mixins/setCandidateButton.js +6 -0
  49. package/src/components/wf/mixins/setCandidateDialog.js +2 -1
  50. package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
  51. package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
  52. package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
  53. package/src/components/wf/setCandidateButton.vue +40 -0
  54. package/src/components/wf/setCandidateDialog.vue +10 -0
  55. package/src/components/wf/setCandidateDialog2.vue +95 -0
  56. package/src/components/wf/wf.js +2117 -1
  57. package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
  58. package/src/components/wf/wfStartDialog.vue +70 -42
  59. package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
  60. package/src/components/wf/wfUtil.js +1 -1
  61. package/src/components/xform/form-designer/designer.js +1649 -3
  62. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
  63. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +289 -8
  64. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
  65. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  66. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  67. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
  68. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  69. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  70. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  71. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1331 -1
  72. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
  73. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  74. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  75. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  76. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  77. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  78. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  79. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  80. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
  81. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  82. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  83. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  84. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  85. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  86. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1615 -16
  87. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +652 -379
  88. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +10 -8
  89. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  90. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  91. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  92. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  93. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  94. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  95. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +107 -81
  96. package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
  97. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
  98. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
  99. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  100. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
  101. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
  102. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  103. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
  104. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  105. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
  106. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
  107. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +31 -17
  108. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  109. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  110. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
  111. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  112. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  113. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  114. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +259 -58
  115. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
  116. package/src/components/xform/form-designer/indexMixin.js +825 -2
  117. package/src/components/xform/form-designer/setting-panel/form-setting.vue +927 -159
  118. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  119. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  120. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -302
  121. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
  122. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
  123. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  124. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  125. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
  126. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  127. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  128. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1196 -1042
  129. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  130. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1160 -511
  131. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  132. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  133. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  134. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  135. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  136. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  137. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  138. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  139. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  140. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  141. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
  142. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
  143. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  144. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  145. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  146. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  147. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  148. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  149. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +32 -9
  150. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  151. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
  152. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
  153. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  154. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +67 -41
  155. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  156. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  157. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  158. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  159. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
  160. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +52 -5
  161. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  162. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
  163. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  164. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  165. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  166. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  167. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  168. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  169. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
  170. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  171. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
  172. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
  173. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
  174. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  175. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
  176. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
  177. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
  178. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
  179. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
  180. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
  181. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +30 -11
  182. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  183. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  184. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  185. package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -18
  186. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1576 -874
  187. package/src/components/xform/form-render/container-item/containerItemMixin.js +359 -11
  188. package/src/components/xform/form-render/container-item/data-table-item.vue +89 -42
  189. package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -18
  190. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  191. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  192. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  193. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  194. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  195. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  196. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  197. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  198. package/src/components/xform/form-render/index.vue +4 -1
  199. package/src/components/xform/form-render/indexMixin.js +13 -26
  200. package/src/components/xform/lang/zh-CN.js +20 -3
  201. package/src/components/xform/mixins/defaultHandle.js +1 -1
  202. package/src/components/xform/mixins/scriptHttp.js +175 -1
  203. package/src/components/xform/utils/emitter.js +4 -4
  204. package/src/components/xform/utils/format.js +21 -30
  205. package/src/components/xform/utils/formula-util.js +669 -0
  206. package/src/components/xform/utils/util.js +1451 -1
  207. package/src/components/xform/utils/validators.js +1 -5
  208. package/src/index.js +2 -2
  209. package/src/layout/components/AppMain.vue +5 -1
  210. package/src/layout/components/Sidebar/default.vue +50 -6
  211. package/src/layout/components/TagsView/index.vue +37 -12
  212. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  213. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  214. package/src/layout/components/extractedCode/viewDialog.vue +193 -0
  215. package/src/layout/components/watermark/index.vue +83 -0
  216. package/src/layout/defaultLayout.vue +1 -1
  217. package/src/mixins/selectDialog/index.js +1 -1
  218. package/src/mixins/tableTree/index.js +1 -1
  219. package/src/router/modules/customer.js +61 -8
  220. package/src/store/config/index.js +1 -532
  221. package/src/store/modules/permission.js +1 -1
  222. package/src/store/modules/settings.js +1 -1
  223. package/src/store/modules/tagsView.js +1 -14
  224. package/src/store/modules/user.js +1 -1
  225. package/src/utils/index.js +2 -3
  226. package/src/utils/pddLog.js +103 -0
  227. package/src/utils/pdfUtil.js +71 -0
  228. package/src/utils/request.js +359 -1
  229. package/src/utils/vab.js +1113 -27
  230. package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
  231. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  232. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  233. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  234. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
  235. package/src/views/bd/setting/bd_company_env/edit.vue +193 -0
  236. package/src/views/bd/setting/bd_company_env/list.vue +175 -0
  237. package/src/views/bd/setting/config_manage/list.vue +66 -0
  238. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  239. package/src/views/bd/setting/form_import_log/list.vue +206 -0
  240. package/src/views/bd/setting/form_script/edit.vue +9 -0
  241. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  242. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  243. package/src/views/bd/setting/form_script/list1.vue +4 -4
  244. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  245. package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
  246. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  247. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  248. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  249. package/src/views/bd/setting/form_script/mixins/list1.js +423 -14
  250. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  251. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  252. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  253. package/src/views/bd/setting/form_template/edit.vue +22 -1
  254. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  255. package/src/views/bd/setting/form_template/list.vue +5 -5
  256. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +282 -0
  257. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  258. package/src/views/bd/setting/form_template/mixins/list.js +689 -22
  259. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  260. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  261. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  262. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +140 -75
  263. package/src/views/bd/setting/form_template/{list2.vue → wf_list.vue} +25 -35
  264. package/src/views/bd/setting/logic_param/edit.vue +146 -0
  265. package/src/views/bd/setting/logic_param/edit1.vue +106 -0
  266. package/src/views/bd/setting/logic_param/edit2.vue +122 -0
  267. package/src/views/bd/setting/logic_param/list.vue +74 -0
  268. package/src/views/bd/setting/logic_param/list1.vue +12 -0
  269. package/src/views/bd/setting/logic_param/list2.vue +12 -0
  270. package/src/views/bd/setting/logic_param/mixins/edit.js +93 -0
  271. package/src/views/bd/setting/logic_param/mixins/list.js +358 -0
  272. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  273. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
  274. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  275. package/src/views/bd/setting/push_data/edit.vue +139 -0
  276. package/src/views/bd/setting/push_data/list.vue +283 -0
  277. package/src/views/bd/setting/push_data_h/edit.vue +153 -0
  278. package/src/views/bd/setting/push_data_h/list.vue +293 -0
  279. package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
  280. package/src/views/bd/setting/request_async_setting/list.vue +372 -0
  281. package/src/views/bd/setting/request_setting/edit.vue +300 -0
  282. package/src/views/bd/setting/request_setting/list.vue +311 -0
  283. package/src/views/bd/setting/table_model/edit.vue +875 -426
  284. package/src/views/bd/setting/table_model/list.vue +4 -4
  285. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  286. package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
  287. package/src/views/bd/setting/table_model/mixins/list.js +440 -14
  288. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  289. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  290. package/src/views/user/area/dialog.vue +21 -9
  291. package/src/views/user/bill_setting/edit.vue +1 -1
  292. package/src/views/user/bill_setting/list.vue +1 -1
  293. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  294. package/src/views/user/common_attribute/list.vue +1 -1
  295. package/src/views/user/common_script/edit.vue +1 -1
  296. package/src/views/user/common_script/list.vue +1 -1
  297. package/src/views/user/company_info/dialog.vue +164 -154
  298. package/src/views/user/company_info/edit.vue +1 -1
  299. package/src/views/user/extend_datasource/dialog.vue +1 -0
  300. package/src/views/user/extend_datasource/edit.vue +3 -0
  301. package/src/views/user/extend_datasource/list.vue +2 -1
  302. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  303. package/src/views/user/fieldTranslation/list.vue +32 -32
  304. package/src/views/user/form/vform/designer.vue +775 -749
  305. package/src/views/user/form/vform/out_render.vue +1 -1
  306. package/src/views/user/form/vform/render.vue +8 -4
  307. package/src/views/user/form/view/edit.vue +38 -37
  308. package/src/views/user/form/view/list.vue +68 -15
  309. package/src/views/user/groups/edit.vue +2 -0
  310. package/src/views/user/groups/list.vue +1 -0
  311. package/src/views/user/home/default.vue +1025 -979
  312. package/src/views/user/home/dev.vue +29 -0
  313. package/src/views/user/home/index.vue +16 -6
  314. package/src/views/user/home/taili/index.vue +1034 -0
  315. package/src/views/user/login/default.vue +32 -3
  316. package/src/views/user/login/indexMixin.js +117 -3
  317. package/src/views/user/notify_message/dialog.vue +39 -18
  318. package/src/views/user/notify_template/edit.vue +188 -187
  319. package/src/views/user/notify_template/edit2.vue +176 -0
  320. package/src/views/user/notify_template/list.vue +4 -1
  321. package/src/views/user/notify_template/list2.vue +190 -0
  322. package/src/views/user/outLink/form_view.vue +211 -184
  323. package/src/views/user/outLink/index.vue +17 -0
  324. package/src/views/user/outLink/view.vue +28 -23
  325. package/src/views/user/position/edit.vue +116 -83
  326. package/src/views/user/position/list.vue +118 -86
  327. package/src/views/user/project_tag/dialog.vue +9 -4
  328. package/src/views/user/project_tag/edit.vue +2 -2
  329. package/src/views/user/project_tag/list.vue +9 -4
  330. package/src/views/user/push_setting/list.vue +2 -2
  331. package/src/views/user/request_setting/edit.vue +258 -0
  332. package/src/views/user/request_setting/list.vue +248 -0
  333. package/src/views/user/role/dialog.vue +1 -1
  334. package/src/views/user/role/list.vue +4 -4
  335. package/src/views/user/sale_org/dialog.vue +1 -1
  336. package/src/views/user/sale_org/list.vue +4 -1
  337. package/src/views/user/user/dialog.vue +46 -23
  338. package/src/views/user/user/edit.vue +1059 -1021
  339. package/src/views/user/user/form_dialog.vue +158 -0
  340. package/src/views/user/user/form_edit.vue +9 -0
  341. package/src/views/user/user/form_info.vue +210 -0
  342. package/src/views/user/user/form_list.vue +1 -0
  343. package/src/views/user/user/list.vue +647 -563
  344. package/src/views/user/wf/wfReport/index.vue +448 -0
  345. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  346. package/src/views/user/wf/wf_manage/list.vue +371 -249
  347. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  348. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  349. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  350. package/src/views/user/wf/wf_obj_config/list.vue +114 -9
  351. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
  352. package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
  353. package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
  354. package/src/views/bd/setting/form_template/mixins/list2.js +0 -12
@@ -15,7 +15,9 @@
15
15
  </el-tab-pane>
16
16
  <el-tab-pane :label="$t1('我的流程')" name="second">
17
17
  <div class="tree-box fl">
18
- <div class="tit"><b>{{ $t1('待办类型') }}</b></div>
18
+ <div class="tit">
19
+ <b>{{ $t1("待办类型") }}</b>
20
+ </div>
19
21
  <el-tree
20
22
  :props="defaultProps"
21
23
  :load="loadNode"
@@ -35,38 +37,62 @@
35
37
  <i class="el-icon-more"></i>
36
38
  </div>
37
39
  </label>
38
- <div class="main-right fr" style="padding-left:6px;">
40
+ <div class="main-right fr" style="padding-left: 6px">
39
41
  <div class="grid-height">
40
- <vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
41
- @custom="$vxeTableUtil.customHandle">
42
+ <vxe-grid
43
+ ref="table-m1"
44
+ v-bind="vxeOption"
45
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
46
+ @custom="$vxeTableUtil.customHandle"
47
+ >
42
48
  <template #form>
43
49
  <div class="clearfix screen-btns">
44
50
  <div class="fl">
45
- <base-table-export :option="{ title: $t1('流程待办导出'), targetRef: 'table-m1'}"
46
- :parent-target="_self"/>
51
+ <base-table-export
52
+ :option="{ title: $t1('流程待办导出'), targetRef: 'table-m1' }"
53
+ :parent-target="_self"
54
+ />
47
55
  </div>
48
56
  <div class="fr">
49
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
50
- plain>{{ $t1('重置') }}
57
+ <vxe-button
58
+ icon="el-icon-brush"
59
+ class="button-sty"
60
+ @click="resetEvent"
61
+ type="text"
62
+ status="primary"
63
+ plain
64
+ >{{ $t1("重置") }}
51
65
  </vxe-button>
52
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
53
- {{ $t1('搜索') }}
66
+ <vxe-button
67
+ status="warning"
68
+ icon="el-icon-search"
69
+ class="button-sty"
70
+ @click="searchEvent"
71
+ >
72
+ {{ $t1("搜索") }}
54
73
  </vxe-button>
55
74
  </div>
56
75
  </div>
57
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
58
- @submit="searchEvent" @reset="searchEvent">
59
- <vxe-form-item :title="$t1('待办类型')+':'">
76
+ <vxe-form
77
+ ref="form"
78
+ class="screen-box"
79
+ title-width="92px"
80
+ title-align="right"
81
+ :data="formData"
82
+ @submit="searchEvent"
83
+ @reset="searchEvent"
84
+ >
85
+ <vxe-form-item :title="$t1('待办类型') + ':'">
60
86
  <template v-slot>
61
- <el-input v-model="checkNodeData.label" size="small" disabled/>
87
+ <el-input v-model="checkNodeData.label" size="small" disabled />
62
88
  </template>
63
89
  </vxe-form-item>
64
- <vxe-form-item :title="$t1('流程主题')+':'" field="name">
90
+ <vxe-form-item :title="$t1('流程主题') + ':'" field="name">
65
91
  <template v-slot>
66
- <el-input v-model="formData.name" size="small" clearable/>
92
+ <el-input v-model="formData.name" size="small" clearable />
67
93
  </template>
68
94
  </vxe-form-item>
69
- <vxe-form-item :title="$t1('单据类型')+':'" field="objTypeName">
95
+ <vxe-form-item :title="$t1('单据类型') + ':'" field="objTypeName">
70
96
  <template v-slot>
71
97
  <el-input
72
98
  class="search-input"
@@ -79,12 +105,15 @@
79
105
  v-el-readonly
80
106
  clearable
81
107
  >
82
- <i slot="suffix" class="el-input__icon el-icon-search"
83
- @click="showWfObjConfigDialog = true"></i>
108
+ <i
109
+ slot="suffix"
110
+ class="el-input__icon el-icon-search"
111
+ @click="showWfObjConfigDialog = true"
112
+ ></i>
84
113
  </el-input>
85
114
  </template>
86
115
  </vxe-form-item>
87
- <vxe-form-item :title="$t1('流程状态')+':'" field="stat">
116
+ <vxe-form-item :title="$t1('流程状态') + ':'" field="stat">
88
117
  <template v-slot>
89
118
  <el-select v-model="formData.stat" clearable>
90
119
  <el-option :value="1" :label="$t1('审核中')"></el-option>
@@ -93,57 +122,113 @@
93
122
  </el-select>
94
123
  </template>
95
124
  </vxe-form-item>
125
+ <vxe-form-item :title="$t1('启动人') + ':'" field="starterName">
126
+ <template v-slot>
127
+ <el-input v-model="formData.starterName" size="small" clearable />
128
+ </template>
129
+ </vxe-form-item>
130
+ <vxe-form-item title="启动时间:">
131
+ <template v-slot>
132
+ <el-date-picker
133
+ v-model="formData.startTime"
134
+ type="datetime"
135
+ placeholder=""
136
+ size="small"
137
+ clearable
138
+ value-format="yyyy-MM-dd HH:mm:ss"
139
+ :picker-options="$baseStartPickerOptions(formData.endTime)"
140
+ ></el-date-picker>
141
+ <span>-</span>
142
+ <el-date-picker
143
+ v-model="formData.endTime"
144
+ type="datetime"
145
+ placeholder=""
146
+ size="small"
147
+ clearable
148
+ value-format="yyyy-MM-dd HH:mm:ss"
149
+ default-time="23:59:59"
150
+ :picker-options="$baseEndPickerOptions(formData.startTime)"
151
+ ></el-date-picker>
152
+ </template>
153
+ </vxe-form-item>
96
154
  </vxe-form>
97
155
  </template>
98
156
  </vxe-grid>
99
157
  </div>
100
158
  </div>
101
159
  </el-tab-pane>
102
- <el-tab-pane :label="$t1('全部流程')" name="third" v-if="flag==1">
160
+ <el-tab-pane :label="$t1('全部流程')" name="third" v-if="flag == 1">
103
161
  <div class="grid-height">
104
- <vxe-grid ref="table-m2" v-bind="vxeOption2" @resizable-change="$vxeTableUtil.onColumnWitchChange"
105
- @custom="$vxeTableUtil.customHandle">
162
+ <vxe-grid
163
+ ref="table-m2"
164
+ v-bind="vxeOption2"
165
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
166
+ @custom="$vxeTableUtil.customHandle"
167
+ >
106
168
  <template #form>
107
169
  <div class="clearfix screen-btns">
108
170
  <div class="fl">
109
- <base-table-export :option="{ title: $t1('流程待办导出'), targetRef: 'table-m2'}"
110
- :parent-target="_self"/>
171
+ <base-table-export
172
+ :option="{ title: $t1('流程待办导出'), targetRef: 'table-m2' }"
173
+ :parent-target="_self"
174
+ />
111
175
  </div>
112
176
  <div class="fr">
113
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent2" type="text" status="primary"
114
- plain>{{ $t1('重置') }}
177
+ <vxe-button
178
+ icon="el-icon-brush"
179
+ class="button-sty"
180
+ @click="resetEvent2"
181
+ type="text"
182
+ status="primary"
183
+ plain
184
+ >{{ $t1("重置") }}
115
185
  </vxe-button>
116
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent2">
117
- {{ $t1('搜索') }}
186
+ <vxe-button
187
+ status="warning"
188
+ icon="el-icon-search"
189
+ class="button-sty"
190
+ @click="searchEvent2"
191
+ >
192
+ {{ $t1("搜索") }}
118
193
  </vxe-button>
119
194
  </div>
120
195
  </div>
121
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData2"
122
- @submit="searchEvent2" @reset="searchEvent2">
123
- <vxe-form-item :title="$t1('流程主题')+':'" field="name">
196
+ <vxe-form
197
+ ref="form"
198
+ class="screen-box"
199
+ title-width="92px"
200
+ title-align="right"
201
+ :data="formData2"
202
+ @submit="searchEvent2"
203
+ @reset="searchEvent2"
204
+ >
205
+ <vxe-form-item :title="$t1('流程主题') + ':'" field="name">
124
206
  <template v-slot>
125
- <el-input v-model="formData2.name" size="small" clearable/>
207
+ <el-input v-model="formData2.name" size="small" clearable />
126
208
  </template>
127
209
  </vxe-form-item>
128
- <vxe-form-item :title="$t1('单据类型')+':'" field="objTypeName">
210
+ <vxe-form-item :title="$t1('单据类型') + ':'" field="objTypeName">
129
211
  <template v-slot>
130
212
  <el-input
131
213
  class="search-input"
132
214
  max="200"
133
215
  v-model="formData2.objTypeName"
134
216
  @clear="
135
- formData2.objTypeCode = null;
136
- $forceUpdate();
137
- "
217
+ formData2.objTypeCode = null;
218
+ $forceUpdate();
219
+ "
138
220
  v-el-readonly
139
221
  clearable
140
222
  >
141
- <i slot="suffix" class="el-input__icon el-icon-search"
142
- @click="showWfObjConfigDialog2 = true"></i>
223
+ <i
224
+ slot="suffix"
225
+ class="el-input__icon el-icon-search"
226
+ @click="showWfObjConfigDialog2 = true"
227
+ ></i>
143
228
  </el-input>
144
229
  </template>
145
230
  </vxe-form-item>
146
- <vxe-form-item :title="$t1('流程状态')+':'" field="stat">
231
+ <vxe-form-item :title="$t1('流程状态') + ':'" field="stat">
147
232
  <template v-slot>
148
233
  <el-select v-model="formData2.stat" clearable>
149
234
  <el-option :value="1" :label="$t1('审核中')"></el-option>
@@ -152,45 +237,59 @@
152
237
  </el-select>
153
238
  </template>
154
239
  </vxe-form-item>
240
+ <vxe-form-item :title="$t1('当前任务用户') + ':'" field="candidateNames">
241
+ <template v-slot>
242
+ <el-input v-model="formData2.candidateNames" size="small" clearable />
243
+ </template>
244
+ </vxe-form-item>
155
245
  </vxe-form>
156
246
  </template>
157
247
  </vxe-grid>
158
248
  </div>
159
249
  </el-tab-pane>
160
250
  </el-tabs>
161
- <wfObjConfigDialog v-if="showWfObjConfigDialog" :visiable.sync="showWfObjConfigDialog" :type.sync="type"
162
- @confirm="confirmInsertWfObjConfig" :multi="false"></wfObjConfigDialog>
163
- <wfObjConfigDialog v-if="showWfObjConfigDialog2" :visiable.sync="showWfObjConfigDialog2" :type="99"
164
- @confirm="confirmInsertWfObjConfig2" :multi="false"></wfObjConfigDialog>
251
+ <wfObjConfigDialog
252
+ v-if="showWfObjConfigDialog"
253
+ :visiable.sync="showWfObjConfigDialog"
254
+ :type.sync="type"
255
+ @confirm="confirmInsertWfObjConfig"
256
+ :multi="false"
257
+ ></wfObjConfigDialog>
258
+ <wfObjConfigDialog
259
+ v-if="showWfObjConfigDialog2"
260
+ :visiable.sync="showWfObjConfigDialog2"
261
+ :type="99"
262
+ @confirm="confirmInsertWfObjConfig2"
263
+ :multi="false"
264
+ ></wfObjConfigDialog>
165
265
  </div>
166
266
  </template>
167
267
  <script>
168
- import {treeScollx} from '@base/utils/global.js';
169
- import wfObjConfigDialog from '../../../../views/user/wf/wf_obj_config/dialog.vue';
268
+ import { treeScollx } from "@base/utils/global.js";
269
+ import wfObjConfigDialog from "../../../../views/user/wf/wf_obj_config/dialog.vue";
170
270
 
171
271
  export default {
172
- name: 'wf_manage:list',
173
- components: {wfObjConfigDialog},
174
- created() {
175
- },
272
+ name: "wf_manage:list",
273
+ components: { wfObjConfigDialog },
274
+ created() {},
176
275
  async mounted() {
177
- treeScollx({target: this, type: 'default'});
276
+ treeScollx({ target: this, type: "default" });
178
277
  await this.initWfParam();
179
278
  this.initTableList();
180
279
  this.initRole();
181
280
  },
182
281
  data() {
183
282
  return {
184
- activeName: 'second',
283
+ activeName: "second",
185
284
  // dataId: 0,
186
285
  // showEdit: false,
187
286
  vxeOption: {},
188
287
  formData: {},
189
288
  checkNode: {},
190
289
  defaultProps: {
191
- label: 'label', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
290
+ label: "label", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
192
291
  children: [],
193
- isLeaf: 'leaf'
292
+ isLeaf: "leaf",
194
293
  },
195
294
  wfObjTypes: [],
196
295
  showWfObjConfigDialog: false,
@@ -206,70 +305,77 @@ export default {
206
305
  },
207
306
  computed: {
208
307
  type() {
209
- return this.checkNode && this.checkNode.data ? this.checkNode.data.type : '';
308
+ return this.checkNode && this.checkNode.data ? this.checkNode.data.type : "";
210
309
  },
211
310
  checkNodeData() {
212
311
  return this.checkNode && this.checkNode.data ? this.checkNode.data : {};
213
- }
312
+ },
214
313
  },
215
314
  methods: {
216
315
  searchEvent() {
217
- this.$refs['table-m1'].commitProxy('reload');
316
+ this.$refs["table-m1"].commitProxy("reload");
218
317
  },
219
318
  resetEvent() {
220
319
  this.formData = {};
221
- this.$refs['table-m1'].commitProxy('reload');
320
+ this.$refs["table-m1"].commitProxy("reload");
222
321
  },
223
322
 
224
323
  initTableList() {
225
324
  let that = this;
226
- let paramColumns = this.wfParamDTOs.map(item => {
227
- let flag = item.paramName == '单号';
325
+ let paramColumns = this.wfParamDTOs.map((item) => {
326
+ let flag = item.paramName == "单号";
228
327
  return {
229
328
  title: this.$t1(item.paramName),
230
329
  field: item.paramKey,
231
330
  width: 150,
232
- fixed: flag ? 'left' : '',
233
- slots: flag ? {
234
- default: ({row}) => {
235
- return [
236
- <div>
237
- <a
238
- href="javascript:void(0);"
239
- class="a-link"
240
- onclick={() => {
241
- this.openEditDialog(row);
242
- }}
243
- style="font-weight:bold; text-decoration: underline"
244
- >
245
- <el-tooltip class="item" effect="dark" content={this.$t1('查看')} placement="top-start">
246
- <span>{row.param1}</span>
247
- </el-tooltip>
248
- </a>
249
- </div>
250
- ];
251
- }
252
- } : ''
331
+ fixed: flag ? "left" : "",
332
+ slots: flag
333
+ ? {
334
+ default: ({ row }) => {
335
+ return [
336
+ <div>
337
+ <a
338
+ href="javascript:void(0);"
339
+ class="a-link"
340
+ onclick={() => {
341
+ this.openEditDialog(row);
342
+ }}
343
+ style="font-weight:bold; text-decoration: underline"
344
+ >
345
+ <el-tooltip
346
+ class="item"
347
+ effect="dark"
348
+ content={this.$t1("查看")}
349
+ placement="top-start"
350
+ >
351
+ <span>{row.param1}</span>
352
+ </el-tooltip>
353
+ </a>
354
+ </div>,
355
+ ];
356
+ },
357
+ }
358
+ : "",
253
359
  };
254
360
  });
255
361
 
256
362
  // let statuses = {0: '未启动', 1: '审核中', 2: '已完成', 3: '已驳回', 4: '中断'};
257
363
  var statuses = {
258
- 0: [<el-tag type="warning">{this.$t1('未启动')}</el-tag>],
259
- 1: [<el-tag>{this.$t1('审核中')}</el-tag>],
260
- 2: [<el-tag type="success">{this.$t1('已完成')}</el-tag>],
261
- 3: [<el-tag type="danger">{this.$t1('已驳回')}</el-tag>],
262
- 4: [<el-tag type="danger">{this.$t1('中断')}</el-tag>]
364
+ 0: [<el-tag type="warning">{this.$t1("未启动")}</el-tag>],
365
+ 1: [<el-tag>{this.$t1("审核中")}</el-tag>],
366
+ 2: [<el-tag type="success">{this.$t1("已完成")}</el-tag>],
367
+ 3: [<el-tag type="danger">{this.$t1("已驳回")}</el-tag>],
368
+ 4: [<el-tag type="danger">{this.$t1("中断")}</el-tag>],
263
369
  };
264
370
  let tableOption = {
265
371
  vue: this,
266
- tableRef: 'table-m1',
267
- tableName: 'user-wf-wf_manage-list-m2',
268
- path: USER_PREFIX + '/wf_info/listPage',
372
+ tableRef: "table-m1",
373
+ tableName: "user-wf-wf_manage-list-m2",
374
+ path: USER_PREFIX + "/wf_info/listPage",
269
375
  param: () => {
270
376
  return {
271
377
  type: this.type,
272
- ...this.formData
378
+ ...this.formData,
273
379
  };
274
380
  },
275
381
  /*config: {
@@ -278,57 +384,57 @@ export default {
278
384
  }
279
385
  },*/
280
386
  columns: [
281
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
387
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
282
388
  {
283
- title: this.$t1('流程主题'),
284
- field: 'name',
389
+ title: this.$t1("流程主题"),
390
+ field: "name",
285
391
  width: 150,
286
- fixed: 'left'
392
+ fixed: "left",
287
393
  },
288
394
  {
289
- title: this.$t1('单据类型'),
290
- field: 'objTypeName',
291
- width: 150
395
+ title: this.$t1("单据类型"),
396
+ field: "objTypeName",
397
+ width: 150,
292
398
  },
293
399
  {
294
- title: this.$t1('启动人'),
295
- field: 'starterName',
296
- width: 150
400
+ title: this.$t1("启动人"),
401
+ field: "starterName",
402
+ width: 150,
297
403
  },
298
404
  {
299
- title: this.$t1('当前任务'),
300
- field: 'taskName',
301
- width: 150
405
+ title: this.$t1("当前任务"),
406
+ field: "taskName",
407
+ width: 150,
302
408
  },
303
409
  {
304
- title: this.$t1('当前任务用户'),
305
- field: 'candidateNames',
306
- width: 150
410
+ title: this.$t1("当前任务用户"),
411
+ field: "candidateNames",
412
+ width: 150,
307
413
  },
308
414
  {
309
- title: this.$t1('流程状态'),
310
- field: 'stat',
415
+ title: this.$t1("流程状态"),
416
+ field: "stat",
311
417
  width: 150,
312
418
  slots: {
313
- default: ({row}) => {
314
- let html = statuses[row.stat] || '';
419
+ default: ({ row }) => {
420
+ let html = statuses[row.stat] || "";
315
421
  return html;
316
- }
317
- }
422
+ },
423
+ },
318
424
  },
319
425
  {
320
- title: this.$t1('启动时间'),
321
- field: 'createDate',
322
- width: 150
426
+ title: this.$t1("启动时间"),
427
+ field: "createDate",
428
+ width: 150,
323
429
  },
324
430
  ...paramColumns,
325
431
  {
326
432
  width: 47,
327
- fixed: 'right',
328
- title: '',
433
+ fixed: "right",
434
+ title: "",
329
435
  sortable: false,
330
436
  slots: {
331
- default: ({row}) => {
437
+ default: ({ row }) => {
332
438
  return [
333
439
  <a
334
440
  href="javascript:void(0);"
@@ -338,18 +444,23 @@ export default {
338
444
  this.openEditDialog(row);
339
445
  }}
340
446
  >
341
- <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
342
- popper-class="tooltip-skin">
343
- <i class="el-icon-edit"/>
447
+ <el-tooltip
448
+ enterable={false}
449
+ effect="dark"
450
+ content={this.$t1("查看")}
451
+ placement="top"
452
+ popper-class="tooltip-skin"
453
+ >
454
+ <i class="el-icon-edit" />
344
455
  </el-tooltip>
345
- </a>
456
+ </a>,
346
457
  ];
347
- }
348
- }
349
- }
350
- ]
458
+ },
459
+ },
460
+ },
461
+ ],
351
462
  };
352
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
463
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
353
464
  this.vxeOption = opts;
354
465
  });
355
466
  },
@@ -363,29 +474,28 @@ export default {
363
474
  // this.$openEditView('showEdit');
364
475
 
365
476
  let id = row.objId;
366
- let wfDataId = !id || typeof id == 'object' ? 0 : Number(id);
367
- if (row.url == 'form') {
477
+ let wfDataId = !id || typeof id == "object" ? 0 : Number(id);
478
+ if (row.url == "form") {
368
479
  this.param = {
369
480
  formCode: row.objTypeCode.substr(9),
370
- dataId: wfDataId
481
+ dataId: wfDataId,
371
482
  };
372
- let url = '/user/form/vform/render.vue';
373
- this.wfContent = require('@/views' + url).default;
483
+ let url = "/user/form/vform/render.vue";
484
+ this.wfContent = require("@base/views" + url).default;
374
485
  } else {
375
486
  this.param = {
376
- _dataId: wfDataId
487
+ _dataId: wfDataId,
377
488
  };
378
- let url = row.url + '.vue';
379
- this.wfContent = require('@/views' + url).default;
489
+ let url = row.url + ".vue";
490
+ this.wfContent = require("@/views" + url).default;
380
491
  }
381
- this.activeName = 'first';
382
- this.$openEditView('showWfContent');
383
-
492
+ this.activeName = "first";
493
+ this.$openEditView("showWfContent");
384
494
  },
385
495
  guid() {
386
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
496
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function (c) {
387
497
  var r = (Math.random() * 16) | 0,
388
- v = c == 'x' ? r : (r & 0x3) | 0x8;
498
+ v = c == "x" ? r : (r & 0x3) | 0x8;
389
499
  return v.toString(16);
390
500
  });
391
501
  },
@@ -409,55 +519,55 @@ export default {
409
519
  return;
410
520
  }
411
521
  this.$http({
412
- url: USER_PREFIX + '/wf_obj_config/getWfGroups',
413
- method: 'post',
522
+ url: USER_PREFIX + "/wf_obj_config/getWfGroups",
523
+ method: "post",
414
524
  data: {
415
- type: node.data.type
525
+ type: node.data.type,
416
526
  },
417
- success: res => {
527
+ success: (res) => {
418
528
  let rows = res.objx || [];
419
- rows.forEach(item => {
529
+ rows.forEach((item) => {
420
530
  item.leaf = true;
421
- item.label = item.objTypeName + '(' + item.num + ')';
531
+ item.label = item.objTypeName + "(" + item.num + ")";
422
532
  item.type = node.data.type;
423
533
  item.uuid = this.guid();
424
534
  });
425
535
  resolve(rows);
426
- }
536
+ },
427
537
  });
428
538
  },
429
539
  initNodeData(node, resolve) {
430
540
  let data = [
431
541
  {
432
542
  uuid: -1,
433
- label: this.$t1('待审批的'),
543
+ label: this.$t1("待审批的"),
434
544
  type: 0,
435
- leaf: true
545
+ leaf: true,
436
546
  },
437
547
  {
438
548
  uuid: -2,
439
- label: this.$t1('我发起的'),
549
+ label: this.$t1("我发起的"),
440
550
  type: 1,
441
- leaf: true
551
+ leaf: true,
442
552
  },
443
553
  {
444
554
  uuid: -3,
445
- label: this.$t1('已审批的'),
555
+ label: this.$t1("已审批的"),
446
556
  type: 2,
447
- leaf: true
557
+ leaf: true,
448
558
  },
449
559
  {
450
560
  uuid: -4,
451
- label: this.$t1('已完成的'),
452
- type: '3',
453
- leaf: true
561
+ label: this.$t1("已完成的"),
562
+ type: "3",
563
+ leaf: true,
454
564
  },
455
565
  {
456
566
  uuid: -5,
457
- label: this.$t1('我转办的'),
458
- type: '4',
459
- leaf: true
460
- }
567
+ label: this.$t1("我转办的"),
568
+ type: "4",
569
+ leaf: true,
570
+ },
461
571
  ];
462
572
  resolve(data);
463
573
  this.$nextTick(() => {
@@ -488,156 +598,163 @@ export default {
488
598
  confirmInsertWfObjConfig(rows) {
489
599
  if (rows.length) {
490
600
  let row = rows[0];
491
- this.$set(this.formData, 'objTypeName', row.objTypeName);
492
- this.$set(this.formData, 'objTypeCode', row.objTypeCode);
601
+ this.$set(this.formData, "objTypeName", row.objTypeName);
602
+ this.$set(this.formData, "objTypeCode", row.objTypeCode);
493
603
  }
494
604
  },
495
605
  async initWfParam() {
496
606
  return this.$http({
497
- url: USER_PREFIX + '/wf_param/list',
607
+ url: USER_PREFIX + "/wf_param/list",
498
608
  method: `post`,
499
609
  data: {},
500
- success: res => {
610
+ success: (res) => {
501
611
  this.wfParamDTOs = res.objx || [];
502
- }
612
+ },
503
613
  });
504
614
  },
505
615
  //m2
506
616
  initRole() {
507
617
  this.$http({
508
- url: USER_PREFIX + '/user/currentUser',
509
- method: 'post',
510
- success: res => {
618
+ url: USER_PREFIX + "/user/currentUser",
619
+ method: "post",
620
+ success: (res) => {
511
621
  let userInfo = res.objx;
512
622
  this.getIsAdmin(userInfo);
513
- }
623
+ },
514
624
  });
515
625
  },
516
626
  getIsAdmin(userInfo) {
517
627
  this.$http({
518
- url: USER_PREFIX + '/userb/getUserRole',
628
+ url: USER_PREFIX + "/userb/getUserRole",
519
629
  method: `post`,
520
- data: {id: userInfo.id},
521
- success: res2 => {
630
+ data: { id: userInfo.id },
631
+ success: (res2) => {
522
632
  let rows = res2.objx || [];
523
- let codes = rows.map(row => row.roleCode);
524
- if (codes.includes('superadmin') || codes.includes('wfadmin')) {
633
+ let codes = rows.map((row) => row.roleCode);
634
+ if (codes.includes("superadmin") || codes.includes("wfadmin")) {
525
635
  this.flag = 1;
526
636
  setTimeout(() => {
527
637
  this.initTableList2();
528
638
  }, 200);
529
639
  }
530
- }
640
+ },
531
641
  });
532
642
  },
533
643
  searchEvent2() {
534
- this.$refs['table-m2'].commitProxy('reload');
644
+ this.$refs["table-m2"].commitProxy("reload");
535
645
  },
536
646
  resetEvent2() {
537
647
  this.formData2 = {};
538
- this.$refs['table-m2'].commitProxy('reload');
648
+ this.$refs["table-m2"].commitProxy("reload");
539
649
  },
540
650
  initTableList2() {
541
651
  let that = this;
542
- let paramColumns = this.wfParamDTOs.map(item => {
543
- let flag = item.paramName == '单号';
652
+ let paramColumns = this.wfParamDTOs.map((item) => {
653
+ let flag = item.paramName == "单号";
544
654
  return {
545
655
  title: this.$t1(item.paramName),
546
656
  field: item.paramKey,
547
657
  width: 150,
548
- fixed: flag ? 'left' : '',
549
- slots: flag ? {
550
- default: ({row}) => {
551
- return [
552
- <div>
553
- <a
554
- href="javascript:void(0);"
555
- class="a-link"
556
- onclick={() => {
557
- this.openEditDialog(row);
558
- }}
559
- style="font-weight:bold; text-decoration: underline"
560
- >
561
- <el-tooltip class="item" effect="dark" content={this.$t1('查看')} placement="top-start">
562
- <span>{row.param1}</span>
563
- </el-tooltip>
564
- </a>
565
- </div>
566
- ];
567
- }
568
- } : ''
658
+ fixed: flag ? "left" : "",
659
+ slots: flag
660
+ ? {
661
+ default: ({ row }) => {
662
+ return [
663
+ <div>
664
+ <a
665
+ href="javascript:void(0);"
666
+ class="a-link"
667
+ onclick={() => {
668
+ this.openEditDialog(row);
669
+ }}
670
+ style="font-weight:bold; text-decoration: underline"
671
+ >
672
+ <el-tooltip
673
+ class="item"
674
+ effect="dark"
675
+ content={this.$t1("查看")}
676
+ placement="top-start"
677
+ >
678
+ <span>{row.param1}</span>
679
+ </el-tooltip>
680
+ </a>
681
+ </div>,
682
+ ];
683
+ },
684
+ }
685
+ : "",
569
686
  };
570
687
  });
571
688
 
572
689
  var statuses = {
573
- 0: [<el-tag type="warning">{this.$t1('未启动')}</el-tag>],
574
- 1: [<el-tag>{this.$t1('审核中')}</el-tag>],
575
- 2: [<el-tag type="success">{this.$t1('已完成')}</el-tag>],
576
- 3: [<el-tag type="danger">{this.$t1('已驳回')}</el-tag>],
577
- 4: [<el-tag type="danger">{this.$t1('中断')}</el-tag>]
690
+ 0: [<el-tag type="warning">{this.$t1("未启动")}</el-tag>],
691
+ 1: [<el-tag>{this.$t1("审核中")}</el-tag>],
692
+ 2: [<el-tag type="success">{this.$t1("已完成")}</el-tag>],
693
+ 3: [<el-tag type="danger">{this.$t1("已驳回")}</el-tag>],
694
+ 4: [<el-tag type="danger">{this.$t1("中断")}</el-tag>],
578
695
  };
579
696
  let tableOption = {
580
697
  vue: this,
581
- tableRef: 'table-m2',
582
- tableName: 'user-wf-wf_manage-list-m3',
583
- path: USER_PREFIX + '/wf_info/listPageAll',
698
+ tableRef: "table-m2",
699
+ tableName: "user-wf-wf_manage-list-m3",
700
+ path: USER_PREFIX + "/wf_info/listPageAll",
584
701
  param: () => {
585
702
  return {
586
- ...this.formData2
703
+ ...this.formData2,
587
704
  };
588
705
  },
589
706
  columns: [
590
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
707
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
591
708
  {
592
- title: this.$t1('流程主题'),
593
- field: 'name',
709
+ title: this.$t1("流程主题"),
710
+ field: "name",
594
711
  width: 150,
595
- fixed: 'left'
712
+ fixed: "left",
596
713
  },
597
714
  {
598
- title: this.$t1('单据类型'),
599
- field: 'objTypeName',
600
- width: 150
715
+ title: this.$t1("单据类型"),
716
+ field: "objTypeName",
717
+ width: 150,
601
718
  },
602
719
  {
603
- title: this.$t1('启动人'),
604
- field: 'starterName',
605
- width: 150
720
+ title: this.$t1("启动人"),
721
+ field: "starterName",
722
+ width: 150,
606
723
  },
607
724
  {
608
- title: this.$t1('当前任务'),
609
- field: 'taskName',
610
- width: 150
725
+ title: this.$t1("当前任务"),
726
+ field: "taskName",
727
+ width: 150,
611
728
  },
612
729
  {
613
- title: this.$t1('当前任务用户'),
614
- field: 'candidateNames',
615
- width: 150
730
+ title: this.$t1("当前任务用户"),
731
+ field: "candidateNames",
732
+ width: 150,
616
733
  },
617
734
  {
618
- title: this.$t1('流程状态'),
619
- field: 'stat',
735
+ title: this.$t1("流程状态"),
736
+ field: "stat",
620
737
  width: 150,
621
738
  slots: {
622
- default: ({row}) => {
623
- let html = statuses[row.stat] || '';
739
+ default: ({ row }) => {
740
+ let html = statuses[row.stat] || "";
624
741
  return html;
625
- }
626
- }
742
+ },
743
+ },
627
744
  },
628
745
  {
629
- title: this.$t1('启动时间'),
630
- field: 'createDate',
631
- width: 150
746
+ title: this.$t1("启动时间"),
747
+ field: "createDate",
748
+ width: 150,
632
749
  },
633
750
  ...paramColumns,
634
751
  {
635
752
  width: 47,
636
- fixed: 'right',
637
- title: '',
753
+ fixed: "right",
754
+ title: "",
638
755
  sortable: false,
639
756
  slots: {
640
- default: ({row}) => {
757
+ default: ({ row }) => {
641
758
  return [
642
759
  <a
643
760
  href="javascript:void(0);"
@@ -646,28 +763,33 @@ export default {
646
763
  this.openEditDialog(row);
647
764
  }}
648
765
  >
649
- <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
650
- popper-class="tooltip-skin">
651
- <i class="el-icon-edit"/>
766
+ <el-tooltip
767
+ enterable={false}
768
+ effect="dark"
769
+ content={this.$t1("查看")}
770
+ placement="top"
771
+ popper-class="tooltip-skin"
772
+ >
773
+ <i class="el-icon-edit" />
652
774
  </el-tooltip>
653
- </a>
775
+ </a>,
654
776
  ];
655
- }
656
- }
657
- }
658
- ]
777
+ },
778
+ },
779
+ },
780
+ ],
659
781
  };
660
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
782
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
661
783
  this.vxeOption2 = opts;
662
784
  });
663
785
  },
664
786
  confirmInsertWfObjConfig2(rows) {
665
787
  if (rows.length) {
666
788
  let row = rows[0];
667
- this.$set(this.formData2, 'objTypeName', row.objTypeName);
668
- this.$set(this.formData2, 'objTypeCode', row.objTypeCode);
789
+ this.$set(this.formData2, "objTypeName", row.objTypeName);
790
+ this.$set(this.formData2, "objTypeCode", row.objTypeCode);
669
791
  }
670
792
  },
671
- }
793
+ },
672
794
  };
673
795
  </script>