cloud-web-corejs-haier 1.0.42 → 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 +9 -7
  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,292 +1,292 @@
1
- <template>
2
- <div>
3
- <el-dialog
4
- :title="$t1('过程更改业务数据')"
5
- :append-to-body="true"
6
- :modal-append-to-body="true"
7
- :close-on-click-modal="false"
8
- :visible.sync="showDialog"
9
- :modal="false"
10
- custom-class="dialog-style list-dialog dialog-checkbox pd_0"
11
- width="1200px"
12
- @close="dialogClose"
13
- v-el-drag-dialog
14
- v-el-dialog-center
15
- >
16
- <div class="cont">
17
- <div class="grid-height" style="height: 500px">
18
- <vxe-grid
19
- class="is-pointer"
20
- ref="table-m1"
21
- :data="tableData"
22
- v-bind="vxeOption"
23
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
24
- @custom="$vxeTableUtil.customHandle"
25
- >
26
- <template #form>
27
- <div class="clearfix screen-btns">
28
- <div class="fl">
29
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="addItem">
30
- {{ $t1('新增') }}
31
- </vxe-button>
32
- </div>
33
- <div class="fl screen-breadcrumb" style="margin-left: 30px;">
34
- <span style="font-size: 12px;">{{ $t1('流程模板名称') }}:</span>
35
- {{ objConfigItem.modelName }}
36
- </div>
37
- </div>
38
- </template>
39
- <template #user="{row,rowIndex}">
40
- <el-input
41
- class="search-input"
42
- v-model="row.nickName"
43
- clearable
44
- @clear="
45
- row.userId = null;
46
- "
47
- v-if="!row._isParent"
48
- v-el-readonly
49
- >
50
- <i slot="suffix" class="el-input__icon el-icon-search" @click="openUserRowDialog(row,rowIndex)"></i>
51
- </el-input>
52
- <template v-else>{{ row.nickName }}</template>
53
- </template>
54
- <template #switch="{row,column,rowIndex}">
55
- <el-switch v-model="row[column.field]" :key="column.field+rowIndex" :active-value="1"
56
- :inactive-value="0" :disabled="column.params.disabled"></el-switch>
57
- </template>
58
- </vxe-grid>
59
- </div>
60
- </div>
61
- <span slot="footer" class="dialog-footer">
62
- <el-button type="primary" plain class="button-sty" @click="dialogClose">
63
- <i class="el-icon-close el-icon"></i>
64
- {{ $t1('取 消') }}
65
- </el-button>
66
- <el-button type="primary" @click="saveData" class="button-sty">
67
- <i class="el-icon-check el-icon"></i>
68
- {{ $t1('确 定') }}
69
- </el-button>
70
- </span>
71
- </el-dialog>
72
- </div>
73
- </template>
74
-
75
- <script>
76
-
77
- export default {
78
- props: {
79
- objConfigItem: Object,
80
- serviceId: String
81
- },
82
- components: {},
83
- computed: {
84
- current_prefix() {
85
- return '/' + this.serviceId;
86
- }
87
- },
88
- async mounted() {
89
- this.initTableList();
90
- },
91
- data() {
92
- let that = this;
93
- return {
94
- showDialog: true,
95
- activeName: 'second',
96
- value10: '',
97
- dataId: '',
98
- showEdit: false,
99
- formData: {
100
- nickName: null,
101
- },
102
- vxeOption: {},
103
- showUserDialog: false,
104
- showPositionDialog: false,
105
- showSaleOrgDialog: false,
106
- operateIndex: 0,
107
- showViewDialog: false,
108
-
109
- tableData: [],
110
- showUserRowDialog: false,
111
- showUserAddDialog: false,
112
- currentRow: null,
113
- isDev: true
114
-
115
- };
116
- },
117
- methods: {
118
- searchEvent() {
119
- this.$refs['table-m1'].commitProxy('reload');
120
- },
121
- resetEvent() {
122
- this.formData = {};
123
- this.$refs['table-m1'].commitProxy('reload');
124
- },
125
- initTableList() {
126
- let that = this;
127
- let tableOption = {
128
- vue: this,
129
- tableRef: 'table-m1',
130
- tableName: 'user_wf-objConfig-wfBizDataSetting-m1',
131
- config: {
132
- height: "auto"
133
- },
134
- columns: [
135
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
136
- {
137
- title: this.$t1('流程动作'),
138
- field: 'action',
139
- width: 150,
140
- slots: {
141
- default: ({row}) => {
142
- return [
143
- <el-select v-model={row.action} clearable>
144
- <el-option label="流程启动" value="start"></el-option>
145
- <el-option label="流程中断" value="interrupt"></el-option>
146
- <el-option label="流程完成" value="end"></el-option>
147
- </el-select>
148
- ];
149
- }
150
- }
151
- },
152
- {
153
- title: this.$t1('数据库表名'),
154
- field: 'tableName',
155
- width: 250,
156
- slots: {
157
- default: ({row}) => {
158
- return [
159
- <el-input v-model={row.tableName} clearable></el-input>
160
- ];
161
- }
162
- }
163
- },
164
- {
165
- title: this.$t1('数据库字段名'),
166
- field: 'tableField',
167
- width: 250,
168
- slots: {
169
- default: ({row}) => {
170
- return [
171
- <el-input v-model={row.tableField} clearable></el-input>
172
- ];
173
- }
174
- }
175
- },
176
- {
177
- title: this.$t1('设置的值'),
178
- field: 'toValue',
179
- width: 250,
180
- slots: {
181
- default: ({row}) => {
182
- return [
183
- <el-input v-model={row.toValue} clearable></el-input>
184
- ];
185
- }
186
- }
187
- },
188
- {
189
- width: 100,
190
- fixed: 'right',
191
- title: '',
192
- sortable: false,
193
- slots: {
194
- default: ({row, rowIndex, $table}) => {
195
- return [
196
- <a
197
- href="javascript:void(0);"
198
- class="a-link"
199
- onClick={() => {
200
- this.tableData.splice(rowIndex, 1)
201
- }}
202
- >
203
- <el-tooltip enterable={false} effect="dark" content={this.$t1('删除')} placement="top"
204
- popper-class="tooltip-skin">
205
- <i class="el-icon-delete"/>
206
- </el-tooltip>
207
- </a>
208
- ]
209
- }
210
- }
211
- }
212
- ]
213
- };
214
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
215
- this.vxeOption = opts;
216
- });
217
- this.initData();
218
- },
219
- initData() {
220
- this.$http({
221
- // aes: true,
222
- url: this.current_prefix + '/wf_biz_data_setting/list',
223
- method: `post`,
224
- data: {
225
- objConfigItemId: this.objConfigItem.id,
226
- modelId: this.objConfigItem.modelId,
227
- },
228
- isLoading: true,
229
- modalStrictly: true,
230
- success: res1 => {
231
- let tableData = res1.objx || [];
232
- this.tableData = tableData;
233
-
234
- }
235
- });
236
- },
237
- dialogClose() {
238
- this.showDialog = false
239
- this.$emit('update:visiable', false)
240
- },
241
- dialogConfirm() {
242
- this.$emit('confirm');
243
- this.$emit('update:visiable', false);
244
- },
245
- addItem() {
246
- let row = this.createRow();
247
- this.tableData.push(row)
248
- },
249
- saveData() {
250
- this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
251
- var url = this.current_prefix + `/wf_biz_data_setting/saveUpdates`;
252
- this.$http({
253
- aes: true,
254
- url: url,
255
- method: `post`,
256
- data: {
257
- objConfigItemId: this.objConfigItem.id,
258
- modelId: this.objConfigItem.modelId,
259
- wfBizDataSettingDTOs: this.tableData
260
- },
261
- isLoading: true,
262
- success: res => {
263
- this.$message({
264
- message: res.content,
265
- type: 'success',
266
- duration: 500,
267
- onClose: t => {
268
- this.dialogConfirm()
269
- }
270
- });
271
- }
272
- });
273
- });
274
- },
275
- createRow() {
276
- let row = {
277
- objConfigItemId: this.objConfigItem.id,
278
- modelId: this.objConfigItem.modelId,
279
- action: 'start',
280
- tableName: null,
281
- tableField: null,
282
- toValue: null
283
- }
284
- return row;
285
- }
286
- }
287
- }
288
- </script>
289
-
290
- <style scoped>
291
-
292
- </style>
1
+ <template>
2
+ <div>
3
+ <el-dialog
4
+ :title="$t1('过程更改业务数据')"
5
+ :append-to-body="true"
6
+ :modal-append-to-body="true"
7
+ :close-on-click-modal="false"
8
+ :visible.sync="showDialog"
9
+ :modal="false"
10
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
11
+ width="1200px"
12
+ @close="dialogClose"
13
+ v-el-drag-dialog
14
+ v-el-dialog-center
15
+ >
16
+ <div class="cont">
17
+ <div class="grid-height" style="height: 500px">
18
+ <vxe-grid
19
+ class="is-pointer"
20
+ ref="table-m1"
21
+ :data="tableData"
22
+ v-bind="vxeOption"
23
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
24
+ @custom="$vxeTableUtil.customHandle"
25
+ >
26
+ <template #form>
27
+ <div class="clearfix screen-btns">
28
+ <div class="fl">
29
+ <vxe-button status="primary" type="text" plain class="button-sty" icon="el-icon-plus" @click="addItem">
30
+ {{ $t1('新增') }}
31
+ </vxe-button>
32
+ </div>
33
+ <div class="fl screen-breadcrumb" style="margin-left: 30px;">
34
+ <span style="font-size: 12px;">{{ $t1('流程模板名称') }}:</span>
35
+ {{ objConfigItem.modelName }}
36
+ </div>
37
+ </div>
38
+ </template>
39
+ <template #user="{row,rowIndex}">
40
+ <el-input
41
+ class="search-input"
42
+ v-model="row.nickName"
43
+ clearable
44
+ @clear="
45
+ row.userId = null;
46
+ "
47
+ v-if="!row._isParent"
48
+ v-el-readonly
49
+ >
50
+ <i slot="suffix" class="el-input__icon el-icon-search" @click="openUserRowDialog(row,rowIndex)"></i>
51
+ </el-input>
52
+ <template v-else>{{ row.nickName }}</template>
53
+ </template>
54
+ <template #switch="{row,column,rowIndex}">
55
+ <el-switch v-model="row[column.field]" :key="column.field+rowIndex" :active-value="1"
56
+ :inactive-value="0" :disabled="column.params.disabled"></el-switch>
57
+ </template>
58
+ </vxe-grid>
59
+ </div>
60
+ </div>
61
+ <span slot="footer" class="dialog-footer">
62
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
63
+ <i class="el-icon-close el-icon"></i>
64
+ {{ $t1('取 消') }}
65
+ </el-button>
66
+ <el-button type="primary" @click="saveData" class="button-sty">
67
+ <i class="el-icon-check el-icon"></i>
68
+ {{ $t1('确 定') }}
69
+ </el-button>
70
+ </span>
71
+ </el-dialog>
72
+ </div>
73
+ </template>
74
+
75
+ <script>
76
+
77
+ export default {
78
+ props: {
79
+ objConfigItem: Object,
80
+ serviceId: String
81
+ },
82
+ components: {},
83
+ computed: {
84
+ current_prefix() {
85
+ return '/' + this.serviceId;
86
+ }
87
+ },
88
+ async mounted() {
89
+ this.initTableList();
90
+ },
91
+ data() {
92
+ let that = this;
93
+ return {
94
+ showDialog: true,
95
+ activeName: 'second',
96
+ value10: '',
97
+ dataId: '',
98
+ showEdit: false,
99
+ formData: {
100
+ nickName: null,
101
+ },
102
+ vxeOption: {},
103
+ showUserDialog: false,
104
+ showPositionDialog: false,
105
+ showSaleOrgDialog: false,
106
+ operateIndex: 0,
107
+ showViewDialog: false,
108
+
109
+ tableData: [],
110
+ showUserRowDialog: false,
111
+ showUserAddDialog: false,
112
+ currentRow: null,
113
+ isDev: true
114
+
115
+ };
116
+ },
117
+ methods: {
118
+ searchEvent() {
119
+ this.$refs['table-m1'].commitProxy('reload');
120
+ },
121
+ resetEvent() {
122
+ this.formData = {};
123
+ this.$refs['table-m1'].commitProxy('reload');
124
+ },
125
+ initTableList() {
126
+ let that = this;
127
+ let tableOption = {
128
+ vue: this,
129
+ tableRef: 'table-m1',
130
+ tableName: 'user_wf-objConfig-wfBizDataSetting-m1',
131
+ config: {
132
+ height: "auto"
133
+ },
134
+ columns: [
135
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
136
+ {
137
+ title: this.$t1('流程动作'),
138
+ field: 'action',
139
+ width: 150,
140
+ slots: {
141
+ default: ({row}) => {
142
+ return [
143
+ <el-select v-model={row.action} clearable>
144
+ <el-option label="流程启动" value="start"></el-option>
145
+ <el-option label="流程中断" value="interrupt"></el-option>
146
+ <el-option label="流程完成" value="end"></el-option>
147
+ </el-select>
148
+ ];
149
+ }
150
+ }
151
+ },
152
+ {
153
+ title: this.$t1('数据库表名'),
154
+ field: 'tableName',
155
+ width: 250,
156
+ slots: {
157
+ default: ({row}) => {
158
+ return [
159
+ <el-input v-model={row.tableName} clearable></el-input>
160
+ ];
161
+ }
162
+ }
163
+ },
164
+ {
165
+ title: this.$t1('数据库字段名'),
166
+ field: 'tableField',
167
+ width: 250,
168
+ slots: {
169
+ default: ({row}) => {
170
+ return [
171
+ <el-input v-model={row.tableField} clearable></el-input>
172
+ ];
173
+ }
174
+ }
175
+ },
176
+ {
177
+ title: this.$t1('设置的值'),
178
+ field: 'toValue',
179
+ width: 250,
180
+ slots: {
181
+ default: ({row}) => {
182
+ return [
183
+ <el-input v-model={row.toValue} clearable></el-input>
184
+ ];
185
+ }
186
+ }
187
+ },
188
+ {
189
+ width: 100,
190
+ fixed: 'right',
191
+ title: '',
192
+ sortable: false,
193
+ slots: {
194
+ default: ({row, rowIndex, $table}) => {
195
+ return [
196
+ <a
197
+ href="javascript:void(0);"
198
+ class="a-link"
199
+ onClick={() => {
200
+ this.tableData.splice(rowIndex, 1)
201
+ }}
202
+ >
203
+ <el-tooltip enterable={false} effect="dark" content={this.$t1('删除')} placement="top"
204
+ popper-class="tooltip-skin">
205
+ <i class="el-icon-delete"/>
206
+ </el-tooltip>
207
+ </a>
208
+ ]
209
+ }
210
+ }
211
+ }
212
+ ]
213
+ };
214
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
215
+ this.vxeOption = opts;
216
+ });
217
+ this.initData();
218
+ },
219
+ initData() {
220
+ this.$http({
221
+ // aes: true,
222
+ url: this.current_prefix + '/wf_biz_data_setting/list',
223
+ method: `post`,
224
+ data: {
225
+ objConfigItemId: this.objConfigItem.id,
226
+ modelId: this.objConfigItem.modelId,
227
+ },
228
+ isLoading: true,
229
+ modalStrictly: true,
230
+ success: res1 => {
231
+ let tableData = res1.objx || [];
232
+ this.tableData = tableData;
233
+
234
+ }
235
+ });
236
+ },
237
+ dialogClose() {
238
+ this.showDialog = false
239
+ this.$emit('update:visiable', false)
240
+ },
241
+ dialogConfirm() {
242
+ this.$emit('confirm');
243
+ this.$emit('update:visiable', false);
244
+ },
245
+ addItem() {
246
+ let row = this.createRow();
247
+ this.tableData.push(row)
248
+ },
249
+ saveData() {
250
+ this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
251
+ let url = this.current_prefix + `/wf_biz_data_setting/saveUpdates`;
252
+ this.$http({
253
+ aes: true,
254
+ url: url,
255
+ method: `post`,
256
+ data: {
257
+ objConfigItemId: this.objConfigItem.id,
258
+ modelId: this.objConfigItem.modelId,
259
+ wfBizDataSettingDTOs: this.tableData
260
+ },
261
+ isLoading: true,
262
+ success: res => {
263
+ this.$message({
264
+ message: res.content,
265
+ type: 'success',
266
+ duration: 500,
267
+ onClose: t => {
268
+ this.dialogConfirm()
269
+ }
270
+ });
271
+ }
272
+ });
273
+ });
274
+ },
275
+ createRow() {
276
+ let row = {
277
+ objConfigItemId: this.objConfigItem.id,
278
+ modelId: this.objConfigItem.modelId,
279
+ action: 'start',
280
+ tableName: null,
281
+ tableField: null,
282
+ toValue: null
283
+ }
284
+ return row;
285
+ }
286
+ }
287
+ }
288
+ </script>
289
+
290
+ <style scoped>
291
+
292
+ </style>
@@ -53,7 +53,7 @@ export default {
53
53
  methods: {
54
54
  saveData() {
55
55
  this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
56
- var url = USER_PREFIX + `/wf_param/save`;
56
+ let url = USER_PREFIX + `/wf_param/save`;
57
57
  this.$http({
58
58
  url: url,
59
59
  method: `post`,
@@ -232,7 +232,7 @@ export default {
232
232
  this.$refs.editForm.$baseValidate((valid) => {
233
233
  if (valid) {
234
234
  this.$baseConfirm(this.$t1("您确定要保存吗?")).then(() => {
235
- var url =
235
+ let url =
236
236
  USER_PREFIX +
237
237
  (this.isEdit ? `/wf_transfer_setting/update` : `/wf_transfer_setting/save`);
238
238
  this.$http({