cloud-web-corejs 1.0.54-dev.32 → 1.0.54-dev.320

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 (333) hide show
  1. package/package.json +8 -3
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/propertiesDialog.vue +1 -1
  6. package/src/components/VabUpload/view.vue +135 -119
  7. package/src/components/advancedSearchDialog/mixins.js +1 -1
  8. package/src/components/baseAttachment/index.vue +49 -40
  9. package/src/components/baseAttachment/mixins.js +1 -1
  10. package/src/components/baseInputExport/mixins.js +386 -1
  11. package/src/components/errorMsg/mixins.js +7 -5
  12. package/src/components/excelExport/button.vue +57 -4
  13. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  14. package/src/components/excelExport/index.js +7 -5
  15. package/src/components/excelExport/index.vue +64 -8
  16. package/src/components/excelExport/mixins.js +3 -2
  17. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
  18. package/src/components/fileLibrary/fileObjNotifyEdit.vue +2 -2
  19. package/src/components/fileLibrary/filterDialog.vue +383 -0
  20. package/src/components/fileLibrary/index.vue +23 -24
  21. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  22. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  23. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  24. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +335 -212
  25. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
  26. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
  27. package/src/components/fileLibrary/mixins/indexMixins.js +69 -26
  28. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  29. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  30. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  31. package/src/components/fileLibrary/shareDialog.vue +1 -1
  32. package/src/components/formOplog/mixins.js +1 -1
  33. package/src/components/jsonImport/index.js +1 -1
  34. package/src/components/jsonImport/mixins.js +1 -1
  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 +106 -0
  46. package/src/components/wf/content.vue +138 -28
  47. package/src/components/wf/mixins/setCandidateButton.js +161 -0
  48. package/src/components/wf/mixins/setCandidateDialog.js +2 -1
  49. package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
  50. package/src/components/wf/setCandidateButton.vue +40 -0
  51. package/src/components/wf/setCandidateDialog.vue +10 -0
  52. package/src/components/wf/setCandidateDialog2.vue +95 -0
  53. package/src/components/wf/wf.js +2111 -1
  54. package/src/components/wf/wfStartDialog.vue +70 -42
  55. package/src/components/wf/wfTaskUserRangeDialog.vue +140 -0
  56. package/src/components/wf/wfUtil.js +1 -1
  57. package/src/components/xform/form-designer/designer.js +3 -2
  58. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  59. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
  60. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  61. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  62. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
  63. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  64. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  65. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  66. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  67. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
  68. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  69. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  70. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  71. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  72. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  73. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  74. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  75. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
  76. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  77. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  78. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  79. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  80. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  81. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1569 -16
  82. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -379
  83. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  84. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  85. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  86. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  87. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  88. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  89. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  90. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +2 -2
  91. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
  92. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
  93. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  94. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
  95. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
  96. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  97. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
  98. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  99. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
  100. package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
  101. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +22 -17
  102. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  103. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  104. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
  105. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  106. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  107. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  108. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +259 -58
  109. package/src/components/xform/form-designer/indexMixin.js +1 -1
  110. package/src/components/xform/form-designer/setting-panel/form-setting.vue +926 -158
  111. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  112. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  113. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +71 -7
  114. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
  115. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
  116. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  117. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  118. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
  119. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  120. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  121. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1079 -1042
  122. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  123. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1183 -500
  124. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  125. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  126. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  127. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  128. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  129. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  130. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  131. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  132. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  133. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  134. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
  135. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
  136. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  137. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  138. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  139. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  140. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  141. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  142. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  143. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  144. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
  145. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
  146. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  147. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  148. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  149. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  150. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  151. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  152. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
  153. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  154. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
  155. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  156. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  157. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  158. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  159. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  160. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  161. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  162. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  163. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
  164. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
  165. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
  166. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  167. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
  168. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
  169. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
  170. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
  171. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
  172. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
  173. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +27 -11
  174. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  175. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  176. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  177. package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
  178. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1478 -865
  179. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  180. package/src/components/xform/form-render/container-item/data-table-item.vue +86 -42
  181. package/src/components/xform/form-render/container-item/data-table-mixin.js +2436 -18
  182. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  183. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  184. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  185. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  186. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  187. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  188. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  189. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  190. package/src/components/xform/form-render/index.vue +4 -1
  191. package/src/components/xform/form-render/indexMixin.js +11 -25
  192. package/src/components/xform/lang/zh-CN.js +18 -3
  193. package/src/components/xform/mixins/defaultHandle.js +1 -1
  194. package/src/components/xform/mixins/scriptHttp.js +174 -1
  195. package/src/components/xform/utils/emitter.js +4 -4
  196. package/src/components/xform/utils/format.js +21 -30
  197. package/src/components/xform/utils/formula-util.js +669 -0
  198. package/src/components/xform/utils/util.js +1451 -1
  199. package/src/components/xform/utils/validators.js +1 -5
  200. package/src/index.js +2 -2
  201. package/src/layout/components/AppMain.vue +5 -1
  202. package/src/layout/components/Sidebar/default.vue +50 -6
  203. package/src/layout/components/TagsView/index.vue +37 -12
  204. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  205. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  206. package/src/layout/components/extractedCode/viewDialog.vue +193 -0
  207. package/src/layout/components/watermark/index.vue +83 -0
  208. package/src/layout/defaultLayout.vue +1 -1
  209. package/src/mixins/selectDialog/index.js +1 -1
  210. package/src/mixins/tableTree/index.js +1 -1
  211. package/src/router/modules/customer.js +61 -8
  212. package/src/store/config/index.js +1 -1
  213. package/src/store/modules/permission.js +1 -1
  214. package/src/store/modules/settings.js +1 -1
  215. package/src/store/modules/tagsView.js +1 -14
  216. package/src/store/modules/user.js +1 -1
  217. package/src/utils/index.js +2 -3
  218. package/src/utils/pddLog.js +103 -0
  219. package/src/utils/pdfUtil.js +71 -0
  220. package/src/utils/request.js +324 -1
  221. package/src/utils/vab.js +19 -27
  222. package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
  223. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  224. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  225. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  226. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
  227. package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
  228. package/src/views/bd/setting/bd_company_env/list.vue +175 -0
  229. package/src/views/bd/setting/config_manage/list.vue +51 -0
  230. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  231. package/src/views/bd/setting/form_import_log/list.vue +206 -0
  232. package/src/views/bd/setting/form_script/edit.vue +9 -0
  233. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  234. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  235. package/src/views/bd/setting/form_script/list1.vue +4 -4
  236. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  237. package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
  238. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  239. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  240. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  241. package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
  242. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  243. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  244. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  245. package/src/views/bd/setting/form_template/edit.vue +22 -1
  246. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  247. package/src/views/bd/setting/form_template/list.vue +5 -5
  248. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  249. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  250. package/src/views/bd/setting/form_template/mixins/list.js +688 -22
  251. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  252. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  253. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  254. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  255. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  256. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  257. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  258. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  259. package/src/views/bd/setting/push_data/edit.vue +139 -0
  260. package/src/views/bd/setting/push_data/list.vue +283 -0
  261. package/src/views/bd/setting/push_data_h/edit.vue +153 -0
  262. package/src/views/bd/setting/push_data_h/list.vue +293 -0
  263. package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
  264. package/src/views/bd/setting/request_async_setting/list.vue +317 -0
  265. package/src/views/bd/setting/request_setting/edit.vue +300 -0
  266. package/src/views/bd/setting/request_setting/list.vue +268 -0
  267. package/src/views/bd/setting/table_model/edit.vue +875 -426
  268. package/src/views/bd/setting/table_model/list.vue +4 -4
  269. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  270. package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
  271. package/src/views/bd/setting/table_model/mixins/list.js +439 -14
  272. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  273. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  274. package/src/views/user/area/dialog.vue +21 -9
  275. package/src/views/user/bill_setting/edit.vue +1 -1
  276. package/src/views/user/bill_setting/list.vue +1 -1
  277. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  278. package/src/views/user/common_attribute/list.vue +1 -1
  279. package/src/views/user/common_script/edit.vue +1 -1
  280. package/src/views/user/common_script/list.vue +1 -1
  281. package/src/views/user/company_info/dialog.vue +164 -154
  282. package/src/views/user/company_info/edit.vue +1 -1
  283. package/src/views/user/extend_datasource/dialog.vue +1 -0
  284. package/src/views/user/extend_datasource/edit.vue +3 -0
  285. package/src/views/user/extend_datasource/list.vue +2 -1
  286. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  287. package/src/views/user/fieldTranslation/list.vue +32 -32
  288. package/src/views/user/form/vform/designer.vue +775 -749
  289. package/src/views/user/form/vform/out_render.vue +1 -1
  290. package/src/views/user/form/vform/render.vue +8 -4
  291. package/src/views/user/form/view/edit.vue +38 -37
  292. package/src/views/user/form/view/list.vue +68 -15
  293. package/src/views/user/groups/edit.vue +2 -0
  294. package/src/views/user/groups/list.vue +1 -0
  295. package/src/views/user/home/default.vue +1025 -979
  296. package/src/views/user/home/dev.vue +29 -0
  297. package/src/views/user/home/index.vue +16 -6
  298. package/src/views/user/login/default.vue +32 -3
  299. package/src/views/user/login/indexMixin.js +117 -3
  300. package/src/views/user/notify_message/dialog.vue +23 -8
  301. package/src/views/user/notify_template/edit.vue +188 -187
  302. package/src/views/user/notify_template/edit2.vue +176 -0
  303. package/src/views/user/notify_template/list.vue +4 -1
  304. package/src/views/user/notify_template/list2.vue +190 -0
  305. package/src/views/user/outLink/form_view.vue +211 -184
  306. package/src/views/user/outLink/index.vue +17 -0
  307. package/src/views/user/outLink/view.vue +28 -23
  308. package/src/views/user/position/edit.vue +55 -54
  309. package/src/views/user/position/list.vue +4 -4
  310. package/src/views/user/project_tag/dialog.vue +9 -4
  311. package/src/views/user/project_tag/edit.vue +2 -2
  312. package/src/views/user/project_tag/list.vue +9 -4
  313. package/src/views/user/push_setting/list.vue +2 -2
  314. package/src/views/user/request_setting/edit.vue +258 -0
  315. package/src/views/user/request_setting/list.vue +248 -0
  316. package/src/views/user/role/dialog.vue +1 -1
  317. package/src/views/user/role/list.vue +4 -4
  318. package/src/views/user/sale_org/dialog.vue +1 -1
  319. package/src/views/user/sale_org/list.vue +4 -1
  320. package/src/views/user/user/dialog.vue +46 -23
  321. package/src/views/user/user/edit.vue +1059 -1021
  322. package/src/views/user/user/form_dialog.vue +158 -0
  323. package/src/views/user/user/form_edit.vue +63 -2
  324. package/src/views/user/user/form_info.vue +210 -0
  325. package/src/views/user/user/form_list.vue +1 -0
  326. package/src/views/user/user/list.vue +582 -563
  327. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  328. package/src/views/user/wf/wf_manage/list.vue +30 -1
  329. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  330. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  331. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  332. package/src/views/user/wf/wf_obj_config/list.vue +114 -9
  333. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <span class="button-sty">
