cloud-web-corejs 1.0.28 → 1.0.29

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 (199) hide show
  1. package/package.json +1 -1
  2. package/src/components/formOplog/mixins.js +1 -1
  3. package/src/components/projectTag/addButton.vue +3 -50
  4. package/src/components/projectTag/deleteButton.vue +3 -50
  5. package/src/components/projectTag/mixins/addButton.js +5 -0
  6. package/src/components/projectTag/mixins/deleteButton.js +5 -0
  7. package/src/components/projectTag/mixins/view.js +5 -0
  8. package/src/components/projectTag/view.vue +33 -72
  9. package/src/components/xform/mixins/scriptHttp.js +1 -1
  10. package/src/index.js +0 -2
  11. package/src/layout/components/Sidebar/default.vue +3 -4
  12. package/src/router/modules/system.js +1 -1
  13. package/src/store/config/index.js +1 -1
  14. package/src/store/getters.js +2 -0
  15. package/src/store/modules/permission.js +1 -1
  16. package/src/store/modules/user.js +2 -1
  17. package/src/utils/request.js +28 -29
  18. package/src/utils/vab.js +27 -27
  19. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
  20. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
  21. package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
  22. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
  23. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
  24. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
  25. package/src/views/bd/setting/form_script/dialog.vue +3 -137
  26. package/src/views/bd/setting/form_script/edit.vue +3 -127
  27. package/src/views/bd/setting/form_script/edit1.vue +3 -142
  28. package/src/views/bd/setting/form_script/form_list.vue +4 -259
  29. package/src/views/bd/setting/form_script/list.vue +6 -174
  30. package/src/views/bd/setting/form_script/list1.vue +6 -333
  31. package/src/views/bd/setting/form_script/list2.vue +3 -4
  32. package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
  33. package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
  34. package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
  35. package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
  36. package/src/views/bd/setting/form_script/mixins/list.js +176 -0
  37. package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
  38. package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
  39. package/src/views/bd/setting/form_template/dialog.vue +104 -212
  40. package/src/views/bd/setting/form_template/edit.vue +183 -329
  41. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
  42. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
  43. package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
  44. package/src/views/bd/setting/form_template/itemList.vue +56 -300
  45. package/src/views/bd/setting/form_template/list.vue +7 -562
  46. package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
  47. package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
  48. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
  49. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
  50. package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
  51. package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
  52. package/src/views/bd/setting/form_template/mixins/list.js +562 -0
  53. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
  54. package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
  55. package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
  56. package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
  57. package/src/views/bd/setting/menu_kind/list.vue +6 -186
  58. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
  59. package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
  60. package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
  61. package/src/views/bd/setting/table_model/dialog.vue +95 -161
  62. package/src/views/bd/setting/table_model/edit.vue +5 -767
  63. package/src/views/bd/setting/table_model/list.vue +8 -369
  64. package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
  65. package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
  66. package/src/views/bd/setting/table_model/mixins/list.js +367 -0
  67. package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
  68. package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
  69. package/src/views/support/export_template/edit.vue +40 -36
  70. package/src/views/support/export_template/list.vue +40 -52
  71. package/src/views/user/access_log/edit.vue +18 -17
  72. package/src/views/user/access_log/list.vue +27 -26
  73. package/src/views/user/access_log/statistics_list.vue +19 -17
  74. package/src/views/user/api_request/edit.vue +14 -11
  75. package/src/views/user/api_request/list.vue +13 -11
  76. package/src/views/user/area/dialog.vue +14 -27
  77. package/src/views/user/area_attribute/configDialog.vue +11 -13
  78. package/src/views/user/area_attribute/edit.vue +8 -6
  79. package/src/views/user/area_attribute/list.vue +1 -1
  80. package/src/views/user/attachment/uploadDialog.vue +1 -1
  81. package/src/views/user/bill_setting/button/previewButton.vue +2 -2
  82. package/src/views/user/bill_setting/compareView.vue +1 -1
  83. package/src/views/user/bill_setting/edit.vue +24 -17
  84. package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
  85. package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
  86. package/src/views/user/bill_setting/list.vue +28 -26
  87. package/src/views/user/bill_setting/mixins/wf.js +8 -8
  88. package/src/views/user/bill_setting/previewDialog.vue +1 -1
  89. package/src/views/user/bill_setting/render.vue +29 -29
  90. package/src/views/user/bill_setting/userDialog.vue +7 -5
  91. package/src/views/user/code_rules/edit.vue +21 -18
  92. package/src/views/user/code_rules/list.vue +27 -19
  93. package/src/views/user/commMenu/index.vue +3 -3
  94. package/src/views/user/common_attribute/edit.vue +7 -5
  95. package/src/views/user/common_attribute/itemEdit.vue +22 -22
  96. package/src/views/user/common_attribute/list.vue +25 -24
  97. package/src/views/user/common_script/edit.vue +12 -12
  98. package/src/views/user/common_script/list.vue +30 -32
  99. package/src/views/user/company_info/dialog.vue +9 -9
  100. package/src/views/user/company_info/edit.vue +11 -8
  101. package/src/views/user/country/dialog.vue +11 -9
  102. package/src/views/user/country/edit.vue +12 -9
  103. package/src/views/user/country/list.vue +12 -12
  104. package/src/views/user/data_type_setting/dialog.vue +10 -10
  105. package/src/views/user/data_type_setting/editDialog.vue +6 -6
  106. package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
  107. package/src/views/user/ea/eagroup/edit.vue +48 -42
  108. package/src/views/user/ea/eaobj/edit.vue +6 -5
  109. package/src/views/user/ea/eaobj/list.vue +9 -8
  110. package/src/views/user/extend_datasource/dialog.vue +19 -24
  111. package/src/views/user/extend_datasource/edit.vue +20 -16
  112. package/src/views/user/extend_datasource/list.vue +23 -24
  113. package/src/views/user/fieldTranslation/editDialog.vue +28 -28
  114. package/src/views/user/fieldTranslation/list.vue +59 -57
  115. package/src/views/user/field_values_invisible/edit.vue +15 -14
  116. package/src/views/user/field_values_invisible/list.vue +23 -22
  117. package/src/views/user/file_type/edit.vue +12 -21
  118. package/src/views/user/file_type/list.vue +21 -36
  119. package/src/views/user/file_type/userEdit.vue +14 -9
  120. package/src/views/user/file_view_area/edit.vue +3 -3
  121. package/src/views/user/file_view_area/itemEdit.vue +11 -9
  122. package/src/views/user/file_view_area/list.vue +17 -16
  123. package/src/views/user/file_view_ins/list.vue +29 -28
  124. package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
  125. package/src/views/user/form/form_template/edit.vue +1 -1
  126. package/src/views/user/form/form_template/itemEdit.vue +1 -1
  127. package/src/views/user/form/form_template/itemList.vue +2 -2
  128. package/src/views/user/form/form_template/list.vue +3 -3
  129. package/src/views/user/form/form_type/edit.vue +1 -1
  130. package/src/views/user/form/form_type/list.vue +1 -1
  131. package/src/views/user/form/report_requestaccess/edit.vue +1 -1
  132. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  133. package/src/views/user/form/vform/designer.vue +2 -0
  134. package/src/views/user/form/vform/out_render.vue +1 -0
  135. package/src/views/user/form/vform/render.vue +1 -0
  136. package/src/views/user/form/view/list.vue +2 -1
  137. package/src/views/user/groups/dialog.vue +159 -0
  138. package/src/views/user/groups/edit.vue +131 -0
  139. package/src/views/user/groups/list.vue +167 -0
  140. package/src/views/user/home/index.vue +1 -2
  141. package/src/views/user/lang_tag/dialog.vue +185 -0
  142. package/src/views/user/lang_tag/edit.vue +138 -0
  143. package/src/views/user/lang_tag/list.vue +170 -0
  144. package/src/views/user/language_setting/edit.vue +11 -9
  145. package/src/views/user/language_setting/list.vue +20 -18
  146. package/src/views/user/login/default.vue +129 -0
  147. package/src/views/user/login/index.vue +3 -117
  148. package/src/views/user/menu/list.vue +39 -55
  149. package/src/views/user/mobile_menu/list.vue +18 -54
  150. package/src/views/user/notify_message/dialog.vue +1 -1
  151. package/src/views/user/notify_message/infoDialog.vue +1 -1
  152. package/src/views/user/notify_message/list.vue +24 -23
  153. package/src/views/user/notify_template/edit.vue +13 -11
  154. package/src/views/user/notify_template/list.vue +19 -16
  155. package/src/views/user/oplog/edit.vue +12 -12
  156. package/src/views/user/oplog/list.vue +20 -18
  157. package/src/views/user/position/dialog.vue +6 -6
  158. package/src/views/user/position/edit.vue +11 -8
  159. package/src/views/user/position/list.vue +11 -11
  160. package/src/views/user/project_tag/dialog.vue +11 -9
  161. package/src/views/user/project_tag/edit.vue +8 -6
  162. package/src/views/user/project_tag/list.vue +15 -12
  163. package/src/views/user/push_setting/edit.vue +20 -17
  164. package/src/views/user/push_setting/list.vue +1 -1
  165. package/src/views/user/role/dialog.vue +11 -11
  166. package/src/views/user/role/edit.vue +14 -12
  167. package/src/views/user/role/list.vue +14 -12
  168. package/src/views/user/sale_org/dialog.vue +12 -12
  169. package/src/views/user/sale_org/list.vue +43 -48
  170. package/src/views/user/system_notice/edit.vue +13 -11
  171. package/src/views/user/system_notice/infoDialog.vue +2 -2
  172. package/src/views/user/system_notice/list.vue +19 -17
  173. package/src/views/user/system_parameter/edit.vue +7 -6
  174. package/src/views/user/system_parameter/list.vue +12 -10
  175. package/src/views/user/user/edit.vue +1 -1
  176. package/src/views/user/user/form_edit.vue +50 -7
  177. package/src/views/user/user/form_list.vue +34 -132
  178. package/src/views/user/user/info.vue +20 -19
  179. package/src/views/user/user/infoEdit.vue +18 -18
  180. package/src/views/user/user/infoIframeDialog.vue +1 -1
  181. package/src/views/user/user/modifyPasswordDialog.vue +9 -9
  182. package/src/views/user/wf/iframe/dialog.vue +1 -1
  183. package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
  184. package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
  185. package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
  186. package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
  187. package/src/views/user/wf/wf_manage/list.vue +66 -61
  188. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  189. package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
  190. package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
  191. package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
  192. package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
  193. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
  194. package/src/views/user/wf/wf_obj_config/list.vue +42 -41
  195. package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
  196. package/src/views/user/wf/wf_param/edit.vue +7 -5
  197. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
  198. package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
  199. package/src/views/user/home/distributor.vue +0 -849
