cloud-web-corejs 1.0.54-dev.786 → 1.0.54-dev.788

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 (158) hide show
  1. package/package.json +2 -1
  2. package/src/components/VabUpload/index.vue +1 -1
  3. package/src/components/baseInputExport/mixins.js +13 -2
  4. package/src/components/code-editor/async.js +29 -0
  5. package/src/components/code-editor/index.vue +65 -6
  6. package/src/components/excelImport/index.js +69 -7
  7. package/src/components/excelImport/mixins.js +841 -9
  8. package/src/components/fileLibrary/fileHistoryDialog.vue +1 -1
  9. package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
  10. package/src/components/fileLibrary/filterDialog.vue +1 -1
  11. package/src/components/formDialog/README.md +324 -241
  12. package/src/components/formDialog/actionButtons.js +90 -0
  13. package/src/components/formDialog/index.js +48 -35
  14. package/src/components/formDialog/index.vue +802 -724
  15. package/src/components/formDrawer/drawer.vue +719 -0
  16. package/src/components/formDrawer/index.js +50 -0
  17. package/src/components/onlineTalk/talkUserDialog.vue +1 -1
  18. package/src/components/table/index.js +4 -0
  19. package/src/components/tempStorage/tempStorageDialog.vue +1 -1
  20. package/src/components/wf/addTaskUserdialog.vue +1 -1
  21. package/src/components/xform/docs/2026-08 /345/210/227/350/241/250/345/257/274/345/207/272/350/204/261/346/225/217/345/210/227/345/211/224/351/231/244/350/220/275/345/234/260/346/226/207/346/241/243.md" +165 -0
  22. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +1 -1
  23. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +115 -4
  24. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +102 -5
  25. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +1 -1
  26. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +1 -1
  27. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +18 -73
  28. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +3 -0
  29. package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +241 -0
  30. package/src/components/xform/form-designer/setting-panel/form-setting.vue +116 -0
  31. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +6 -0
  32. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
  33. package/src/components/xform/form-render/container-item/data-table-mixin.js +1480 -1460
  34. package/src/components/xform/form-render/container-item/detail-item.vue +11 -2
  35. package/src/components/xform/form-render/container-item/list-h5-item.vue +12 -0
  36. package/src/components/xform/form-render/indexMixin.js +5 -0
  37. package/src/components/xform/utils/textMaskUtil.js +186 -0
  38. package/src/index.js +505 -472
  39. package/src/store/config/index.js +224 -0
  40. package/src/store/modules/tagsView.js +4 -2
  41. package/src/utils/lazyPlugin.js +66 -0
  42. package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
  43. package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
  44. package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
  45. package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
  46. package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
  47. package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
  48. package/src/views/bd/project/branch/form_script/list.vue +22 -0
  49. package/src/views/bd/project/branch/form_template/list.vue +21 -0
  50. package/src/views/bd/project/branch/menu_kind/list.vue +21 -0
  51. package/src/views/bd/project/common/form_script/list.vue +16 -0
  52. package/src/views/bd/project/common/form_template/list.vue +15 -0
  53. package/src/views/bd/project/common/menu_kind/list.vue +15 -0
  54. package/src/views/bd/project/core/branchContext.js +100 -0
  55. package/src/views/bd/project/core/branchPage.js +78 -0
  56. package/src/views/bd/project/core/branchPageWrap.vue +216 -0
  57. package/src/views/bd/project/core/branchScope.js +44 -0
  58. package/src/views/bd/project/core/branchSelect.vue +106 -0
  59. package/src/views/bd/project/core/httpBranchPatch.js +58 -0
  60. package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
  61. package/src/views/bd/project/datatable/table_model/list.vue +15 -0
  62. package/src/views/bd/setting/bd_attach_setting/dialog.vue +1 -1
  63. package/src/views/bd/setting/bd_attach_setting/list.vue +1 -1
  64. package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
  65. package/src/views/bd/setting/bd_company_env/list.vue +1 -1
  66. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +1 -1
  67. package/src/views/bd/setting/form_import_log/list.vue +1 -1
  68. package/src/views/bd/setting/form_script/dialog.vue +1 -1
  69. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  70. package/src/views/bd/setting/form_script/list.vue +1 -1
  71. package/src/views/bd/setting/form_script/list1.vue +1 -1
  72. package/src/views/bd/setting/form_template/dialog.vue +1 -1
  73. package/src/views/bd/setting/form_template/formDesignerDialog.vue +1 -0
  74. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +1 -1
  75. package/src/views/bd/setting/form_template/itemList.vue +1 -1
  76. package/src/views/bd/setting/form_template/list.vue +3 -3
  77. package/src/views/bd/setting/form_template/mixins/edit.js +3 -3
  78. package/src/views/bd/setting/form_template/mixins/list.js +3 -3
  79. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  80. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -3
  81. package/src/views/bd/setting/form_template/wf_list.vue +3 -3
  82. package/src/views/bd/setting/logic_param/list.vue +1 -1
  83. package/src/views/bd/setting/menu_kind/dialog.vue +1 -1
  84. package/src/views/bd/setting/menu_kind/list.vue +1 -1
  85. package/src/views/bd/setting/push_data/list.vue +1 -1
  86. package/src/views/bd/setting/push_data_h/list.vue +1 -1
  87. package/src/views/bd/setting/request_async_setting/list.vue +1 -1
  88. package/src/views/bd/setting/request_setting/list.vue +1 -1
  89. package/src/views/bd/setting/table_model/dialog.vue +1 -1
  90. package/src/views/bd/setting/table_model/list.vue +1 -1
  91. package/src/views/bd/setting/table_model/zdDialog.vue +1 -1
  92. package/src/views/support/export_template/list.vue +1 -1
  93. package/src/views/user/access_log/list.vue +1 -1
  94. package/src/views/user/access_log/list2.vue +1 -1
  95. package/src/views/user/api_request/list.vue +1 -1
  96. package/src/views/user/area/dialog.vue +1 -1
  97. package/src/views/user/area/list.vue +1 -1
  98. package/src/views/user/bill_setting/list.vue +1 -1
  99. package/src/views/user/bill_setting/userDialog.vue +1 -1
  100. package/src/views/user/code_rules/list.vue +1 -1
  101. package/src/views/user/common_attribute/list.vue +1 -1
  102. package/src/views/user/common_script/list.vue +1 -1
  103. package/src/views/user/company_info/dialog.vue +1 -1
  104. package/src/views/user/country/dialog.vue +1 -1
  105. package/src/views/user/country/list.vue +1 -1
  106. package/src/views/user/data_type_setting/dialog.vue +1 -1
  107. package/src/views/user/extend_datasource/dialog.vue +1 -1
  108. package/src/views/user/extend_datasource/list.vue +1 -1
  109. package/src/views/user/fieldTranslation/list.vue +1 -1
  110. package/src/views/user/field_values_invisible/list.vue +1 -1
  111. package/src/views/user/file_type/list.vue +1 -1
  112. package/src/views/user/file_view_area/list.vue +1 -1
  113. package/src/views/user/form/form_template/dialog.vue +1 -1
  114. package/src/views/user/form/form_template/itemList.vue +1 -1
  115. package/src/views/user/form/form_template/list.vue +1 -1
  116. package/src/views/user/form/form_template_field/dialog.vue +1 -1
  117. package/src/views/user/form/form_type/dialog.vue +1 -1
  118. package/src/views/user/form/form_type/list.vue +1 -1
  119. package/src/views/user/form/report_requestaccess/dialog.vue +1 -1
  120. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  121. package/src/views/user/form/vform/designer.vue +51 -22
  122. package/src/views/user/groups/dialog.vue +1 -1
  123. package/src/views/user/groups/list.vue +1 -1
  124. package/src/views/user/lang_tag/dialog.vue +1 -1
  125. package/src/views/user/lang_tag/list.vue +1 -1
  126. package/src/views/user/language_setting/list.vue +1 -1
  127. package/src/views/user/menu/list.vue +1 -1
  128. package/src/views/user/mobile_menu/list.vue +1 -1
  129. package/src/views/user/notify_message/list.vue +1 -1
  130. package/src/views/user/notify_template/list.vue +1 -1
  131. package/src/views/user/notify_template/list2.vue +1 -1
  132. package/src/views/user/oplog/list.vue +1 -1
  133. package/src/views/user/position/dialog.vue +1 -1
  134. package/src/views/user/position/list.vue +1 -1
  135. package/src/views/user/project_tag/dialog.vue +1 -1
  136. package/src/views/user/project_tag/list.vue +1 -1
  137. package/src/views/user/push_setting/list.vue +1 -1
  138. package/src/views/user/request_setting/list.vue +1 -1
  139. package/src/views/user/role/dialog.vue +1 -1
  140. package/src/views/user/role/list.vue +1 -1
  141. package/src/views/user/sale_org/dialog.vue +1 -1
  142. package/src/views/user/sale_org/list.vue +1 -1
  143. package/src/views/user/system_notice/list.vue +1 -1
  144. package/src/views/user/system_parameter/list.vue +1 -1
  145. package/src/views/user/user/dialog.vue +1 -1
  146. package/src/views/user/user/form_dialog.vue +1 -1
  147. package/src/views/user/user/form_list.vue +1 -1
  148. package/src/views/user/user/list.vue +2 -2
  149. package/src/views/user/user_log_classify/list.vue +1 -1
  150. package/src/views/user/wf/wfReport/index.vue +2 -2
  151. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -2
  152. package/src/views/user/wf/wf_manage/list.vue +2 -2
  153. package/src/views/user/wf/wf_manage/list2.vue +2 -2
  154. package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
  155. package/src/views/user/wf/wf_obj_config/list.vue +1 -1
  156. package/src/views/user/wf/wf_obj_config/list_form.vue +1 -1
  157. package/src/views/user/wf/wf_transfer_setting/list.vue +1 -1
  158. package/src/views/user/workbench_menu/list.vue +1 -1