3
- <el-button type="success" class="btn-connect" icon="iconfont icon-zancun" @click="openSubmitDialog" plain>暂存</el-button>
3
+ <el-button type="success" class="btn-connect" icon="iconfont icon-zancun" @click="openSubmitDialog" plain :disabled="disabled">暂存</el-button>
4
4
  <el-tooltip class="item" effect="dark" content="查看暂存数据" placement="top">
5
- <el-button class="btn-connect" @click="openTempStorageDialog" icon="iconfont icon-chakanshuju" type="success" ></el-button>
5
+ <el-button class="btn-connect" @click="openTempStorageDialog" icon="iconfont icon-chakanshuju" type="success" :disabled="disabled"></el-button>
6
6
  </el-tooltip>
7
7
 
8
- <tempStorageDialog v-if="showTempStorageDialog" :visiable.sync="showTempStorageDialog"
8
+ <tempStorageDialog v-if="showTempStorageDialog" :visiable.sync="showTempStorageDialog"
9
9
  @confirm="confirmTempStorageDialog" :storageType="storageType" multi="false"/>
10
10
  <el-dialog
11
11
  v-if="showSubmitDialog"
@@ -54,7 +54,8 @@ import tempStorageDialog from "./tempStorageDialog.vue";
54
54
 
55
55
  export default {
56
56
  props: {
57
- option: Object
57
+ option: Object,
58
+ disabled: Boolean,
58
59
  },
59
60
  components: {
60
61
  tempStorageDialog
@@ -82,7 +83,10 @@ export default {
82
83
  let url = USER_PREFIX + '/temp_storage/save';
83
84
  let billData = this.option.data() || {};
84
85
  let data = JSON.stringify(billData)
85
- this.$http({
86
+
87
+ let that = this.option.vue || this.$$attrs["parent-target"] || this.$parent;
88
+ this.showSubmitDialog = false;
89
+ that.$http({
86
90
  url: url,
87
91
  method: `post`,
88
92
  data: {
@@ -99,7 +103,6 @@ export default {
99
103
  duration: 500,
100
104
  onClose: t => {
101
105
  this.option.saveConfirm && this.option.saveConfirm(res);
102
- this.showSubmitDialog = false;
103
106
  }
104
107
  });
105
108
  }
@@ -60,7 +60,7 @@
60
60
  <el-tooltip :enterable="false" effect="dark" :content="$t1('全部删除')" placement="top"><a
61
61
  class="allDel icon-quanbushanchu" @click="clearChecked()"></a></el-tooltip>
62
62
  <div class="list">
63
- <div class="item" v-for="(checkRow, index) in checkRows">
63
+ <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
64
64
  <p>{{ checkRow.storageCode }}</p>
65
65
  <a class="el-icon-close" @click="clearTable1Select(index)"></a>
66
66
  </div>
@@ -36,14 +36,15 @@ export default {
36
36
  }
37
37
  },
38
38
  methods: {
39
- openEditTab(row) {
39
+ openEditTab(row,param) {
40
40
  let paneKeyName = this.paneKeyName;
41
41
  let tab = this.tabs.find(tab => tab.data[paneKeyName] === row[paneKeyName])
42
42
  if (!tab) {
43
43
  tab = {
44
44
  data: row,
45
45
  showContent: false,
46
- dataId: row[paneKeyName]
46
+ dataId: row[paneKeyName],
47
+ param
47
48
  }
48
49
  if (this.tabs.length >= 30) {
49
50
  this.tabs.splice(0, 1, tab);
@@ -0,0 +1,106 @@
1
+ <template>
2
+ <el-button type="primary" class="button-sty" @click="openDialog"
3
+ icon="el-icon-plus">{{ $t1('补充意见') }}
4
+ <el-dialog
5
+ v-if="showDialog"
6
+ :visible.sync="showDialog"
7
+ :modal-append-to-body="false"
8
+ :close-on-click-modal="false"
9
+ :modal="false"
10
+ custom-class="dialog-style wf-dialog"
11
+ :destroy-on-close="true"
12
+ :append-to-body="true"
13
+ v-el-drag-dialog
14
+ v-el-dialog-center
15
+ >
16
+ <template #title>
17
+ <span class="el-dialog__title">{{ $t1('补充意见') }}<span
18
+ style="margin-left: 10px;margin-right: 10px;">—</span><b
19
+ class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
20
+ wfInfo.taskName
21
+ }}</b></span>
22
+ </template>
23
+ <el-form ref="form" :model="formData">
24
+ <div id="containt">
25
+ <table class="table-detail">
26
+ <tbody>
27
+ <tr>
28
+ <th>
29
+ <span class="t">
30
+ {{ $t1('内容') }}
31
+ </span>
32
+ </th>
33
+ <td>
34
+ <el-form-item label="" field="opinion">
35
+ <el-input type="textarea" :rows="8" v-model="formData.opinion"></el-input>
36
+ </el-form-item>
37
+ </td>
38
+ </tr>
39
+ </tbody>
40
+ </table>
41
+ </div>
42
+ </el-form>
43
+ <span slot="footer" class="dialog-footer">
44
+ <el-button type="primary" plain class="button-sty" @click="showDialog=false">
45
+ <i class="el-icon-close el-icon"></i>
46
+ {{ $t2('取 消', 'system.button.cancel2') }}
47
+ </el-button>
48
+ <el-button type="primary" @click="confirmDialog" class="button-sty">
49
+ <i class="el-icon-check el-icon"></i>
50
+ {{ $t2('确 定', 'system.button.confirm2') }}
51
+ </el-button>
52
+ </span>
53
+ </el-dialog>
54
+ </el-button>
55
+ </template>
56
+ <script>
57
+ export default {
58
+ props: {
59
+ wfSendTaskId: String,
60
+ wfInfo: Object,
61
+ current_prefix:String
62
+ },
63
+ inject:['getEditVueTarget'],
64
+ data() {
65
+ return {
66
+ formData: {
67
+ opinion: ''
68
+ },
69
+ showDialog: false
70
+ }
71
+ },
72
+ methods: {
73
+ openDialog() {
74
+ this.showDialog = true
75
+ },
76
+ confirmDialog(){
77
+ this.$refs.form.$baseValidate((valid) => {
78
+ if (valid) {
79
+ let that = this.getEditVueTarget();
80
+ let taskId = this.wfSendTaskId;
81
+ let formData = {
82
+ opinion: this.formData.opinion,
83
+ taskId: taskId
84
+ }
85
+ return that.$http({
86
+ url: this.current_prefix + "/wf/addOpinion",
87
+ method: `post`,
88
+ data: formData,
89
+ isLoading: true,
90
+ modalStrictly: true,
91
+ success: (res) => {
92
+ that.$message({
93
+ message: res.content,
94
+ type: "success",
95
+ duration: 1000,
96
+ });
97
+ this.showDialog = false;
98
+ this.$emit('confirm')
99
+ },
100
+ });
101
+ }
102
+ })
103
+ }
104
+ }
105
+ }
106
+ </script>
@@ -38,11 +38,12 @@
38
38
  v-show="wfInfo.toRevoke"
39
39
  icon="el-icon-document-delete">{{ $t2('撤回', 'components.wf.revoke') }}
40
40
  </el-button>
41
+ <addOpinionButton v-if="showAddOpinionButton" @confirm="reloadContent()" :wfInfo="wfInfo" :wfSendTaskId="wfSendTaskId" :current_prefix="current_prefix"></addOpinionButton>
41
42
  </div>
42
43
  <div class="title-name">
43
44
  <b>
44
45
  <em>{{ $t2('流程主题', 'components.wf.theme') }}:</em>
45
- {{ (wfInfo.createDate ? wfInfo.createDate.substring(0, 10) : '') + wfInfo.name }}
46
+ {{ wfInfo.name }}
46
47
  </b>
47
48
  <span v-html="wfInfo.statusStr" class="status"></span>
48
49
  </div>
@@ -71,35 +72,62 @@
71
72
  <div class="title-tab">
72
73
  <div>
73
74
  <b :class="{on:tabIndex=='1'}" @click="tabIndex='1'">{{ $t2('任务情况', 'components.wf.taskInfo') }}</b>
74
- <b :class="{on:tabIndex=='2'}" @click="tabIndex='2'"
75
- v-if="toTalk">{{ $t2('流程沟通', 'components.wf.wfTalk') }}</b>
76
- <b :class="{on:tabIndex=='3'}" @click="tabIndex='3'"
77
- v-if="showAllWfOpinon">{{ $t2('全部任务情况', 'components.wf.allTaskInfo') }}</b>
75
+ <b :class="{on:tabIndex=='2'}" @click="tabIndex='2'" v-if="toTalk">{{ $t2('流程沟通', 'components.wf.wfTalk') }}</b>
76
+ <b :class="{on:tabIndex=='4'}" @click="tabIndex='4'" v-if="showCandidate">{{ $t1('节点候选人') }}</b>
77
+ <b :class="{on:tabIndex=='3'}" @click="tabIndex='3'" v-if="showAllWfOpinon">{{ $t2('全部任务情况', 'components.wf.allTaskInfo') }}</b>
78
78
  </div>
79
79
  </div>
80
- <div class="task-situation" v-show="tabIndex=='1'" style="max-height: 500px; overflow: hidden auto;">
81
- <div class="item" v-for="wftaskLineData in wftaskData" :key="wftaskLineData.id">
82
- <div class="time">
83
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(0, 10) : '' }}
84
- <br/>
85
- {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : '' }}
86
- </div>
87
- <div class="status" :class="taskStatuses[wftaskLineData.type]?taskStatuses[wftaskLineData.type].class:''">
88
- {{ taskStatuses[wftaskLineData.type] ? taskStatuses[wftaskLineData.type].value : null }}
80
+ <div v-show="tabIndex=='1'">
81
+ <div class="title-five"><b>任务流程</b></div>
82
+ <div class="task-situation" style="padding-left: 14px;">
83
+ <div class="item" v-for="wftaskLineData in wftaskData" :key="wftaskLineData.id">
84
+ <div class="time">
85
+ {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(0, 10) : '' }}
86
+ <br/>
87
+ {{ wftaskLineData.approveTime ? wftaskLineData.approveTime.substring(11) : '' }}
88
+ </div>
89
+ <div class="status" :class="taskStatuses[wftaskLineData.type]?taskStatuses[wftaskLineData.type].class:''">
90
+ {{ taskStatuses[wftaskLineData.type] ? taskStatuses[wftaskLineData.type].value : null }}
91
+ </div>
92
+ <i class="circle"></i>
93
+ <div class="info">
94
+ <p>
95
+ <span class="name">{{ wftaskLineData.taskName }}</span>
96
+ <span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
97
+ <span>
98
+ {{ $t2('候选人', 'components.wf.candidateName') }}:
99
+ <span>
100
+ <span style="float:left;width:auto;margin-right:10px;">{{ wftaskLineData.candidateNames }}</span>
101
+ <setCandidateButton
102
+ v-if="wftaskLineData.flag==1"
103
+ style="float:left;width:auto;"
104
+ :current_prefix="current_prefix"
105
+ :wfInfo="wfInfo"
106
+ :checkRow="wftaskLineData"
107
+ @confirm="reloadContent()"
108
+ ></setCandidateButton>
109
+ </span>
110
+
111
+ </span>
112
+ </p>
113
+ <p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
114
+ wftaskLineData.opinion
115
+ }}</span></p>
116
+ </div>
89
117
  </div>
90
- <i class="circle"></i>
91
- <div class="info">
92
- <p>
93
- <span class="name">{{ wftaskLineData.taskName }}</span>
94
- <span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
95
- <span>
96
- {{ $t2('候选人', 'components.wf.candidateName') }}:
97
- <span class="">{{ wftaskLineData.candidateNames }}</span>
98
- </span>
99
- </p>
100
- <p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
101
- wftaskLineData.opinion
102
- }}</span></p>
118
+
119
+ </div>
120
+ <div class="title-five" v-if="showWfMemo">
121
+ <b>{{$t1("发起人附言")}}</b>
122
+ <el-button v-if="wfInfo.toAddMemo" class="button-sty" icon="el-icon-plus" @click="openWfMemoDialog()" type="primary">{{$t1("新增")}}</el-button>
123
+ </div>
124
+ <div class="postscript-box">
125
+ <div class='item' v-for="(item,index) in wfMemoData" :key="index">
126
+ <div class="txt" style="white-space: pre-wrap;">{{item.content}}</div>
127
+ <div class="attach-box" v-if="item.attachmentDTOs && item.attachmentDTOs.length">
128
+ <baseUpload accept="file" multi="true" :edit="false" :widgetSize="1" :file.sync="item.attachmentDTOs"></baseUpload>
129
+ </div>
130
+ <div class="time">{{item.createDate}}</div>
103
131
  </div>