@@ -9,7 +9,7 @@
9
9
  <div class="tree-box fl">
10
10
  <div class="tit"><b>表单分类</b></div>
11
11
  <div class="tree-btns" style="margin-top: 10px;">
12
- <!-- <el-button type="primary" plain icon="el-icon-circle-plus-outline" class="btn" @click="addFormType()">新增-->
12
+ <!-- <el-button type="primary" plain icon="el-icon-circle-plus-outline" class="btn" @click="addFormType()">{{ $t1('新增') }}-->
13
13
  <!-- </el-button>-->
14
14
  <!-- <el-button type="primary" plain icon="el-icon-edit-outline" class="btn" @click="editFormType()"-->
15
15
  <!-- :disabled="!currentFormType">编辑-->
@@ -43,15 +43,12 @@
43
43
  <tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
44
44
  <template #buttonLeft>
45
45
  <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog"
46
- v-if="isDev && currentFormType.addAuth===1">新增
46
+ v-if="isDev && currentFormType.addAuth===1">{{ $t1('新增') }}
47
47
  </vxe-button>
48
- <el-button type="primary" plain class="button-sty" icon="el-icon-rank"
49
- @click="moveClick()" v-if="isDev">移动到
50
- </el-button>
51
- <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport">导入发布
48
+ <vxe-button status="success" class="button-sty" icon="el-icon-download" @click="jsonImport">{{ $t1('导入发布') }}
52
49
  </vxe-button>