@@ -1,4 +1,225 @@
1
1
  //bdadmin 7,dev_admin 6, 普通dev账号 8
2
+
3
+ // 通用工程/分支工程/数据表管理:分组父节点不配 url,仅作侧边栏分组,叶子的 menuCode 与壳组件 name 一致
4
+ const bdProjectMenus = [
5
+ {
6
+ id: 900001,
7
+ orders: 101,
8
+ parent: null,
9
+ menuName: "通用工程",
10
+ menuEnName: null,
11
+ menuCode: "bd_project_common",
12
+ menuImg: "icon-fenzu",
13
+ url: null,
14
+ route: null,
15
+ enabled: true,
16
+ treePathName: ",",
17
+ hasChild: true,
18
+ grade: 1,
19
+ type: 0,
20
+ children: [
21
+ {
22
+ id: 900002,
23
+ orders: 1,
24
+ parent: 900001,
25
+ menuName: "分类-通用",
26
+ menuEnName: null,
27
+ menuCode: "common_menu_kind:list",
28
+ menuImg: "icon-fenlei",
29
+ url: "@base/views/bd/project/common/menu_kind/list",
30
+ route: "/bd/project/common/menu_kind/list",
31
+ enabled: true,
32
+ treePathName: ",",
33
+ hasChild: false,
34
+ grade: 2,
35
+ type: 0,
36
+ children: [],
37
+ },
38
+ {
39
+ id: 900003,
40
+ orders: 2,
41
+ parent: 900001,
42
+ menuName: "表单模板-通用",
43
+ menuEnName: null,
44
+ menuCode: "common_form_template:list",
45
+ menuImg: "icon-biaodanguanli",
46
+ url: "@base/views/bd/project/common/form_template/list",
47
+ route: "/bd/project/common/form_template/list",
48
+ enabled: true,
49
+ treePathName: ",",
50
+ hasChild: false,
51
+ grade: 2,
52
+ type: 0,
53
+ children: [],
54
+ },
55
+ {
56
+ id: 900004,
57
+ orders: 3,
58
+ parent: 900001,
59
+ menuName: "逻辑脚本-通用",
60
+ menuEnName: null,
61
+ menuCode: "common_form_script:list",
62
+ menuImg: "icon-liuchengshu",
63
+ url: "@base/views/bd/project/common/form_script/list",
64
+ route: "/bd/project/common/form_script/list",
65
+ enabled: true,
66
+ treePathName: ",",
67
+ hasChild: false,
68
+ grade: 2,
69
+ type: 0,
70
+ children: [],
71
+ },
72
+ ],
73
+ },
74
+ {
75
+ id: 900005,
76
+ orders: 102,
77
+ parent: null,
78
+ menuName: "分支工程",
79
+ menuEnName: null,
80
+ menuCode: "bd_project_branch",
81
+ menuImg: "icon-danjuliuchengshezhi",
82
+ url: null,
83
+ route: null,
84
+ enabled: true,
85
+ treePathName: ",",
86
+ hasChild: true,
87
+ grade: 1,
88
+ type: 0,
89
+ children: [
90
+ {
91
+ id: 900006,
92
+ orders: 1,
93
+ parent: 900005,
94
+ menuName: "分类-分支",
95
+ menuEnName: null,
96
+ menuCode: "branch_menu_kind:list",
97
+ menuImg: "icon-fenlei",
98
+ url: "@base/views/bd/project/branch/menu_kind/list",
99
+ route: "/bd/project/branch/menu_kind/list",
100
+ enabled: true,
101
+ treePathName: ",",
102
+ hasChild: false,
103
+ grade: 2,
104
+ type: 0,
105
+ repeatOpen: true,
106
+ children: [],
107
+ },
108
+ {
109
+ id: 900007,
110
+ orders: 2,
111
+ parent: 900005,
112
+ menuName: "表单模板-分支",
113
+ menuEnName: null,
114
+ menuCode: "branch_form_template:list",
115
+ menuImg: "icon-biaodanguanli",
116
+ url: "@base/views/bd/project/branch/form_template/list",
117
+ route: "/bd/project/branch/form_template/list",
118
+ enabled: true,
119
+ treePathName: ",",
120
+ hasChild: false,
121
+ grade: 2,
122
+ type: 0,
123
+ repeatOpen: true,
124
+ children: [],
125
+ },
126
+ {
127
+ id: 900008,
128
+ orders: 3,
129
+ parent: 900005,
130
+ menuName: "逻辑脚本-分支",
131
+ menuEnName: null,
132
+ menuCode: "branch_form_script:list",
133
+ menuImg: "icon-liuchengshu",
134
+ url: "@base/views/bd/project/branch/form_script/list",
135
+ route: "/bd/project/branch/form_script/list",
136
+ enabled: true,
137
+ treePathName: ",",
138
+ hasChild: false,
139
+ grade: 2,
140
+ type: 0,
141
+ repeatOpen: true,
142
+ children: [],
143
+ },
144
+ {
145
+ id: 900009,
146
+ orders: 4,
147
+ parent: 900005,
148
+ menuName: "分支定义",
149
+ menuEnName: null,
150
+ menuCode: "bd_branch:list",
151
+ menuImg: "icon-bianma1",
152
+ url: "@base/views/bd/project/branch/bd_branch/list",
153
+ route: "/bd/project/branch/bd_branch/list",
154
+ enabled: true,
155
+ treePathName: ",",
156
+ hasChild: false,
157
+ grade: 2,
158
+ type: 0,
159
+ children: [],
160
+ },
161
+ ],
162
+ },
163
+ {
164
+ id: 900010,
165
+ orders: 103,
166
+ parent: null,
167
+ menuName: "数据表管理",
168
+ menuEnName: null,
169
+ menuCode: "bd_project_datatable",
170
+ menuImg: "icon-shujuguanli",
171
+ url: null,
172
+ route: null,
173
+ enabled: true,
174
+ treePathName: ",",
175
+ hasChild: true,
176
+ grade: 1,
177
+ type: 0,
178
+ children: [
179
+ {
180
+ id: 900011,
181
+ orders: 1,
182
+ parent: 900010,
183
+ menuName: "数据表分类",
184
+ menuEnName: null,
185
+ menuCode: "dt_menu_kind:list",
186
+ menuImg: "icon-fenlei",
187
+ url: "@base/views/bd/project/datatable/menu_kind/list",
188
+ route: "/bd/project/datatable/menu_kind/list",
189
+ enabled: true,
190
+ treePathName: ",",
191
+ hasChild: false,
192
+ grade: 2,
193
+ type: 0,
194
+ children: [],
195
+ },
196
+ {
197
+ id: 900012,
198
+ orders: 2,
199
+ parent: 900010,
200
+ menuName: "数据表定义",
201
+ menuEnName: null,
202
+ menuCode: "dt_table_model:list",
203
+ menuImg: "icon-biaoge",
204
+ url: "@base/views/bd/project/datatable/table_model/list",
205
+ route: "/bd/project/datatable/table_model/list",
206
+ enabled: true,
207
+ treePathName: ",",
208
+ hasChild: false,
209
+ grade: 2,
210
+ type: 0,
211
+ children: [],
212
+ },
213
+ ],
214
+ },
215
+ ];
216
+
217
+ // 普通dev账号(8)开放同样的分组,但不给「分支定义」的维护入口
218
+ const bdProjectMenusForDev = bdProjectMenus.map((group) => ({
219
+ ...group,
220
+ children: group.children.filter((item) => item.menuCode !== "bd_branch:list"),
221
+ }));
222
+
2
223
  let modules = {};
