cloud-web-corejs-haier 1.0.43 → 1.0.44

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 (227) hide show
  1. package/package.json +8 -6
  2. package/src/api/user.js +54 -46
  3. package/src/components/baseAlert/index.vue +57 -53
  4. package/src/components/baseInputExport/index.vue +3 -3
  5. package/src/components/baseTabs/mixins.js +12 -1
  6. package/src/components/errorMsg/index.vue +78 -78
  7. package/src/components/excelExport/button.vue +54 -45
  8. package/src/components/excelExport/exportFieldDialog.vue +3 -3
  9. package/src/components/excelExport/index.js +1 -43
  10. package/src/components/excelExport/index.vue +62 -34
  11. package/src/components/excelExport/mixins.js +74 -87
  12. package/src/components/excelImport/index.js +1 -62
  13. package/src/components/excelImport/mixins.js +1 -774
  14. package/src/components/fileLibrary/index.vue +113 -33
  15. package/src/components/fileLibrary/propertiesDialog.vue +6 -0
  16. package/src/components/hiprint/view/design/index.vue +139 -47
  17. package/src/components/hiprint/view/design/preview.vue +75 -52
  18. package/src/components/hiprint/view/json-view.vue +31 -31
  19. package/src/components/luckysheet/dialog.vue +159 -0
  20. package/src/components/luckysheet/export.js +595 -0
  21. package/src/components/luckysheet/fileUtils.js +147 -0
  22. package/src/components/luckysheet/index.js +69 -0
  23. package/src/components/luckysheet/templateJson.js +12078 -0
  24. package/src/components/luckysheet/view.vue +210 -0
  25. package/src/components/onlineTalk/index.vue +328 -6
  26. package/src/components/onlineTalk/talkUserDialog.vue +280 -0
  27. package/src/components/wf/addTaskUserdialog.vue +5 -5
  28. package/src/components/wf/content.vue +1244 -1169
  29. package/src/components/wf/mixins/setCandidateDialog.js +228 -2
  30. package/src/components/wf/mixins/setCandidateDialog2.js +115 -100
  31. package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
  32. package/src/components/wf/setCandidateDialog.vue +5 -7
  33. package/src/components/wf/setCandidateDialog2.vue +14 -10
  34. package/src/components/wf/wf.js +527 -411
  35. package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
  36. package/src/components/wf/wfUtil.js +129 -91
  37. package/src/components/xform/form-designer/designer.js +1994 -9
  38. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
  39. package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
  40. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
  41. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
  42. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
  43. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
  44. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
  45. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
  46. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
  47. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
  48. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
  49. package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
  50. package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
  51. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
  52. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
  53. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
  54. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
  55. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
  56. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
  57. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
  58. package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
  59. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
  60. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
  61. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
  62. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
  63. package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
  64. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
  65. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
  66. package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
  67. package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
  68. package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
  69. package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
  70. package/src/components/xform/form-render/indexMixin.js +3705 -1
  71. package/src/components/xform/icon-picker/icons.json +284 -0
  72. package/src/components/xform/icon-picker/index.vue +145 -0
  73. package/src/components/xform/lang/zh-CN.js +2 -1
  74. package/src/components/xform/mixins/defaultHandle.js +366 -2
  75. package/src/components/xform/utils/formula-util.js +3 -0
  76. package/src/components/xform/utils/sfc-generator.js +2 -2
  77. package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
  78. package/src/components/xform/utils/tableColumnHelper.js +54 -10
  79. package/src/components/xform/utils/util.js +1547 -1
  80. package/src/index.js +190 -211
  81. package/src/lang/locale/en/login.js +26 -19
  82. package/src/lang/locale/zh/login.js +25 -19
  83. package/src/layout/components/Sidebar/default.vue +252 -71
  84. package/src/layout/components/Sidebar/index.vue +6 -1
  85. package/src/layout/components/TagsView/index.vue +6 -0
  86. package/src/layout/components/langTool.vue +32 -29
  87. package/src/layout/defaultLayout.vue +16 -8
  88. package/src/layout/index.vue +5 -3
  89. package/src/permission.js +135 -1
  90. package/src/router/index.js +1 -4
  91. package/src/store/config/index.js +667 -1
  92. package/src/store/getters.js +2 -1
  93. package/src/store/modules/permission.js +332 -1
  94. package/src/store/modules/settings.js +26 -1
  95. package/src/store/modules/tagsView.js +190 -1
  96. package/src/store/modules/user.js +358 -1
  97. package/src/utils/aes.js +15 -1
  98. package/src/utils/auth.js +27 -1
  99. package/src/utils/componentDialog.js +217 -0
  100. package/src/utils/request.js +368 -1
  101. package/src/utils/vab.js +1256 -7
  102. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
  103. package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
  104. package/src/views/bd/setting/formVersion/button.vue +55 -0
  105. package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
  106. package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
  107. package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
  108. package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
  109. package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
  110. package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
  111. package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
  112. package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
  113. package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
  114. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
  115. package/src/views/bd/setting/formVersion/link.vue +58 -0
  116. package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
  117. package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
  118. package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
  119. package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
  120. package/src/views/bd/setting/formVersion/textDiff.js +102 -0
  121. package/src/views/bd/setting/form_import_log/edit.vue +6 -3
  122. package/src/views/bd/setting/form_import_log/list.vue +5 -0
  123. package/src/views/bd/setting/form_script/edit.vue +196 -83
  124. package/src/views/bd/setting/form_script/edit1.vue +410 -220
  125. package/src/views/bd/setting/form_script/form_list.vue +19 -0
  126. package/src/views/bd/setting/form_script/list.vue +95 -21
  127. package/src/views/bd/setting/form_script/list1.vue +24 -0
  128. package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
  129. package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
  130. package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
  131. package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
  132. package/src/views/bd/setting/form_script/mixins/list.js +163 -95
  133. package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
  134. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
  135. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
  136. package/src/views/bd/setting/form_template/edit.vue +355 -205
  137. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
  138. package/src/views/bd/setting/form_template/list.vue +49 -74
  139. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
  140. package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
  141. package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
  142. package/src/views/bd/setting/form_template/mixins/list.js +114 -82
  143. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  144. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
  145. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
  146. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
  147. package/src/views/bd/setting/form_template/wf_list.vue +161 -127
  148. package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
  149. package/src/views/bd/setting/request_setting/edit.vue +300 -300
  150. package/src/views/bd/setting/request_setting/list.vue +15 -25
  151. package/src/views/bd/setting/table_model/edit.vue +702 -498
  152. package/src/views/bd/setting/table_model/list.vue +28 -0
  153. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  154. package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
  155. package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
  156. package/src/views/bd/setting/table_model/mixins/list.js +55 -20
  157. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
  158. package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
  159. package/src/views/bd/setting/utils/index.js +15 -0
  160. package/src/views/user/api_request/list.vue +203 -203
  161. package/src/views/user/bill_setting/list.vue +345 -345
  162. package/src/views/user/code_rules/list.vue +204 -204
  163. package/src/views/user/common_attribute/list.vue +378 -378
  164. package/src/views/user/common_script/list.vue +341 -341
  165. package/src/views/user/company_info/dialog.vue +80 -49
  166. package/src/views/user/country/list.vue +197 -197
  167. package/src/views/user/extend_datasource/dialog.vue +0 -3
  168. package/src/views/user/extend_datasource/edit.vue +1 -2
  169. package/src/views/user/extend_datasource/list.vue +221 -224
  170. package/src/views/user/fieldTranslation/editDialog.vue +1 -1
  171. package/src/views/user/fieldTranslation/list.vue +473 -473
  172. package/src/views/user/field_values_invisible/list.vue +207 -207
  173. package/src/views/user/file_type/list.vue +271 -271
  174. package/src/views/user/file_view_area/list.vue +331 -331
  175. package/src/views/user/form/vform/designer.vue +303 -287
  176. package/src/views/user/form/vform/formFieldMapping.js +2 -3
  177. package/src/views/user/form/view/edit.vue +19 -1
  178. package/src/views/user/form/view/list.vue +59 -17
  179. package/src/views/user/groups/list.vue +158 -158
  180. package/src/views/user/home/default.vue +274 -182
  181. package/src/views/user/home/default2.vue +1148 -0
  182. package/src/views/user/home/index.vue +2 -1
  183. package/src/views/user/lang_tag/list.vue +170 -170
  184. package/src/views/user/language_setting/list.vue +208 -208
  185. package/src/views/user/ledger_library/list.vue +12 -10
  186. package/src/views/user/login/default.vue +1 -1
  187. package/src/views/user/login/indexMixin.js +204 -169
  188. package/src/views/user/menu/list.vue +575 -575
  189. package/src/views/user/notify_message/dialog.vue +7 -1
  190. package/src/views/user/notify_template/list.vue +192 -192
  191. package/src/views/user/notify_template/list2.vue +190 -190
  192. package/src/views/user/position/list.vue +188 -188
  193. package/src/views/user/project_tag/list.vue +175 -175
  194. package/src/views/user/push_setting/list.vue +236 -236
  195. package/src/views/user/request_setting/list.vue +248 -248
  196. package/src/views/user/role/list.vue +182 -182
  197. package/src/views/user/system_notice/infoDialog.vue +61 -2
  198. package/src/views/user/system_notice/list.vue +203 -203
  199. package/src/views/user/system_parameter/list.vue +141 -141
  200. package/src/views/user/user/edit.vue +45 -0
  201. package/src/views/user/user/form_list.vue +245 -245
  202. package/src/views/user/user/info.vue +253 -140
  203. package/src/views/user/user_log_classify/list.vue +197 -197
  204. package/src/views/user/wf/iframe/index.vue +46 -46
  205. package/src/views/user/wf/wfReport/index.vue +1 -1
  206. package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
  207. package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
  208. package/src/views/user/wf/wf_manage/list.vue +795 -795
  209. package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
  210. package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
  211. package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
  212. package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
  213. package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
  214. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
  215. package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
  216. package/src/views/user/wf/wf_obj_config/list.vue +28 -28
  217. package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
  218. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
  219. package/src/views/user/wf/wf_param/edit.vue +1 -1
  220. package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
  221. package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
  222. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
  223. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
  224. package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
  225. package/src/views/user/wf/wf_work_calendar/date.js +84 -83
  226. package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
  227. package/src/views/user/workbench_menu/list.vue +555 -0