53
50
  <vxe-button status="success" class="button-sty" icon="el-icon-upload2" @click="jsonExport"
54
- v-if="isDev">导出发布
51
+ v-if="isDev">{{ $t1('导出发布') }}
55
52
  </vxe-button>
56
53
  <projectTagAddButton :option="addProjectTagOption" v-if="isDev"></projectTagAddButton>
57
54
  <projectTagDeleteButton :option="deleteProjectTagOption" v-if="isDev"></projectTagDeleteButton>
@@ -60,7 +57,7 @@
60
57
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
61
58
  plain>{{$t1('重置')}}
62
59
  </vxe-button>
63
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
60
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
64
61
  </vxe-button>
65
62
  </template>
66
63
  <template #menuKindName>
@@ -124,368 +121,10 @@
124
121
  </template>
125
122
 
126
123
  <script>
127
- import editView from './edit.vue';
128
- import MenuKindDialog from '../../../../views/bd/setting/menu_kind/dialog.vue';
129
- import {treeScollx} from '@base/utils/global.js';
130
- import projectTagDialog from "../../../../views/user/project_tag/dialog.vue";
131
- import tableForm from "@base/components/table/tableForm.vue";
132
- import {getBdFlag} from "@base/api/user";
133
- import projectTagDeleteButton from "@base/components/projectTag/deleteButton.vue";
134
- import projectTagAddButton from "@base/components/projectTag/addButton.vue";
135
- import projectTagView from "@base/components/projectTag/view.vue";
124
+ import mixin from "./mixins/list";
136
125
 