3
224
  modules = {
4
225
  userFlagMenuMap: {
@@ -297,6 +518,7 @@ modules = {
297
518
  grade: 2,
298
519
  type: 0,
299
520
  },
521
+ ...bdProjectMenus,
300
522
  ],
301
523
  7: [
302
524
  {
@@ -433,6 +655,7 @@ modules = {
433
655
  grade: 2,
434
656
  type: 0,
435
657
  },
658
+ ...bdProjectMenus,
436
659
  ],
437
660
  8: [
438
661
  {
@@ -661,6 +884,7 @@ modules = {
661
884
  grade: 2,
662
885
  type: 0,
663
886
  },
887
+ ...bdProjectMenusForDev,
664
888
  ],
665
889
  },
666
890
  };
@@ -198,9 +198,11 @@ actions = {
198
198
  commit("UPDATE_VISITED_VIEW", view);
199
199
  },
200
200
  updateVisitedView2({ commit }, { view, title }) {
201
- let newView0 = { ...(view || window.$vueRoot.$route) };
201
+ let src = view || window.$vueRoot.$route;
202
+ // 浅拷贝后再拷贝 meta,避免直接改写路由上共享的 meta.title
203
+ let newView0 = { ...src };
202
204
  delete newView0.matched;
203
- newView0.meta.title = title;
205
+ newView0.meta = { ...(src.meta || {}), title };
204
206
  let newView = _.cloneDeep(newView0);
205
207
 
206
208
  commit("UPDATE_VISITED_VIEW", newView);
@@ -0,0 +1,66 @@
1
+ /**
2
+ * 首屏优化:调用式插件懒加载壳。
3
+ * 背景:Vue.use(插件) 静态 import 会把整条组件链(如 excelImport→xlsx、
4
+ * VabUpload→obsUpload→esdk-obs-browserjs)打进主包;此工具在注册期只挂占位方法,
5
+ * 首次调用任一方法时才动态加载真模块并执行其 install(覆盖占位),再重放本次调用。
6
+ * 真模块(含混淆入口文件)一行不动。
7
+ *
8
+ * @param {Function} loader () => import("..."),返回带 default.install(Vue) 的模块
9
+ * @param {Array} surface 原型方法面:
10
+ * { name: "$excelImport" } —— Vue.prototype.$excelImport(...)
11
+ * { name: "$baseUpload", methods: ["open"] } —— Vue.prototype.$baseUpload.open(...)
12
+ * 注意:占位方法一律返回 Promise(真方法返回值经 Promise 包装);
13
+ * 既有调用方均为回调风格(options.success 等),不依赖同步返回值。
14
+ */
15
+ export function lazyPrototypePlugin(loader, surface) {
16
+ let realPromise = null;
17
+
18
+ return {
19
+ install(Vue) {
20
+ const load = () => {
21
+ if (!realPromise) {
22
+ realPromise = loader().then((m) => {
23
+ const mod = m.default || m;
24
+ mod.install(Vue);
25
+ return mod;
26
+ });
27
+ }
28
+ return realPromise;
29
+ };
30
+
31
+ surface.forEach((item) => {
32
+ if (Array.isArray(item.methods)) {
33
+ // 对象形方法面(如 $baseUpload.open / $baseUpload.upload)
34
+ const stub = {};
35
+ item.methods.forEach((methodName) => {
36
+ stub[methodName] = function (...args) {
37
+ return load().then(() => {
38
+ const real = Vue.prototype[item.name];
39
+ if (real === stub) {
40
+ throw new Error(
41
+ `[lazyPlugin] 真模块 install 未定义 ${item.name}`
42
+ );
43
+ }
44
+ return real[methodName].apply(this, args);
45
+ });
46
+ };
47
+ });
48
+ Vue.prototype[item.name] = stub;
49
+ } else {
50
+ const stub = function (...args) {
51
+ return load().then(() => {
52
+ const real = Vue.prototype[item.name];
53
+ if (real === stub) {
54
+ throw new Error(
55
+ `[lazyPlugin] 真模块 install 未定义 ${item.name}`
56
+ );
57
+ }
58
+ return real.apply(this, args);
59
+ });
60
+ };
61
+ Vue.prototype[item.name] = stub;
62
+ }
63
+ });
64
+ },
65
+ };
66
+ }
@@ -0,0 +1,145 @@
1
+ <template>
2
+ <div class="detail-wrap">
3
+ <el-form ref="editForm" :model="bdBranch">
4
+ <div class="d-header clearfix">
5
+ <div class="fl">
6
+ <i class="el-icon-info" />
7
+ {{ dataId ? $t1("查看分支定义") : $t1("新增分支定义") }}
8
+ </div>
9
+ <div class="fr">
10
+ <el-button
11
+ type="primary"
12
+ plain
13
+ class="button-sty"
14
+ @click="$baseReload()"
15
+ icon="el-icon-refresh-right"
16
+ >
17
+ {{ $t1("重置") }}
18
+ </el-button>
19
+ <el-button
20
+ type="primary"
21
+ class="button-sty"
22
+ icon="el-icon-check"
23
+ @click="saveData"
24
+ >{{ $t1("保存") }}
25
+ </el-button>
26
+ </div>
27
+ </div>
28
+ <div class="d-cont">
29
+ <div class="d-item">
30
+ <div class="title first">
31
+ <b>{{ $t1("基本信息") }}</b>
32
+ </div>
33
+ <table class="table-detail">
34
+ <tbody>
35
+ <tr>
36
+ <th>
37
+ <em class="f-red">*</em>
38
+ {{ $t1("分支编码") }}
39
+ </th>
40
+ <td>
41
+ <el-form-item prop="branchCode" :rules="branchCodeRules">
42
+ <el-input
43
+ type="text"
44
+ autocomplete="off"
45
+ v-model="bdBranch.branchCode"
46
+ :disabled="isEdit"
47
+ clearable
48
+ />
49
+ </el-form-item>
50
+ </td>
51
+ <th>
52
+ <em class="f-red">*</em>
53
+ {{ $t1("分支名称") }}
54
+ </th>
55
+ <td>
56
+ <el-form-item prop="branchName" :rules="branchNameRules">
57
+ <el-input
58
+ type="text"
59
+ autocomplete="off"
60
+ v-model="bdBranch.branchName"
61
+ clearable
62
+ />
63
+ </el-form-item>
64
+ </td>
65
+ <th>{{ $t1("是否启用") }}</th>
66
+ <td>
67
+ <el-switch v-model="bdBranch.enabled"></el-switch>
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <th>{{ $t1("备注") }}</th>
72
+ <td colspan="5">
73
+ <el-input
74
+ type="textarea"
75
+ :rows="2"
76
+ :placeholder="$t1('请输入内容')"
77
+ size="small"
78
+ v-model="bdBranch.remark"
79
+ clearable
80
+ ></el-input>
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <th>{{ $t1("创建人") }}</th>
85
+ <td>{{ bdBranch.createBy }}</td>
86
+ <th>{{ $t1("创建时间") }}</th>
87
+ <td>{{ bdBranch.createDate }}</td>
88
+ <th>{{ $t1("更新人") }}</th>
89
+ <td>{{ bdBranch.modifyBy }}</td>
90
+ </tr>
91
+ </tbody>
92
+ </table>
93
+ </div>
94
+ <div class="d-item">
95
+ <div class="title">
96
+ <b>{{ $t1("分支菜单类型") }}</b>
97
+ </div>
98
+ <div class="grid-height" style="height: 320px">
99
+ <vxe-grid
100
+ ref="table-menuKind"
101
+ :data="menuKindRows"
102
+ v-bind="menuKindOption"
103
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
104
+ @custom="$vxeTableUtil.customHandle"
105
+ >
106
+ <template #form>
107
+ <div class="clearfix screen-btns">
108
+ <div class="fl">
109
+ <vxe-button
110
+ status="primary"
111
+ class="button-sty"
112
+ icon="el-icon-plus"
113
+ @click="openMenuKindDialog"
114
+ >
115
+ {{ $t1("选择分类") }}
116
+ </vxe-button>
117
+ <span class="tips">{{
118
+ $t1("注:只能选择「分类-通用」的一级分类")
119
+ }}</span>
120
+ </div>
121
+ </div>
122
+ </template>
123
+ </vxe-grid>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </el-form>
128
+ <menuKindDialog
129
+ v-if="showMenuKindDialog"
130
+ :visiable.sync="showMenuKindDialog"
131
+ :rows="checkedMenuKindRows"
132
+ multi="true"
133
+ @confirm="confirmMenuKindDialog"
134
+ ></menuKindDialog>
135
+ </div>
136
+ </template>
137
+
138
+ <script>
139
+ import mixin from "./mixins/edit";
140
+
141
+ export default {
142
+ name: "bdBranchEdit",
143
+ mixins: [mixin],
144
+ };
145
+ </script>
@@ -0,0 +1,72 @@
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
+ </tableForm>
57
+ </template>
58
+ </vxe-grid>
59
+ </div>
60
+ </el-tab-pane>
61
+ </el-tabs>
62
+ </div>
63
+ </template>
64
+
65
+ <script>
66
+ import mixin from "./mixins/list";
67
+
68
+ export default {
69
+ name: "bd_branch:list",
70
+ mixins: [mixin],
71
+ };
72
+ </script>
@@ -0,0 +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="falseValue"
7
+ :visible.sync="showDialog"
8
+ :modal="falseValue"
9
+ custom-class="dialog-style list-dialog dialog-checkbox pd_0"
10
+ width="1000px"
11
+ @close="dialogClose"
12
+ v-el-drag-dialog
13
+ v-el-dialog-center
14
+ >
15
+ <div class="cont" style="height: 450px">
16
+ <vxe-grid
17
+ class="is-pointer"
18
+ ref="table-m1"
19
+ v-bind="vxeOption"
20
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
21
+ @custom="$vxeTableUtil.customHandle"
22
+ @checkbox-change="addDataTable"
23
+ @checkbox-all="checkAll"
24
+ @cell-dblclick="checkWithSubmit"
25
+ >
26
+ <template #form>
27
+ <div class="clearfix screen-btns">
28
+ <div class="fr">
29
+ <vxe-button
30
+ icon="el-icon-brush"
31
+ class="button-sty"
32
+ @click="resetEvent"
33
+ type="text"
34
+ status="primary"
35
+ plain
36
+ >{{ $t1("刷新") }}
37
+ </vxe-button>
38
+ <vxe-button
39
+ status="warning"
40
+ icon="el-icon-search"
41
+ class="button-sty"
42
+ @click="searchEvent"
43
+ >
44
+ {{ $t1("搜索") }}
45
+ </vxe-button>
46
+ </div>
47
+ </div>
48
+ <vxe-form
49
+ class="screen-box"
50
+ title-width="92px"
51
+ title-align="right"
52
+ :data="formData"
53
+ @submit="searchEvent"
54
+ @reset="resetEvent"
55
+ >
56
+ <vxe-form-item :title="$t1('表单分类名称') + ':'" field="name">
57
+ <template v-slot>
58
+ <el-input v-model="formData.name" size="small" clearable />
59
+ </template>
60
+ </vxe-form-item>
61
+ <vxe-button type="submit" @click="searchEvent" v-show="false"></vxe-button>
62
+ </vxe-form>
63
+ </template>
64
+ </vxe-grid>
65
+ </div>
66
+ <label id="labBtn" class="transverse">
67
+ <div class="icon">
68
+ <i class="el-icon-more"></i>
69
+ <i class="el-icon-more"></i>
70
+ </div>
71
+ </label>
72
+ <div class="multipleChoice">
73
+ <el-tooltip
74
+ :enterable="false"
75
+ effect="dark"
76
+ :content="$t1('全部删除')"
77
+ placement="top"
78
+ ><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a
79
+ ></el-tooltip>
80
+ <div class="list">
81
+ <div class="item" v-for="(checkRow, index) in checkRows" :key="index">
82
+ <p>{{ checkRow.name }}</p>
83
+ <a class="el-icon-close" @click="clearTable1Select(index)"></a>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ <span slot="footer" class="dialog-footer">
88
+ <el-button type="primary" plain class="button-sty" @click="dialogClose">
89
+ <i class="el-icon-close el-icon"></i>
90
+ {{ $t1("取 消") }}
91
+ </el-button>
92
+ <el-button type="primary" @click="dialogPrimary" class="button-sty">
93
+ <i class="el-icon-check el-icon"></i>
94
+ {{ $t1("确 定") }}
95
+ </el-button>
96
+ </span>
97
+ </el-dialog>
98
+ </template>
99
+
100
+ <script>
101
+ import mixin from "./mixins/menuKindDialog";
102
+
103
+ export default {
104
+ mixins: [mixin],
105
+ };
106
+ </script>