@@ -1,106 +1,106 @@
1
- <template>
2
- <el-dialog
3
- :title="$t1('查看单据流程')"
4
- :append-to-body="true"
5
- :modal-append-to-body="true"
6
- :close-on-click-modal="false"
7
- :visible.sync="showWfDialog"
8
- :modal="false"
9
- custom-class="el-dialog dialog-style designer-dialog indexUse"
10
- width="100%"
11
- height="100%"
12
- top="0px"
13
- bottom="0px"
14
- :destroy-on-close="true"
15
- @close="wfClose"
16
- >
17
- <div id="containt">
18
- <component
19
- v-if="showWfContent && wfContent"
20
- :is="wfContent"
21
- visible-key="showWfContent"
22
- v-bind="param"
23
- :parent-target="_self"
24
- :defaultShowWfContent="true"
25
- :_viewType="1"
26
- @reload="$reloadHandle"
27
- :_handleCallback="handleCallback"
28
- ></component>
29
- </div>
30
- </el-dialog>
31
- </template>
32
-
33
- <script>
34
-
35
- export default {
36
- name: "wfContentDialog",
37
- props: {
38
- option: {
39
- type: Object,
40
- default: {}
41
- }
42
- },
43
- components: {},
44
- data() {
45
- return {
46
- param: {},
47
- wfContent: null,
48
- showWfContent: false,
49
- showWfDialog: true
50
- };
51
- },
52
- created() {
53
- this.openWfDialog();
54
- },
55
- methods: {
56
- handleCallback(flag) {
57
- if ([1, 2, 3, 4].includes(flag)) {
58
- this.$http({
59
- url: USER_PREFIX + "/wf_diy_attribute/getValue",
60
- method: `post`,
61
- data: {attributeKey: "param4"},
62
- isLoading: true,
63
- success: (res) => {
64
- let val = res.objx || false;
65
- this.option._handleCallback && this.option._handleCallback(flag);
66
- if (val === true) {
67
- this.wfClose();
68
- }
69
- }
70
- });
71
- } else {
72
- this.option._handleCallback && this.option._handleCallback(flag);
73
- }
74
- },
75
- wfClose() {
76
- this.showWfDialog = false;
77
- this.$emit('update:visible', false);
78
- this.$emit('close');
79
- },
80
- openWfDialog() {
81
- let id = this.option.objId;
82
- let wfDataId = !id || typeof id == 'object' ? 0 : Number(id);
83
- let param = this.option.param || {};
84
- if (this.option.url == 'form') {
85
- this.param = Object.assign(param, {
86
- formCode: this.option.objTypeCode.substr(9),
87
- dataId: wfDataId
88
- });
89
- let url = '/user/form/vform/render.vue';
90
- this.wfContent = require('@base/views' + url).default;
91
- } else {
92
- this.param = Object.assign(param, {
93
- _dataId: wfDataId
94
- });
95
- let url = this.option.url + '.vue';
96
- this.wfContent = require('@/views' + url).default;
97
- }
98
- this.showWfContent = true;
99
- },
100
- }
101
- }
102
- </script>
103
-
104
- <style scoped>
105
-
106
- </style>
1
+ <template>
2
+ <el-dialog
3
+ :title="$t1('查看单据流程')"
4
+ :append-to-body="true"
5
+ :modal-append-to-body="true"
6
+ :close-on-click-modal="false"
7
+ :visible.sync="showWfDialog"
8
+ :modal="false"
9
+ custom-class="el-dialog dialog-style designer-dialog indexUse"
10
+ width="100%"
11
+ height="100%"
12
+ top="0px"
13
+ bottom="0px"
14
+ :destroy-on-close="true"
15
+ @close="wfClose"
16
+ >
17
+ <div id="containt">
18
+ <component
19
+ v-if="showWfContent && wfContent"
20
+ :is="wfContent"
21
+ visible-key="showWfContent"
22
+ v-bind="param"
23
+ :parent-target="_self"
24
+ :defaultShowWfContent="true"
25
+ :_viewType="1"
26
+ @reload="$reloadHandle"
27
+ :_handleCallback="handleCallback"
28
+ ></component>
29
+ </div>
30
+ </el-dialog>
31
+ </template>
32
+
33
+ <script>
34
+
35
+ export default {
36
+ name: "wfContentDialog",
37
+ props: {
38
+ option: {
39
+ type: Object,
40
+ default: {}
41
+ }
42
+ },
43
+ components: {},
44
+ data() {
45
+ return {
46
+ param: {},
47
+ wfContent: null,
48
+ showWfContent: false,
49
+ showWfDialog: true
50
+ };
51
+ },
52
+ created() {
53
+ this.openWfDialog();
54
+ },
55
+ methods: {
56
+ handleCallback(flag) {
57
+ if ([1, 2, 3, 4].includes(flag)) {
58
+ this.$http({
59
+ url: USER_PREFIX + "/wf_diy_attribute/getValue",
60
+ method: `post`,
61
+ data: {attributeKey: "param4"},
62
+ isLoading: true,
63
+ success: (res) => {
64
+ let val = res.objx || false;
65
+ this.option._handleCallback && this.option._handleCallback(flag);
66
+ if (val === true) {
67
+ this.wfClose();
68
+ }
69
+ }
70
+ });
71
+ } else {
72
+ this.option._handleCallback && this.option._handleCallback(flag);
73
+ }
74
+ },
75
+ wfClose() {
76
+ this.showWfDialog = false;
77
+ this.$emit('update:visible', false);
78
+ this.$emit('close');
79
+ },
80
+ openWfDialog() {
81
+ let id = this.option.objId;
82
+ let wfDataId = !id || typeof id === 'object' ? 0 : Number(id);
83
+ let param = this.option.param || {};
84
+ if (this.option.url === 'form') {
85
+ this.param = Object.assign(param, {
86
+ formCode: this.option.objTypeCode.substr(9),
87
+ dataId: wfDataId
88
+ });
89
+ let url = '/user/form/vform/render.vue';
90
+ this.wfContent = require('@base/views' + url).default;
91
+ } else {
92
+ this.param = Object.assign(param, {
93
+ _dataId: wfDataId
94
+ });
95
+ let url = this.option.url + '.vue';
96
+ this.wfContent = require('@/views' + url).default;
97
+ }
98
+ this.showWfContent = true;
99
+ },
100
+ }
101
+ }
102
+ </script>
103
+
104
+ <style scoped>
105
+
106
+ </style>
@@ -102,7 +102,7 @@ export default {
102
102
  }