137
126
  export default {
138
127
  name: 'table_model:list',
139
- components: {
140
- projectTagView,
141
- projectTagAddButton, projectTagDeleteButton,
142
- tableForm,
143
- editView,
144
- MenuKindDialog,
145
- projectTagDialog
146
- },
147
- created() {
148
- },
149
- async mounted() {
150
- treeScollx({target: this, type: 'default'});
151
- this.getBdEnv();
152
- this.initTableList();
153
- },
154
- data() {
155
- return {
156
- activeName: 'second',
157
- dataId: 0,
158
- showEdit: false,
159
- vxeOption: {},
160
- checkRows: [],
161
- szTaMbIds: [],
162
- formData: {},
163
- defaultProps: {
164
- label: 'name', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
165
- children: [],
166
- isLeaf: 'leaf'
167
- },
168
- showItemView: false,
169
- showMenuKindDialog: false,
170
- currentFormType: {},
171
- addProjectTagOption: {
172
- url: USER_PREFIX + `/szTaMb/saveTag`,
173
- tableDatas: () => {
174
- return this.$refs["table-m1"].getCheckboxRecords(true);
175
- },
176
- reqData: (tagDatas, tableDatas) => {
177
- let taCodes = tableDatas.map(item => item.taCode);
178
- let tagCodes = tagDatas.map(item => item.tagCode);
179
- let reqData = {
180
- tagCodes,
181
- taCodes
182
- };
183
- return reqData;
184
- },
185
- callback: () => {
186
- this.searchEvent()
187
- }
188
- },
189
- deleteProjectTagOption: {
190
- url: USER_PREFIX + `/szTaMb/deleteTag`,
191
- tableDatas: () => {
192
- return this.$refs["table-m1"].getCheckboxRecords(true);
193
- },
194
- reqData: (tagDatas, tableDatas) => {
195
- let taCodes = tableDatas.map(item => item.taCode);
196
- let tagCodes = tagDatas.map(item => item.tagCode);
197
- let reqData = {
198
- tagCodes,
199
- taCodes
200
- };
201
- return reqData;
202
- },
203
- callback: () => {
204
- this.searchEvent()
205
- }
206
- },
207
- showProjectTagDialog3: false,
208
- checkTags: [],
209
- isDev: true,
210
- menuKindAuth: {},
211
- showTree: false
212
- };
213
- },
214
- computed: {
215
- currentMenuKindId() {
216
- return this.currentFormType?.id || null
217
- },
218
- currentMenuKindName() {
219
- return this.currentFormType?.name || null
220
- }
221
- },
222
- methods: {
223
- searchEvent() {
224
- this.$refs['table-m1'].commitProxy('reload');
225
- },
226
- resetEvent() {
227
- this.formData = {};
228
- this.checkTags = [];
229
- this.$refs['table-m1'].commitProxy('reload');
230
- },
231
- openEditDialog(row) {
232
- /*this.dataId = !id || typeof id == 'object' ? 0 : id;
233
- this.activeName = 'first';
234
- this.$openEditView('showEdit');*/
235
-
236
- let dataId = row?.id || 0;
237
- if (!dataId) {
238
- this.dataId = dataId;
239
- this.activeName = 'first';
240
- this.$openEditView('showEdit');
241
- } else {
242
- this.$refs.xTabs.openEditTab(row);
243
- }
244
- },
245
- getSearchParam() {
246
- let tagCodes = null;
247
- if (this.checkTags.length) {
248
- tagCodes = this.checkTags.map(item => item.tagCode);
249
- }
250
- let currentFormType = this.currentFormType || {}
251
- return {
252
- ...this.formData,
253
- menuKindCode: currentFormType.menuKindCode || null,
254
- tagCodes
255
- };
256
- },
257
- initTableList() {
258
- let tableOption = {
259
- vue: this,
260
- tableRef: 'table-m1',
261
- tableName: 'bd_table_model_list-m1',
262
- path: USER_PREFIX + '/szTaMb/listPage',
263
- param: () => {
264
- return this.getSearchParam();
265
- },
266
- columns: [
267
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
268
- {title: '实体名称', field: 'taEn', width: 150, fixed: 'left'},
269
- {title: '数据库表名', field: 'taBm', width: 150},
270
- {title: '表描述', field: 'taCh', width: 150},
271
- {
272
- title: '表类型', field: 'taType', width: 150,
273
- slots: {
274
- default: ({row}) => {
275
- return row.taType == 0 ? '主表' : '明细表'
276
- }
277
- }
278
- },
279
- {
280
- title: '是否树结构', field: 'taRule', width: 150,
281
- slots: {
282
- default: ({row}) => {
283
- return row.taRule == 1 ? '是' : '否'
284
- }
285
- }
286
- },
287
- {
288
- title: '数据范围', field: 'dataRange', width: 150,
289
- slots: {
290
- default: ({row}) => {
291
- return row.dataRange == 1 ? '集团' : '当前企业'
292
- }
293
- }
294
- },
295
- {title: '表单分类', field: 'menuKindName', width: 150},
296
- {
297
- title: '项目标签', field: 'tag', width: 250, slots: {default: "tag"}, params: {
298
- exportVal: ({row}) => {
299
- if (row.szTaMbTagDTOs) {
300
- return row.szTaMbTagDTOs.map(item => item.tagName).join(",")
301
- }
302
- }
303
- }
304
- },
305
- {title: '表编码', field: 'taCode', width: 150},
306
- {title: this.$t1('创建人'), field: 'createBy', width: 150},
307
- {title: this.$t1('创建时间'), field: 'createDate', width: 150},
308
- {title: this.$t1('更新人'), field: 'modifyBy', width: 150},
309
- {title: this.$t1('更新时间'), field: 'modifyDate', width: 150},
310
- {
311
- width: 47,
312
- fixed: 'right',
313
- title: '',
314
- sortable: false,
315
- slots: {
316
- default: ({row}) => {
317
- return [
318
- <div>
319
- <a
320
- href="javascript:void(0);"
321
- class="a-link"
322
- onclick={() => {
323
- this.openEditDialog(row);
324
- }}
325
- >
326
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
327
- popper-class="tooltip-skin">
328
- <i class="el-icon-edit"/>
329
- </el-tooltip>
330
- </a>
331
- <a
332
- href="javascript:void(0);"
333
- onClick={() => {
334
- this.openDesingerDialog(row);
335
- }}
336
- className="a-link"
337
- >
338
- <el-tooltip enterable={false} effect="dark" content="表单设计" placement="top"
339
- popper-class="tooltip-skin">
340
- <i className="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
341
- </el-tooltip>
342
- </a>
343
- <a
344
- href="javascript:void(0);"
345
- className="a-link"
346
- onClick={() => {
347
- this.openTmHistoryDialog(row);
348
- }}
349
- >
350
- <el-tooltip enterable={false} effect="dark" content="历史" placement="top"
351
- popper-class="tooltip-skin">
352
- <i className="el-icon-s-order"/>
353
- </el-tooltip>
354
- </a>
355
- </div>
356
- ];
357
- }
358
- }
359
- }
360
- ],
361
- searchColumns: [
362
- {
363
- title: "表单分类",
364
- field: "menuKindName",
365
- type: "input",
366
- common: true,
367
- disabled: true,
368
- defaultValueEnabled: false,
369
- slot: "menuKindName"
370
- },
371
- {title: "实体名称", field: "taEn", type: "input", common: true},
372
- {title: "数据库表名", field: "taBm", type: "input", common: true},
373
- {title: "表描述", field: "taCh", type: "input", common: true},
374
- {title: "项目标签", field: "tag", type: "input", common: true, slot: "tag"},
375
- ],
376
- config: {
377
- proxyConfig: {
378
- autoLoad: false
379
- }
380
- },
381
- };
382
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
383
- this.vxeOption = opts;
384
- this.showTree = true;
385
- });
386
- },
387
- handleNodeClick(data, node, v) {
388
- this.handleNodeData(node)
389
- this.$forceUpdate();
390
- this.searchEvent();
391
- },
392
- loadNode(node, resolve) {
393
- let id = node && node.data && node.data.id ? node.data.id || '' : 0;
394
- let param = {enabled: true};
395
- let url = !id ? USER_PREFIX + '/menuKind/getAllList' : USER_PREFIX + '/menuKind/getChildren';
396
- this.$http({
397
- url: url,
398
- method: 'post',
399
- data: {
400
- parent: id,
401
- enabled: true
402
- },
403
- success: res => {
404
- let rows = res.objx || [];
405
- rows.forEach(value => {
406
- value.leaf = !value.hasChild;
407
- });
408
- if (node.level === 0) {
409
- if (rows.length > 0) {
410
- this.$nextTick(() => {
411
- let firstNode = node.childNodes[0];
412
- if (rows[0].hasChild) {
413
- firstNode.expand();
414
- }
415
- this.$refs.tree.setCurrentKey(firstNode.data);
416
- this.handleNodeClick(firstNode.data, firstNode, this)
417
- });
418
- }
419
- }
420
- resolve(rows);
421
- }
422
- });
423
- },
424
- handleNodeData(node) {
425
- this.currentFormType = node ? node.data : null;
426
- this.currentNode = node;
427
- },
428
- addFormType() {
429
- this.editFormTypeId = null;
430
- this.currentFormType = null;
431
- this.showFormTypeDialog = true;
432
- },
433
- editFormType() {
434
- let row = this.currentFormType;
435
- this.editFormTypeId = row.id;
436
- this.showFormTypeDialog = true;
437
- },
438
- confirmFormTypeEditDialog(row) {
439
- row.leaf = true;
440
- let editFormTypeId = this.editFormTypeId;
441
- if (!editFormTypeId) {
442
- this.$refs.tree.append(row);
443
- } else {
444
- let node = this.$refs.tree.getNode(row.id + "")
445
- node.data = row;
446
- }
447
- },
448
- confirmInsertMenuKind(rows) {
449
- this.$baseReload();
450
- },
451
- moveClick() {
452
- this.szTaMbIds = [];
453
- this.$refs["table-m1"].getCheckboxRecords(true).map((item) => {
454
- this.szTaMbIds.push(item.id);
455
- });
456
- this.showMenuKindDialog = true;
457
- },
458
- openProjectTagDialog3() {
459
- this.showProjectTagDialog3 = true;
460
- },
461
- confirmProjectTagDialog3(rows) {
462
- this.checkTags = rows;
463
- },
464
- getTabNames() {
465
- return this.checkTags.map(item => item.tagName).join(",");
466
- },
467
- jsonImport() {
468
- this.$jsonImport({
469
- saveUrl: USER_PREFIX + '/form_develop/importSzTaMb',
470
- callback: () => {
471
- this.searchEvent();
472
- }
473
- });
474
- },
475
- jsonExport() {
476
- this.$jsonExport({
477
- targetRef: "table-m1",
478
- url: USER_PREFIX + "/form_develop/exportSzTaMb",
479
- abcEnabled: true
480
- })
481
- },
482
- getBdEnv() {
483
- getBdFlag({
484
- success: res => {
485
- this.isDev = res.objx == 1
486
- }
487
- });
488
- }
489
- }
490
- };
128
+ mixins: [mixin]
129
+ }
491
130
  </script>