104
132
  </div>
105
133
  </div>
@@ -205,7 +233,22 @@
205
233
  </div>
206
234
  </div>
207
235
  </div>
236
+ <template v-if="showCandidate">
237
+ <div v-show="tabIndex=='4'">
238
+ <div style="width:800px">
239
+ <vxe-grid
240
+ ref="table-candidate"
241
+ v-bind="candidateOption"
242
+ :data="candidateDatas"
243
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
244
+ @custom="$vxeTableUtil.customHandle"
245
+ ></vxe-grid>
246
+ </div>
247
+ </div>
248
+ </template>
249
+
208
250
  </div>
251
+ <!--沟通-->
209
252
  <el-dialog
210
253
  v-if="showTalkDialog"
211
254
  :visible.sync="showTalkDialog"
@@ -295,6 +338,69 @@
295
338
  </span>
296
339
  </el-dialog>
297
340
 
341
+ <!--发起人附言-->
342
+ <el-dialog
343
+ v-if="showWfMemoDialog"
344
+ :visible.sync="showWfMemoDialog"
345
+ :modal-append-to-body="false"
346
+ :close-on-click-modal="false"
347
+ :modal="false"
348
+ custom-class="dialog-style wf-dialog"
349
+ :append-to-body="true"
350
+ v-el-drag-dialog
351
+ v-el-dialog-center
352
+ >
353
+ <template #title>
354
+ <span class="el-dialog__title">{{ $t1('发起人附言') }}<span
355
+ style="margin-left: 10px;margin-right: 10px;">—</span><b
356
+ class="f-red" style="font-size: 12px;">{{ $t2('节点', 'components.wf.node') }}:{{
357
+ wfInfo.taskName
358
+ }}</b></span>
359
+ </template>
360
+ <el-form :model="wfMemoForm">
361
+ <div id="containt" style="height: 500px;">
362
+ <table class="table-detail">
363
+ <tbody>
364
+ <tr>
365
+ <th>
366
+ <span class="t">
367
+ {{ $t1('内容') }}
368
+ </span>
369
+ </th>
370
+ <td>
371
+ <el-form-item field="content">
372
+ <el-input type="textarea" :rows="8"
373
+ :placeholder="$t1('内容')"
374
+ v-model="wfMemoForm.content"></el-input>
375
+ </el-form-item>
376
+ </td>
377
+ </tr>
378
+ <tr>
379
+ <th>
380
+ <span class="t">
381
+ {{ $t1('附件') }}
382
+ </span>
383
+ </th>
384
+ <td>
385
+ <baseUpload accept="file" multi="true" :file.sync="wfMemoForm.attachmentDTOs"></baseUpload>
386
+ </td>
387
+ </tr>
388
+ </tbody>
389
+ </table>
390
+ </div>
391
+ </el-form>
392
+ <span slot="footer" class="dialog-footer">
393
+ <el-button type="primary" plain class="button-sty" @click="showWfMemoDialog = false">
394
+ <i class="el-icon-close el-icon"></i>
395
+ {{ $t2('取 消', 'system.button.cancel2') }}
396
+ </el-button>
397
+ <el-button type="primary" @click="submitWfMemoForm" class="button-sty">
398
+ <i class="el-icon-check el-icon"></i>
399
+ {{ $t2('确 定', 'system.button.confirm2') }}
400
+ </el-button>
401
+ </span>
402
+ </el-dialog>
403
+
298
404
  <el-dialog
