cloud-web-corejs-haier 1.0.43 → 1.0.45

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 (228) 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/content2.vue +604 -604
  30. package/src/components/wf/mixins/setCandidateDialog.js +228 -2
  31. package/src/components/wf/mixins/setCandidateDialog2.js +116 -101
  32. package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
  33. package/src/components/wf/setCandidateDialog.vue +5 -7
  34. package/src/components/wf/setCandidateDialog2.vue +14 -10
  35. package/src/components/wf/wf.js +2325 -2209
  36. package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
  37. package/src/components/wf/wfUtil.js +129 -91
  38. package/src/components/xform/form-designer/designer.js +1994 -9
  39. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
  40. package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
  41. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
  42. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
  43. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
  44. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
  45. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
  46. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
  47. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
  48. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
  49. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
  50. package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
  51. package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
  52. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
  53. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
  54. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
  55. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
  56. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
  57. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
  58. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
  59. package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
  60. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
  61. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
  62. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
  63. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
  64. package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
  65. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
  66. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
  67. package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
  68. package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
  69. package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
  70. package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
  71. package/src/components/xform/form-render/indexMixin.js +3705 -1
  72. package/src/components/xform/icon-picker/icons.json +284 -0
  73. package/src/components/xform/icon-picker/index.vue +145 -0
  74. package/src/components/xform/lang/zh-CN.js +2 -1
  75. package/src/components/xform/mixins/defaultHandle.js +366 -2
  76. package/src/components/xform/utils/formula-util.js +3 -0
  77. package/src/components/xform/utils/sfc-generator.js +2 -2
  78. package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
  79. package/src/components/xform/utils/tableColumnHelper.js +54 -10
  80. package/src/components/xform/utils/util.js +1547 -1
  81. package/src/index.js +190 -211
  82. package/src/lang/locale/en/login.js +26 -19
  83. package/src/lang/locale/zh/login.js +25 -19
  84. package/src/layout/components/Sidebar/default.vue +252 -71
  85. package/src/layout/components/Sidebar/index.vue +6 -1
  86. package/src/layout/components/TagsView/index.vue +6 -0
  87. package/src/layout/components/langTool.vue +32 -29
  88. package/src/layout/defaultLayout.vue +16 -8
  89. package/src/layout/index.vue +5 -3
  90. package/src/permission.js +135 -1
  91. package/src/router/index.js +1 -4
  92. package/src/store/config/index.js +667 -1
  93. package/src/store/getters.js +2 -1
  94. package/src/store/modules/permission.js +332 -1
  95. package/src/store/modules/settings.js +26 -1
  96. package/src/store/modules/tagsView.js +190 -1
  97. package/src/store/modules/user.js +358 -1
  98. package/src/utils/aes.js +15 -1
  99. package/src/utils/auth.js +27 -1
  100. package/src/utils/componentDialog.js +217 -0
  101. package/src/utils/request.js +368 -1
  102. package/src/utils/vab.js +1256 -7
  103. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
  104. package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
  105. package/src/views/bd/setting/formVersion/button.vue +55 -0
  106. package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
  107. package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
  108. package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
  109. package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
  110. package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
  111. package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
  112. package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
  113. package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
  114. package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
  115. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
  116. package/src/views/bd/setting/formVersion/link.vue +58 -0
  117. package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
  118. package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
  119. package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
  120. package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
  121. package/src/views/bd/setting/formVersion/textDiff.js +102 -0
  122. package/src/views/bd/setting/form_import_log/edit.vue +6 -3
  123. package/src/views/bd/setting/form_import_log/list.vue +5 -0
  124. package/src/views/bd/setting/form_script/edit.vue +196 -83
  125. package/src/views/bd/setting/form_script/edit1.vue +410 -220
  126. package/src/views/bd/setting/form_script/form_list.vue +19 -0
  127. package/src/views/bd/setting/form_script/list.vue +95 -21
  128. package/src/views/bd/setting/form_script/list1.vue +24 -0
  129. package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
  130. package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
  131. package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
  132. package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
  133. package/src/views/bd/setting/form_script/mixins/list.js +163 -95
  134. package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
  135. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
  136. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
  137. package/src/views/bd/setting/form_template/edit.vue +355 -205
  138. package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
  139. package/src/views/bd/setting/form_template/list.vue +49 -74
  140. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
  141. package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
  142. package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
  143. package/src/views/bd/setting/form_template/mixins/list.js +114 -82
  144. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  145. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
  146. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
  147. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
  148. package/src/views/bd/setting/form_template/wf_list.vue +161 -127
  149. package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
  150. package/src/views/bd/setting/request_setting/edit.vue +300 -300
  151. package/src/views/bd/setting/request_setting/list.vue +15 -25
  152. package/src/views/bd/setting/table_model/edit.vue +702 -498
  153. package/src/views/bd/setting/table_model/list.vue +28 -0
  154. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  155. package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
  156. package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
  157. package/src/views/bd/setting/table_model/mixins/list.js +55 -20
  158. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
  159. package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
  160. package/src/views/bd/setting/utils/index.js +15 -0
  161. package/src/views/user/api_request/list.vue +203 -203
  162. package/src/views/user/bill_setting/list.vue +345 -345
  163. package/src/views/user/code_rules/list.vue +204 -204
  164. package/src/views/user/common_attribute/list.vue +378 -378
  165. package/src/views/user/common_script/list.vue +341 -341
  166. package/src/views/user/company_info/dialog.vue +80 -49
  167. package/src/views/user/country/list.vue +197 -197
  168. package/src/views/user/extend_datasource/dialog.vue +0 -3
  169. package/src/views/user/extend_datasource/edit.vue +1 -2
  170. package/src/views/user/extend_datasource/list.vue +221 -224
  171. package/src/views/user/fieldTranslation/editDialog.vue +1 -1
  172. package/src/views/user/fieldTranslation/list.vue +473 -473
  173. package/src/views/user/field_values_invisible/list.vue +207 -207
  174. package/src/views/user/file_type/list.vue +271 -271
  175. package/src/views/user/file_view_area/list.vue +331 -331
  176. package/src/views/user/form/vform/designer.vue +303 -287
  177. package/src/views/user/form/vform/formFieldMapping.js +2 -3
  178. package/src/views/user/form/view/edit.vue +19 -1
  179. package/src/views/user/form/view/list.vue +59 -17
  180. package/src/views/user/groups/list.vue +158 -158
  181. package/src/views/user/home/default.vue +274 -182
  182. package/src/views/user/home/default2.vue +1148 -0
  183. package/src/views/user/home/index.vue +2 -1
  184. package/src/views/user/lang_tag/list.vue +170 -170
  185. package/src/views/user/language_setting/list.vue +208 -208
  186. package/src/views/user/ledger_library/list.vue +12 -10
  187. package/src/views/user/login/default.vue +1 -1
  188. package/src/views/user/login/indexMixin.js +204 -169
  189. package/src/views/user/menu/list.vue +575 -575
  190. package/src/views/user/notify_message/dialog.vue +7 -1
  191. package/src/views/user/notify_template/list.vue +192 -192
  192. package/src/views/user/notify_template/list2.vue +190 -190
  193. package/src/views/user/position/list.vue +188 -188
  194. package/src/views/user/project_tag/list.vue +175 -175
  195. package/src/views/user/push_setting/list.vue +236 -236
  196. package/src/views/user/request_setting/list.vue +248 -248
  197. package/src/views/user/role/list.vue +182 -182
  198. package/src/views/user/system_notice/infoDialog.vue +61 -2
  199. package/src/views/user/system_notice/list.vue +203 -203
  200. package/src/views/user/system_parameter/list.vue +141 -141
  201. package/src/views/user/user/edit.vue +45 -0
  202. package/src/views/user/user/form_list.vue +245 -245
  203. package/src/views/user/user/info.vue +253 -140
  204. package/src/views/user/user_log_classify/list.vue +197 -197
  205. package/src/views/user/wf/iframe/index.vue +46 -46
  206. package/src/views/user/wf/wfReport/index.vue +1 -1
  207. package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
  208. package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
  209. package/src/views/user/wf/wf_manage/list.vue +795 -795
  210. package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
  211. package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
  212. package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
  213. package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
  214. package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
  215. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
  216. package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
  217. package/src/views/user/wf/wf_obj_config/list.vue +28 -28
  218. package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
  219. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
  220. package/src/views/user/wf/wf_param/edit.vue +1 -1
  221. package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
  222. package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
  223. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
  224. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
  225. package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
  226. package/src/views/user/wf/wf_work_calendar/date.js +84 -83
  227. package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
  228. package/src/views/user/workbench_menu/list.vue +555 -0