@@ -0,0 +1,74 @@
1
+ import {selectDialogMixins} from "@base/mixins/selectDialog";
2
+
3
+ let modules = {};
4
+ modules = {
5
+ name: 'tableModelDialog',
6
+ props: ['visiable', 'multi', 'rows', 'param'],
7
+ mixins: [selectDialogMixins],
8
+ components: {},
9
+ created() {
10
+ this.initSetting();
11
+ },
12
+ mounted() {
13
+ this.initTableM1();
14
+ },
15
+ data() {
16
+ return {
17
+ showDialog: true,
18
+ falseValue: false,
19
+ selectMulti: true,
20
+ formData: {},
21
+ vxeOption: {},
22
+ showSaleOrgDialog: false
23
+ };
24
+ },
25
+ methods: {
26
+ initTableM1() {
27
+ let that = this;
28
+ let tableOption = {
29
+ vue: that,
30
+ tableRef: 'table-m1',
31
+ tableName: 'bd_table_model_dialog-m1',
32
+ path: USER_PREFIX + '/szTaMb/listPage',
33
+ param: () => {
34
+ return {
35
+ enabled: true,
36
+ ...this.formData,
37
+ ...this.param
38
+ };
39
+ },
40
+ columns: [
41
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
42
+ {title: '实体名称', field: 'taEn', width: 150, fixed: 'left'},
43
+ {title: '数据库表名', field: 'taBm', width: 150},
44
+ {title: '表描述', field: 'taCh', width: 150},
45
+ {
46
+ title: '表类型', field: 'taType', width: 150, slots: {
47
+ default: ({row}) => {
48
+ return row.taType == 0 ? '主表' : '明细表'
49
+ }
50
+ }
51
+ },
52
+ {title: '表编码', field: 'taCode', width: 150},
53
+ {
54
+ width: 47,
55
+ fixed: 'right',
56
+ title: '',
57
+ sortable: false
58
+ }
59
+ ],
60
+ config: {
61
+ checkboxConfig: {
62
+ checkStrictly: true,
63
+ showHeader: this.selectMulti,
64
+ trigger: 'row'
65
+ }
66
+ }
67
+ };
68
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
69
+ that.vxeOption = opts;
70
+ });
71
+ },
72
+ }
73
+ };
74
+ export default modules