299
405
  v-if="rejectDialogVisible"
300
406
  :visible.sync="rejectDialogVisible"
@@ -437,6 +543,7 @@
437
543
  custom-class="dialog-style wf-dialog"
438
544
  v-el-drag-dialog
439
545
  v-el-dialog-center
546
+ :append-to-body="true"
440
547
  >
441
548
  <template #title>
442
549
  <span class="el-dialog__title">{{ $t2('流程转办', 'components.wf.wfTransfer') }}<span
@@ -592,6 +699,7 @@
592
699
  custom-class="dialog-style wf-dialog"
593
700
  v-el-drag-dialog
594
701
  v-el-dialog-center
702
+ :append-to-body="true"
595
703
  >
596
704
  <template #title>
597
705
  <span class="el-dialog__title">{{ $t2('流程加签', 'components.wf.wfAddIncreaseSign') }}<span
@@ -695,7 +803,9 @@ export default {
695
803
  urgingDialog: () => import('./urgingDialog'),
696
804
  deleteTaskUserDialog: () => import('./deleteTaskUserDialog'),
697
805
  addTaskUserdialog: () => import('./addTaskUserdialog'),
698
- setCandidateDialog: () => import('./setCandidateDialog')
806
+ setCandidateDialog: () => import('./setCandidateDialog'),
807
+ setCandidateButton: () => import('./setCandidateButton'),
808
+ addOpinionButton: () => import('./addOpinionButton'),
699
809
  },