@@ -1,319 +1,321 @@
1
- <template>
2
- <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView
6
- v-if="showEdit"
7
- visible-key="showEdit"
8
- :_dataId.sync="dataId"
9
- :parent-target="_self"
10
- @reload="$reloadHandle"
11
- ></editView>
12
- </el-tab-pane>
13
- <el-tab-pane :label="$t1('列表')" name="second">
14
- <div class="grid-height">
15
- <vxe-grid
16
- ref="table-m1"
17
- v-bind="vxeOption"
18
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
19
- @custom="$vxeTableUtil.customHandle"
20
- >
21
- <template #form>
22
- <tableForm
23
- :formData.sync="formData"
24
- @searchEvent="searchEvent"
25
- @resetEvent="resetEvent"
26
- >
27
- <template #buttonLeft>
28
- <vxe-button
29
- status="primary"
30
- class="button-sty"
31
- icon="el-icon-plus"
32
- @click="openEditDialog"
33
- >
34
- {{ $t1("新增") }}
35
- </vxe-button>
36
- </template>
37
- <template #buttonRight>
38
- <vxe-button
39
- icon="el-icon-brush"
40
- class="button-sty"
41
- @click="resetEvent"
42
- type="text"
43
- status="primary"
44
- plain
45
- >{{ $t1("重置") }}
46
- </vxe-button>
47
- <vxe-button
48
- status="warning"
49
- icon="el-icon-search"
50
- class="button-sty"
51
- @click="searchEvent"
52
- >
53
- {{ $t1("搜索") }}
54
- </vxe-button>
55
- </template>
56
- <template #transferFromName>
57
- <vxe-form-item :title="$t1('审批人') + ':'" field="transferFromName">
58
- <template v-slot>
59
- <el-input
60
- class="search-input"
61
- max="200"
62
- v-model="formData.transferFromName"
63
- @clear="
64
- formData.transferFromName = null;
65
- formData.transferFrom = null;
66
- $forceUpdate();
67
- "
68
- v-el-readonly
69
- clearable
70
- >
71
- <i
72
- slot="suffix"
73
- class="el-input__icon el-icon-search"
74
- @click="showUserDialog1 = true"
75
- ></i>
76
- </el-input>
77
- </template>
78
- </vxe-form-item>
79
- </template>
80
- <template #transferToName>
81
- <vxe-form-item :title="$t1('转派到') + ':'" field="transferToName">
82
- <template v-slot>
83
- <el-input
84
- class="search-input"
85
- max="200"
86
- v-model="formData.transferToName"
87
- @clear="
88
- formData.transferToName = null;
89
- formData.transferTo = null;
90
- $forceUpdate();
91
- "
92
- v-el-readonly
93
- clearable
94
- >
95
- <i
96
- slot="suffix"
97
- class="el-input__icon el-icon-search"
98
- @click="showUserDialog2 = true"
99
- ></i>
100
- </el-input>
101
- </template>
102
- </vxe-form-item>
103
- </template>
104
- </tableForm>
105
- </template>
106
- </vxe-grid>
107
- </div>
108
- </el-tab-pane>
109
- </el-tabs>
110
- <userDialog
111
- v-if="showUserDialog1"
112
- :visiable.sync="showUserDialog1"
113
- @confirm="confirmUserDialog1"
114
- :multi="false"
115
- :param="{ enabled: null }"
116
- />
117
- <userDialog
118
- v-if="showUserDialog2"
119
- :visiable.sync="showUserDialog2"
120
- @confirm="confirmUserDialog2"
121
- :multi="false"
122
- />
123
- </div>
124
- </template>
125
-
126
- <script>
127
- import editView from "./edit.vue";
128
- import tableForm from "@base/components/table/tableForm.vue";
129
- import userDialog from "@base/views/user/user/dialog";
130
- export default {
131
- name: "wf_transfer_setting:list",
132
- components: { tableForm, editView, userDialog },
133
- data() {
134
- return {
135
- activeName: "second",
136
- dataId: 0,
137
- showEdit: false,
138
- vxeOption: {},
139
- formData: {},
140
- showUserDialog1: false,
141
- showUserDialog2: false,
142
- };
143
- },
144
- mounted() {
145
- this.initTableList();
146
- },
147
- methods: {
148
- searchEvent() {
149
- this.$refs["table-m1"].commitProxy("reload");
150
- },
151
- resetEvent() {
152
- this.formData = {};
153
- this.$refs["table-m1"].commitProxy("reload");
154
- },
155
- openEditDialog(id) {
156
- this.dataId = !id || typeof id == "object" ? 0 : id;
157
- this.activeName = "first";
158
- this.$openEditView("showEdit");
159
- },
160
- initTableList() {
161
- let that = this;
162
- let tableOption = {
163
- vue: this,
164
- tableRef: "table-m1",
165
- tableName: "wf_wf_transfer_setting_list-m1",
166
- path: USER_PREFIX + "/wf_transfer_setting/listPage",
167
- param: () => {
168
- return this.formData;
169
- },
170
- columns: [
171
- { type: "checkbox", width: 48, resizable: false, fixed: "left" },
172
- {
173
- title: this.$t1("审批人"),
174
- field: "transferFromName",
175
- width: 150,
176
- fixed: "left",
177
- },
178
- {
179
- title: this.$t1("转派给"),
180
- field: "transferToName",
181
- width: 250,
182
- },
183
- {
184
- title: this.$t1("有效开始时间"),
185
- field: "startDate",
186
- width: 150,
187
- },
188
- {
189
- title: this.$t1("有效结束时间"),
190
- field: "endDate",
191
- width: 150,
192
- },
193
- {
194
- title: this.$t1("创建人"),
195
- field: "_createBy",
196
- width: 150,
197
- },
198
- {
199
- title: this.$t1("创建时间"),
200
- field: "createDate",
201
- width: 150,
202
- },
203
- {
204
- title: this.$t1("更新人"),
205
- field: "_modifyBy",
206
- width: 150,
207
- },
208
- {
209
- title: this.$t1("更新时间"),
210
- field: "modifyDate",
211
- width: 150,
212
- },
213
- {
214
- width: 90,
215
- fixed: "right",
216
- title: "",
217
- sortable: false,
218
- slots: {
219
- default: ({ row }) => {
220
- return [
221
- <div>
222
- <a
223
- href="javascript:void(0);"
224
- class="a-link"
225
- onclick={() => {
226
- this.openEditDialog(row.id);
227
- }}
228
- >
229
- <el-tooltip
230
- enterable={false}
231
- effect="dark"
232
- content={this.$t1("查看")}
233
- placement="top"
234
- popper-class="tooltip-skin"
235
- >
236
- <i class="el-icon-edit" />
237
- </el-tooltip>
238
- </a>
239
- <a
240
- href="javascript:void(0);"
241
- class="a-link"
242
- onclick={() => {
243
- this.delete(row);
244
- }}
245
- >
246
- <el-tooltip
247
- enterable={false}
248
- effect="dark"
249
- content={this.$t1("删除")}
250
- placement="top"
251
- popper-class="tooltip-skin"
252
- >
253
- <i class="el-icon-delete" />
254
- </el-tooltip>
255
- </a>
256
- </div>,
257
- ];
258
- },
259
- },
260
- },
261
- ],
262
- searchColumns: [
263
- {
264
- title: this.$t1("审批人"),
265
- field: "transferFromName",
266
- type: "input",
267
- slot: "transferFromName",
268
- common: true,
269
- },
270
- {
271
- title: this.$t1("转派给"),
272
- field: "transferToName",
273
- type: "input",
274
- slot: "transferToName",
275
- common: true,
276
- },
277
- ],
278
- };
279
- this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
280
- this.vxeOption = opts;
281
- });
282
- },
283
- confirmUserDialog1(rows) {
284
- if (rows.length) {
285
- let row = rows[0];
286
- this.$set(this.formData, "transferFrom", row.id);
287
- this.$set(this.formData, "transferFromName", row.nickName);
288
- }
289
- },
290
- confirmUserDialog2(rows) {
291
- if (rows.length) {
292
- let row = rows[0];
293
- this.$set(this.formData, "transferTo", row.id);
294
- this.$set(this.formData, "transferToName", row.nickName);
295
- }
296
- },
297
- delete(row) {
298
- this.$baseConfirm(this.$t1("您确定要删除选中行数据吗?")).then(() => {
299
- var url = USER_PREFIX + "/wf_transfer_setting/delete";
300
- this.$http({
301
- url: url,
302
- method: `post`,
303
- data: {
304
- id: row.id,
305
- },
306
- isLoading: true,
307
- success: (res) => {
308
- this.$message({
309
- message: res.content,
310
- type: "success",
311
- });
312
- this.searchEvent();
313
- },
314
- });
315
- });
316
- },
317
- },
318
- };
319
- </script>
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView
6
+ v-if="showEdit"
7
+ visible-key="showEdit"
8
+ :_dataId.sync="dataId"
9
+ :parent-target="_self"
10
+ @reload="$reloadHandle"
11
+ ></editView>
12
+ </el-tab-pane>
13
+ <el-tab-pane :label="$t1('列表')" name="second">
14
+ <div class="grid-height">
15
+ <vxe-grid
16
+ ref="table-m1"
17
+ v-bind="vxeOption"
18
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
19
+ @custom="$vxeTableUtil.customHandle"
20
+ >
21
+ <template #form>
22
+ <tableForm
23
+ :formData.sync="formData"
24
+ @searchEvent="searchEvent"
25
+ @resetEvent="resetEvent"
26
+ >
27
+ <template #buttonLeft>
28
+ <vxe-button
29
+ status="primary"
30
+ type="text"
31
+ plain
32
+ class="button-sty"
33
+ icon="el-icon-plus"
34
+ @click="openEditDialog"
35
+ >
36
+ {{ $t1("新增") }}
37
+ </vxe-button>
38
+ </template>
39
+ <template #buttonRight>
40
+ <vxe-button
41
+ icon="el-icon-brush"
42
+ class="button-sty"
43
+ @click="resetEvent"
44
+ type="text"
45
+ status="primary"
46
+ plain
47
+ >{{ $t1("重置") }}
48
+ </vxe-button>
49
+ <vxe-button
50
+ status="warning"
51
+ icon="el-icon-search"
52
+ class="button-sty"
53
+ @click="searchEvent"
54
+ >
55
+ {{ $t1("搜索") }}
56
+ </vxe-button>
57
+ </template>
58
+ <template #transferFromName>
59
+ <vxe-form-item :title="$t1('审批人') + ':'" field="transferFromName">
60
+ <template v-slot>
61
+ <el-input
62
+ class="search-input"
63
+ max="200"
64
+ v-model="formData.transferFromName"
65
+ @clear="
66
+ formData.transferFromName = null;
67
+ formData.transferFrom = null;
68
+ $forceUpdate();
69
+ "
70
+ v-el-readonly
71
+ clearable
72
+ >
73
+ <i
74
+ slot="suffix"
75
+ class="el-input__icon el-icon-search"
76
+ @click="showUserDialog1 = true"
77
+ ></i>
78
+ </el-input>
79
+ </template>
80
+ </vxe-form-item>
81
+ </template>
82
+ <template #transferToName>
83
+ <vxe-form-item :title="$t1('转派到') + ':'" field="transferToName">
84
+ <template v-slot>
85
+ <el-input
86
+ class="search-input"
87
+ max="200"
88
+ v-model="formData.transferToName"
89
+ @clear="
90
+ formData.transferToName = null;
91
+ formData.transferTo = null;
92
+ $forceUpdate();
93
+ "
94
+ v-el-readonly
95
+ clearable
96
+ >
97
+ <i
98
+ slot="suffix"
99
+ class="el-input__icon el-icon-search"
100
+ @click="showUserDialog2 = true"
101
+ ></i>
102
+ </el-input>
103
+ </template>
104
+ </vxe-form-item>
105
+ </template>
106
+ </tableForm>
107
+ </template>
108
+ </vxe-grid>
109
+ </div>
110
+ </el-tab-pane>
111
+ </el-tabs>
112
+ <userDialog
113
+ v-if="showUserDialog1"
114
+ :visiable.sync="showUserDialog1"
115
+ @confirm="confirmUserDialog1"
116
+ :multi="false"
117
+ :param="{ enabled: null }"
118
+ />
119
+ <userDialog
120
+ v-if="showUserDialog2"
121
+ :visiable.sync="showUserDialog2"
122
+ @confirm="confirmUserDialog2"
123
+ :multi="false"
124
+ />
125
+ </div>
126
+ </template>
127
+
128
+ <script>
129
+ import editView from "./edit.vue";
130
+ import tableForm from "@base/components/table/tableForm.vue";
131
+ import userDialog from "@base/views/user/user/dialog";
132
+ export default {
133
+ name: "wf_transfer_setting:list",
134
+ components: { tableForm, editView, userDialog },
135
+ data() {
136
+ return {
137
+ activeName: "second",
138
+ dataId: 0,
139
+ showEdit: false,
140
+ vxeOption: {},
141
+ formData: {},
142
+ showUserDialog1: false,
143
+ showUserDialog2: false,
144
+ };
145
+ },
146
+ mounted() {
147
+ this.initTableList();
148
+ },
149
+ methods: {
150
+ searchEvent() {
151
+ this.$refs["table-m1"].commitProxy("reload");
152
+ },
153
+ resetEvent() {
154
+ this.formData = {};
155
+ this.$refs["table-m1"].commitProxy("reload");
156
+ },
157
+ openEditDialog(id) {
158
+ this.dataId = !id || typeof id === "object" ? 0 : id;
159
+ this.activeName = "first";
160
+ this.$openEditView("showEdit");
161
+ },
162
+ initTableList() {
163
+ let that = this;
164
+ let tableOption = {
165
+ vue: this,
166
+ tableRef: "table-m1",
167
+ tableName: "wf_wf_transfer_setting_list-m1",
168
+ path: USER_PREFIX + "/wf_transfer_setting/listPage",
169
+ param: () => {
170
+ return this.formData;
171
+ },
172
+ columns: [
173
+ { type: "checkbox", width: 48, resizable: false, fixed: "left" },
174
+ {
175
+ title: this.$t1("审批人"),
176
+ field: "transferFromName",
177
+ width: 150,
178
+ fixed: "left",
179
+ },
180
+ {
181
+ title: this.$t1("转派给"),
182
+ field: "transferToName",
183
+ width: 250,
184
+ },
185
+ {
186
+ title: this.$t1("有效开始时间"),
187
+ field: "startDate",
188
+ width: 150,
189
+ },
190
+ {
191
+ title: this.$t1("有效结束时间"),
192
+ field: "endDate",
193
+ width: 150,
194
+ },
195
+ {
196
+ title: this.$t1("创建人"),
197
+ field: "_createBy",
198
+ width: 150,
199
+ },
200
+ {
201
+ title: this.$t1("创建时间"),
202
+ field: "createDate",
203
+ width: 150,
204
+ },
205
+ {
206
+ title: this.$t1("更新人"),
207
+ field: "_modifyBy",
208
+ width: 150,
209
+ },
210
+ {
211
+ title: this.$t1("更新时间"),
212
+ field: "modifyDate",
213
+ width: 150,
214
+ },
215
+ {
216
+ width: 90,
217
+ fixed: "right",
218
+ title: "",
219
+ sortable: false,
220
+ slots: {
221
+ default: ({ row }) => {
222
+ return [
223
+ <div>
224
+ <a
225
+ href="javascript:void(0);"
226
+ class="a-link"
227
+ onclick={() => {
228
+ this.openEditDialog(row.id);
229
+ }}
230
+ >
231
+ <el-tooltip
232
+ enterable={false}
233
+ effect="dark"
234
+ content={this.$t1("查看")}
235
+ placement="top"
236
+ popper-class="tooltip-skin"
237
+ >
238
+ <i class="el-icon-view" />
239
+ </el-tooltip>
240
+ </a>
241
+ <a
242
+ href="javascript:void(0);"
243
+ class="a-link"
244
+ onclick={() => {
245
+ this.delete(row);
246
+ }}
247
+ >
248
+ <el-tooltip
249
+ enterable={false}
250
+ effect="dark"
251
+ content={this.$t1("删除")}
252
+ placement="top"
253
+ popper-class="tooltip-skin"
254
+ >
255
+ <i class="el-icon-delete" />
256
+ </el-tooltip>
257
+ </a>
258
+ </div>,
259
+ ];
260
+ },
261
+ },
262
+ },
263
+ ],
264
+ searchColumns: [
265
+ {
266
+ title: this.$t1("审批人"),
267
+ field: "transferFromName",
268
+ type: "input",
269
+ slot: "transferFromName",
270
+ common: true,
271
+ },
272
+ {
273
+ title: this.$t1("转派给"),
274
+ field: "transferToName",
275
+ type: "input",
276
+ slot: "transferToName",
277
+ common: true,
278
+ },
279
+ ],
280
+ };
281
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
282
+ this.vxeOption = opts;
283
+ });
284
+ },
285
+ confirmUserDialog1(rows) {
286
+ if (rows.length) {
287
+ let row = rows[0];
288
+ this.$set(this.formData, "transferFrom", row.id);
289
+ this.$set(this.formData, "transferFromName", row.nickName);
290
+ }
291
+ },
292
+ confirmUserDialog2(rows) {
293
+ if (rows.length) {
294
+ let row = rows[0];
295
+ this.$set(this.formData, "transferTo", row.id);
296
+ this.$set(this.formData, "transferToName", row.nickName);
297
+ }
298
+ },
299
+ delete(row) {
300
+ this.$baseConfirm(this.$t1("您确定要删除选中行数据吗?")).then(() => {
301
+ let url = USER_PREFIX + "/wf_transfer_setting/delete";
302
+ this.$http({
303
+ url: url,
304
+ method: `post`,
305
+ data: {
306
+ id: row.id,
307
+ },
308
+ isLoading: true,
309
+ success: (res) => {
310
+ this.$message({
311
+ message: res.content,
312
+ type: "success",
313
+ });
314
+ this.searchEvent();
315
+ },
316
+ });
317
+ });
318
+ },
319
+ },
320
+ };
321
+ </script>