103
103
  },
104
104
  data() {
105
- var that = this;
105
+ let that = this;
106
106
  return {
107
107
  showDialog: true,
108
108
  falseValue: false,
@@ -122,7 +122,7 @@ export default {
122
122
  initTableM1() {
123
123
  let that = this;
124
124
  let icolumns = [];
125
- if (this.type != 99) {
125
+ if (this.type !== 99) {
126
126
  icolumns = [
127
127
  {
128
128
  field: 'num',
@@ -167,7 +167,7 @@ export default {
167
167
  this.$refs.editForm.$baseValidate(valid => {
168
168
  if (valid) {
169
169
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
170
- var url = this.current_prefix + (this.isEdit ? `/wf_obj_config/update` : `/wf_obj_config/save`);
170
+ let url = this.current_prefix + (this.isEdit ? `/wf_obj_config/update` : `/wf_obj_config/save`);
171
171
  this.$http({
172
172
  url: url,
173
173
  method: `post`,
@@ -148,7 +148,7 @@ export default {
148
148
  this.$refs.editForm.$baseValidate(valid => {
149
149
  if (valid) {
150
150
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
151
- var url = USER_PREFIX + (this.isEdit ? `/wf_obj_config/update` : `/wf_obj_config/save`);
151
+ let url = USER_PREFIX + (this.isEdit ? `/wf_obj_config/update` : `/wf_obj_config/save`);
152
152
  this.$http({
153
153
  url: url,
154
154
  method: `post`,
@@ -179,7 +179,7 @@ export default {
179
179
  });
180
180
  },
181
181
  initM1() {
182
- var that = this;
182
+ let that = this;
183
183
  const tableRef = 'table-m1';
184
184
  const tableOption = {
185
185
  vue: this,
@@ -196,7 +196,7 @@ export default {
196
196
  this.$refs.editForm.$baseValidate(valid => {
197
197
  if (valid) {
198
198
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
199
- var url = this.current_prefix + (this.isEdit ? `/wf_obj_config_item/update` : `/wf_obj_config_item/save`);
199
+ let url = this.current_prefix + (this.isEdit ? `/wf_obj_config_item/update` : `/wf_obj_config_item/save`);
200
200
  this.$http({
201
201
  url: url,
202
202
  method: `post`,
@@ -115,7 +115,7 @@ export default {
115
115
  this.$refs.editForm.$baseValidate(valid => {
116
116
  if (valid) {
117
117
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
118
- var url = USER_PREFIX + (this.isEdit ? `/wf_obj_config_item/update` : `/wf_obj_config_item/save`);
118
+ let url = USER_PREFIX + (this.isEdit ? `/wf_obj_config_item/update` : `/wf_obj_config_item/save`);
119
119
  this.$http({
120
120
  url: url,
121
121
  method: `post`,
@@ -98,7 +98,7 @@ export default {
98
98
  this.initTableM1();
99
99
  },
100
100
  data() {
101
- var that = this;
101
+ let that = this;
102
102
  return {
103
103
  showDialog: true,
104
104
  falseValue: false,
@@ -199,7 +199,7 @@ export default {
199
199
  width: 150
200
200
  },
201
201
  {
202
- width: 230,
202
+ width: 238,
203
203
  fixed: 'right',
204
204
  sortable: false,
205
205
  title: '',
@@ -353,7 +353,7 @@ export default {
353
353
  this.$emit('close');
354
354
  },
355
355
  openScriptDialog(row){
356
- var url = '/' + this.pRow.serviceId + '/wf_def_script/getCommon';
356
+ let url = '/' + this.pRow.serviceId + '/wf_def_script/getCommon';
357
357
  this.$http({
358
358
  url: url,
359
359
  method: `post`,
@@ -377,7 +377,7 @@ export default {
377
377
  },
378
378
  saveScript() {
379
379
  this.$baseConfirm(this.$t1('您确定要保存脚本吗?')).then(() => {
380
- var url = '/' + this.pRow.serviceId + '/wf_def_script/save';
380
+ let url = '/' + this.pRow.serviceId + '/wf_def_script/save';
381
381
  this.$http({
382
382
  url: url,
383
383
  method: `post`,
@@ -29,7 +29,7 @@
29
29
  <template #form>
30
30
  <div style="margin-bottom: 8px;" class="clearfix">
31
31
  <div class="fl">
32
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
32
+ <vxe-button status="primary" type="text" plain class="button-sty" icon="el-icon-plus" @click="openEditDialog">
33
33
  {{ $t1('新增单据') }}
34
34
  </vxe-button>
35
35
  </div>
@@ -64,7 +64,7 @@
64
64
  <i class="el-icon-more"></i>
65
65
  </div>
66
66
  </label>
67
- <div style="height: calc(100vh - 345px - 105px);">
67
+ <div style="height: calc(100vh - 345px - 101px);">
68
68
  <vxe-grid ref="table-m2" v-bind="vxeOption1" @resizable-change="$vxeTableUtil.onColumnWitchChange"
69
69
  @custom="$vxeTableUtil.customHandle">
70
70
  <template #row_edit>
@@ -212,14 +212,14 @@ export default {
212
212
  },
213
213
  watch: {
214
214
  dialogActiveName(val) {
215
- if (val == 'second') {
215
+ if (val === 'second') {
216
216
  this.showFunctionScriptList = true;
217
217
  }
218
218
  },
219
219
  activeName(val) {
220
- if (val == 'third' && !this.showParamEdit) {
220
+ if (val === 'third' && !this.showParamEdit) {
221
221
  this.showParamEdit = true;
222
- } else if (val == 'fourth' && !this.showWfDiyAttributeEdit) {
222
+ } else if (val === 'fourth' && !this.showWfDiyAttributeEdit) {
223
223
  this.showWfDiyAttributeEdit = true;
224
224
  }
225
225
  }
@@ -234,7 +234,7 @@ export default {
234
234
  this.$refs['table-m1'].commitProxy('reload');
235
235
  },
236
236
  openEditDialog(id, serviceId) {
237
- this.dataId = !id || typeof id == 'object' ? 0 : id;
237
+ this.dataId = !id || typeof id === 'object' ? 0 : id;
238
238
  this.serviceId = serviceId || '';
239
239
  this.activeName = 'first';
240
240
  this.showItemEdit = false;
@@ -319,9 +319,9 @@ export default {
319
319
  slots: {
320
320
  default: ({row}) => {
321
321
  if (row.forms) {
322
- return [<div class="txt-status">{this.$t1('是')}</div>];
322
+ return [<span class="list-tag green">{this.$t1('是')}</span>];
323
323
  } else {
324
- return [<div class="txt-status s-3">{this.$t1('否')}</div>];
324
+ return [<span class="list-tag danger">{this.$t1('否')}</span>];
325
325
  }
326
326
  }
327
327
  }
@@ -365,7 +365,7 @@ export default {
365
365
  >
366
366
  <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
367
367
  popper-class="tooltip-skin">
368
- <i class="el-icon-edit"/>
368
+ <i class="el-icon-view"/>
369
369
  </el-tooltip>
370
370
  </a>
371
371
  </div>
@@ -384,7 +384,7 @@ export default {
384
384
  CLASSICS: "经典模型",
385
385
  MIMIC: "仿钉钉模型",
386
386
  }
387
- var that = this;
387
+ let that = this;
388
388
  let tableOption1 = {
389
389
  vue: that,
390
390
  tableRef: 'table-m2',
@@ -442,20 +442,20 @@ export default {
442
442
  }
443
443
  }
444
444
  }
445
- },
446
- {
447
- title: this.$t1('是否允许流程启动更改候选人'),
448
- field: 'startSetCandidate',
449
- width: 250,
450
- slots: {
451
- default: ({row}) => {
452
- if (row.startSetCandidate) {
453
- return [<div class="txt-status">{this.$t1('是')}</div>];
454
- } else {
455
- return [<div class="txt-status s-3">{this.$t1('否')}</div>];
456
- }
457
- }
458
- }
445
+ },
446
+ {
447
+ title: this.$t1('是否允许流程启动更改候选人'),
448
+ field: 'startSetCandidate',
449
+ width: 250,
450
+ slots: {
451
+ default: ({row}) => {
452
+ if (row.startSetCandidate) {
453
+ return [<span class="list-tag green">{this.$t1('是')}</span>];
454
+ } else {
455
+ return [<span class="list-tag danger">{this.$t1('否')}</span>];
456
+ }
457
+ }
458
+ }
459
459
  },
460
460
  /**{
461
461
  title: this.$t1('设计器模型'),
@@ -494,7 +494,7 @@ export default {
494
494
  >
495
495
  <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
496
496
  popper-class="tooltip-skin">
497
- <i class="el-icon-edit"/>
497
+ <i class="el-icon-view"/>
498
498
  </el-tooltip>
499
499
  </a>,
500
500
  <a
@@ -691,8 +691,8 @@ export default {
691
691
  if (window.navigator.msSaveOrOpenBlob) {
692
692
  navigator.msSaveBlob(blob, filename);
693
693
  } else {
694
- var link = document.createElement("a");
695
- var body = document.querySelector("body");
694
+ let link = document.createElement("a");
695
+ let body = document.querySelector("body");
696
696
 
697
697
  link.href = window.URL.createObjectURL(blob);
698
698
  link.download = filename;
@@ -730,7 +730,7 @@ export default {
730
730
  this.showImportItemDialog = true;
731
731
  },
732
732
  confirmImportItemDialog(file){
733
- var form = new FormData();
733
+ let form = new FormData();
734
734
  // 文件对象
735
735
  form.append("file", file);
736
736
  form.append("modelId", this.importXmlRow.modelId);
@@ -18,7 +18,7 @@
18
18
  <template #form>
19
19
  <div style="margin-bottom: 8px;" class="clearfix">
20
20
  <div class="fl">
21
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
21
+ <vxe-button status="primary" type="text" plain class="button-sty" icon="el-icon-plus" @click="openEditDialog">
22
22
  {{ $t1('新增流程模板') }}
23
23
  </vxe-button>
24
24
  </div>
@@ -143,7 +143,7 @@ export default {
143
143
  },
144
144
  watch: {
145
145
  dialogActiveName(val) {
146
- if (val == 'second') {
146
+ if (val === 'second') {
147
147
  this.showFunctionScriptList = true;
148
148
  }
149
149
  }
@@ -157,12 +157,12 @@ export default {
157
157
  this.$refs['table-m2'].commitProxy('reload');
158
158
  },
159
159
  openEditDialog(id) {
160
- this.dataId = !id || typeof id == 'object' ? 0 : id;
160
+ this.dataId = !id || typeof id === 'object' ? 0 : id;
161
161
  this.activeName = 'first';
162
162
  this.$openEditView('showItemEdit');
163
163
  },
164
164
  initTableM2() {
165
- var that = this;
165
+ let that = this;
166
166
  let tableOption1 = {
167
167
  vue: that,
168
168
  tableRef: 'table-m2',
@@ -227,7 +227,7 @@ export default {
227
227
  >
228
228
  <el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
229
229
  popper-class="tooltip-skin">
230
- <i class="el-icon-edit"/>
230
+ <i class="el-icon-view"/>
231
231
  </el-tooltip>
232
232
  </a>,
233
233
  <a