700
810
  mixins: [wfContentMixin]
701
811
  };
@@ -0,0 +1,161 @@
1
+ import userDialog from "../../../views/user/user/dialog.vue";
2
+ import wfTaskUserRangeDialog from '../wfTaskUserRangeDialog.vue'
3
+
4
+ let moudule = {};
5
+ moudule = {
6
+ props: ['visiable', 'multi', 'rows', 'param', 'current_prefix', 'wfInfo','checkRow'],
7
+ components: {userDialog,wfTaskUserRangeDialog},
8
+ created() {
9
+ this.init()
10
+ },
11
+ mounted() {
12
+
13
+ },
14
+ data() {
15
+ var that = this;
16
+ return {
17
+ showDialog: true,
18
+ falseValue: false,
19
+ selectMulti: true,
20
+ vxeOption: {},
21
+ showUserDialog: false,
22
+ userRows: [],
23
+ operateIndex: -1,
24
+
25
+ rangeTableDatas:[],
26
+ userRangeRows: [],
27
+ showWfTaskUserRangeDialog:false,
28
+ currentRow:null
29
+ };
30
+ },
31
+ methods: {
32
+ init(){
33
+ this.currentRow = this.$baseLodash.cloneDeep(this.checkRow);
34
+ },
35
+ openShowWfTaskUserRangeDialog(row, rangeTableDatas){
36
+ /* this.userRangeRows = row.wfTaskCandidateDTOs.map(item => {
37
+ return {
38
+ userId: item.id,
39
+ nickName: item.name
40
+ }
41
+ }); */
42
+ this.rangeTableDatas = rangeTableDatas;
43
+ this.showWfTaskUserRangeDialog = true;
44
+ },
45
+ confirmWfTaskUserRangeDialog(rows){
46
+ let wfInfo = this.wfInfo;
47
+ let item2s = []
48
+ rows.forEach(row => {
49
+ let userId = row.userId;
50
+ item2s.push({
51
+ id: userId,
52
+ name: row.nickName,
53
+ userFlag: 6
54
+ })
55
+ })
56
+
57
+ let formData = {
58
+ uuid: wfInfo.uuid,
59
+ taskId:this.currentRow.taskId,
60
+ nodeId:this.currentRow.taskDefinitionKey,
61
+ wfTaskCandidateDTOs:item2s
62
+ }
63
+
64
+ this.saveItem(formData);
65
+ },
66
+ checkWfTaskUserRange(row, callback){
67
+ //是否使用用户范围
68
+ let wfInfo = this.wfInfo;
69
+ this.$http({
70
+ url: this.current_prefix + '/wf_task_user_range/list',
71
+ method: `post`,
72
+ data: {
73
+ modelId: wfInfo.modelId,
74
+ taskDefinitionKey: row.taskDefinitionKey
75
+ },
76
+ isLoading: true,
77
+ errorMsg: false,
78
+ error:(error)=>{
79
+ if(error?.response?.status == 404){
80
+ //不使用用户范围
81
+ callback && callback();
82
+ }else{
83
+ this.$errorMsg({
84
+ content: error.message,
85
+ type: 'error',
86
+ })
87
+ }
88
+ },
89
+ success: res => {
90
+ let rows = res.objx || [];
91
+ if(!rows.length){
92
+ //不使用用户范围
93
+ callback && callback();
94
+ }else{
95
+ //使用用户范围
96
+ this.openShowWfTaskUserRangeDialog(row, rows)
97
+ }
98
+ }
99
+ });
100
+ },
101
+
102
+ openUserDialig() {
103
+ let row = this.currentRow;
104
+ //是否使用用户范围
105
+ this.checkWfTaskUserRange(row, ()=>{
106
+ //不使用用户范围
107
+ /* this.userRows = row.wfTaskCandidateDTOs.map(item => {
108
+ return {
109
+ id: item.id,
110
+ nickName: item.name
111
+ }
112
+ }); */
113
+ this.showUserDialog = true;
114
+ })
115
+ },
116
+ userConfirm(rows) {
117
+ let wfInfo = this.wfInfo;
118
+ let item2s = []
119
+ rows.forEach(row => {
120
+ let userId = row.id + "";
121
+ item2s.push({
122
+ id: userId,
123
+ name: row.nickName,
124
+ userFlag: 6
125
+ })
126
+ })
127
+
128
+ let formData = {
129
+ uuid: wfInfo.uuid,
130
+ taskId:this.currentRow.taskId,
131
+ nodeId:this.currentRow.taskDefinitionKey,
132
+ wfTaskCandidateDTOs:item2s
133
+ }
134
+
135
+ this.saveItem(formData);
136
+ },
137
+ saveItem(row) {
138
+ this.$http({
139
+ url: this.current_prefix + '/wf/setCurrentTaskUser',
140
+ method: `post`,
141
+ data: row,
142
+ isLoading: true,
143
+ success: res => {
144
+ this.$message({
145
+ message: res.content,
146
+ type: 'success',
147
+ duration: 500,
148
+ onClose: t => {
149
+ this.$emit('confirm')
150
+ }
151
+ });
152
+ }
153
+ });
154
+ },
155
+ closeWin() {
156
+ this.dialogClose();
157
+ this.$emit('close')
158
+ }
159
+ }
160
+ };
161
+ export default moudule;