cloud-web-corejs 1.0.281 → 1.1.0-dev.4

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 +6 -2
  2. package/src/components/VabUpload/image-viewer.vue +442 -442
  3. package/src/components/VabUpload/index.vue +44 -2
  4. package/src/components/VabUpload/mixins.js +126 -19
  5. package/src/components/VabUpload/view.vue +247 -209
  6. package/src/components/baseTabs/mixins.js +181 -181
  7. package/src/components/bizTab/BizBillActions.vue +129 -0
  8. package/src/components/bizTab/BizTabListPage.vue +391 -0
  9. package/src/components/bizTab/README.md +378 -0
  10. package/src/components/bizTab/billTableUtil.js +48 -0
  11. package/src/components/bizTab/billValidators.js +136 -0
  12. package/src/components/bizTab/bizBillDetailMixin.js +705 -0
  13. package/src/components/bizTab/index.js +24 -0
  14. package/src/components/excelExport/exportFieldDialog.vue +23 -12
  15. package/src/components/excelExport/exportItemConfigUtil.js +30 -0
  16. package/src/components/excelExport/mixins.js +3 -3
  17. package/src/components/mobile/statusTag/mixins.js +1 -61
  18. package/src/components/mobile/wf/content.vue +1662 -1556
  19. package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
  20. package/src/components/table/config.js +78 -78
  21. package/src/components/table/index.js +1276 -1276
  22. package/src/components/table/plugins/cell-area/index.js +1055 -0
  23. package/src/components/table/plugins/cell-area/index.scss +77 -0
  24. package/src/components/table/plugins/cell-area/util.js +224 -0
  25. package/src/components/table/tableForm.vue +330 -330
  26. package/src/components/table/tableFormMixin.js +318 -318
  27. package/src/components/table/vxeFilter/index.js +163 -163
  28. package/src/components/table/vxeFilter/mixin.js +316 -316
  29. package/src/components/wf/content.vue +1188 -1188
  30. package/src/components/wf/wf.js +40 -20
  31. package/src/components/wf/wfActionDropdown.vue +1 -1
  32. package/src/components/wf/wfActionItems.js +1 -1
  33. package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
  34. package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
  35. package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
  36. package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
  37. package/src/components/xform/form-designer/designer.js +15 -0
  38. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
  39. package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
  40. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
  41. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
  42. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
  43. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
  44. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
  45. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
  46. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
  47. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
  48. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +47 -1
  49. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
  50. package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
  51. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -0
  52. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
  53. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
  54. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
  55. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
  56. package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
  57. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +10 -10
  58. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -432
  59. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
  60. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
  61. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
  62. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +19 -5
  63. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
  64. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
  65. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
  66. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
  67. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
  68. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
  69. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +51 -0
  70. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
  71. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
  72. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
  73. package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
  74. package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
  75. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
  76. package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
  77. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
  78. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
  79. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +59 -3
  80. package/src/components/xform/form-render/container-item/data-table-mixin.js +151 -93
  81. package/src/components/xform/form-render/container-item/detail-h5-item.vue +183 -32
  82. package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
  83. package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
  84. package/src/components/xform/form-render/container-item/list-h5-item.vue +1688 -1700
  85. package/src/components/xform/form-render/index.vue +153 -147
  86. package/src/components/xform/form-render/indexMixin.js +12 -0
  87. package/src/components/xform/lang/en-US.js +10 -0
  88. package/src/components/xform/lang/zh-CN.js +12 -0
  89. package/src/components/xform/mixins/defaultHandle.js +707 -707
  90. package/src/components/xform/styles/h5.scss +1992 -0
  91. package/src/components/xform/utils/textMaskUtil.js +182 -179
  92. package/src/components/xform/utils/treeTableUtil.js +1292 -1265
  93. package/src/components/xform/utils/util.js +56 -11
  94. package/src/index.js +9 -4
  95. package/src/layout/components/extractedCode/viewDialog.vue +7 -7
  96. package/src/router/index.js +21 -0
  97. package/src/router/modules/customer.js +71 -14
  98. package/src/store/modules/permission.js +17 -18
  99. package/src/utils/pdfUtil.js +429 -429
  100. package/src/utils/resolveViewComponent.js +142 -16
  101. package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
  102. package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
  103. package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
  104. package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
  105. package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
  106. package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
  107. package/src/views/bd/project/branch/form_script/list.vue +31 -0
  108. package/src/views/bd/project/branch/form_template/list.vue +30 -0
  109. package/src/views/bd/project/branch/menu_kind/list.vue +31 -0
  110. package/src/views/bd/project/common/form_script/list.vue +16 -0
  111. package/src/views/bd/project/common/form_template/list.vue +15 -0
  112. package/src/views/bd/project/common/menu_kind/list.vue +15 -0
  113. package/src/views/bd/project/core/branchContext.js +100 -0
  114. package/src/views/bd/project/core/branchPage.js +78 -0
  115. package/src/views/bd/project/core/branchPageWrap.vue +225 -0
  116. package/src/views/bd/project/core/branchScope.js +44 -0
  117. package/src/views/bd/project/core/branchSearchPage.js +285 -0
  118. package/src/views/bd/project/core/branchSelect.vue +85 -0
  119. package/src/views/bd/project/core/branchTreeBar.vue +81 -0
  120. package/src/views/bd/project/core/httpBranchPatch.js +58 -0
  121. package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
  122. package/src/views/bd/project/datatable/table_model/list.vue +15 -0
  123. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
  124. package/src/views/bd/setting/table_model/edit.vue +1066 -1066
  125. package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
  126. package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
  127. package/src/views/demo/bizTab/bill/billConfig.js +41 -0
  128. package/src/views/demo/bizTab/bill/detail.vue +436 -0
  129. package/src/views/demo/bizTab/bill/list.vue +288 -0
  130. package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
  131. package/src/views/demo/bizTab/simple/billApi.js +123 -0
  132. package/src/views/demo/bizTab/simple/detail.vue +407 -0
  133. package/src/views/demo/bizTab/simple/list.vue +217 -0
  134. package/src/views/demo/bizTab/standalone/index.vue +121 -0
  135. package/src/views/demo/bizTab/wf/billConfig.js +44 -0
  136. package/src/views/demo/bizTab/wf/detail.vue +661 -0
  137. package/src/views/demo/bizTab/wf/list.vue +242 -0
  138. package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
  139. package/src/views/support/form-dialog-demo/index.vue +537 -0
  140. package/src/views/user/file_view_ins/list.vue +3 -3
  141. package/src/views/user/home/index.vue +8 -6
  142. package/src/views/user/home/wjl/content.vue +1569 -0
  143. package/src/views/user/notify_message/dialog.vue +7 -5
  144. package/src/views/user/outLink/cc_form_view.vue +188 -0
  145. package/src/views/user/outLink/form_view.vue +2 -2
  146. package/src/views/user/outLink/index.vue +4 -4
  147. package/src/views/user/outLink/view.vue +3 -3
  148. package/src/views/user/role/edit.vue +632 -632
  149. package/src/views/user/role/list.vue +260 -260
  150. package/src/views/user/wf/iframe/index.vue +3 -3
  151. package/src/views/user/wf/iframe/index2.vue +3 -3
  152. package/src/views/user/wf/wf_manage/list.vue +1112 -1116
  153. package/src/views/user/wf/wf_manage/list2.vue +9 -13
  154. package/src/views/user/wf/wf_manage/wfContentDialog.vue +8 -5
  155. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +0 -106
  156. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +0 -99
  157. package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
  158. package/src/utils/wf.js +0 -766
@@ -1,260 +1,260 @@
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
- <vocEditView
13
- v-if="showVocEdit"
14
- visible-key="showVocEdit"
15
- :_dataId.sync="dataId"
16
- :parent-target="_self"
17
- @reload="$reloadHandle"
18
- ></vocEditView>
19
- </el-tab-pane>
20
- <el-tab-pane :label="$t1('列表')" name="second">
21
- <div class="grid-height">
22
- <vxe-grid
23
- ref="table-m1"
24
- v-bind="vxeOption"
25
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
26
- @custom="$vxeTableUtil.customHandle"
27
- >
28
- <template #form>
29
- <div class="clearfix screen-btns">
30
- <div class="fl">
31
- <vxe-button
32
- status="primary"
33
- class="button-sty"
34
- icon="el-icon-plus"
35
- @click="openEditDialog"
36
- >
37
- {{ $t1("新增") }}
38
- </vxe-button>
39
- <base-table-export
40
- :option="{
41
- title: $t1('用户角色导出'),
42
- targetRef: 'table-m1',
43
- }"
44
- :parent-target="_self"
45
- />
46
- </div>
47
- <div class="fr">
48
- <vxe-button
49
- icon="el-icon-brush"
50
- class="button-sty"
51
- @click="resetEvent"
52
- type="text"
53
- status="primary"
54
- plain
55
- >{{ $t1("刷新") }}
56
- </vxe-button>
57
- <vxe-button
58
- status="warning"
59
- icon="el-icon-search"
60
- class="button-sty"
61
- @click="searchEvent"
62
- >
63
- {{ $t1("搜索") }}
64
- </vxe-button>
65
- </div>
66
- </div>
67
- <vxe-form
68
- ref="form"
69
- class="screen-box"
70
- title-width="92px"
71
- title-align="right"
72
- :data="formData"
73
- @submit="searchEvent"
74
- @reset="searchEvent"
75
- >
76
- <vxe-form-item :title="$t1('用户角色') + ':'" field="name">
77
- <template v-slot>
78
- <el-input v-model="formData.name" size="small" clearable />
79
- </template>
80
- </vxe-form-item>
81
- <!-- <vxe-form-item :title="$t1('角色编码')+':'" field="code">
82
- <template v-slot>
83
- <el-input v-model="formData.code" size="small" clearable/>
84
- </template>
85
- </vxe-form-item> -->
86
- </vxe-form>
87
- </template>
88
- </vxe-grid>
89
- </div>
90
- </el-tab-pane>
91
- </el-tabs>
92
- </div>
93
- </template>
94
-
95
- <script>
96
- import editView from "./edit.vue";
97
- import vocEditView from "./voc_edit.vue";
98
-
99
- export default {
100
- name: "role:list",
101
- components: {
102
- editView,
103
- vocEditView,
104
- },
105
- created() {},
106
- mounted() {
107
- this.$getBaseDicts({
108
- code: "sysType",
109
- success: ({ dicts }) => {
110
- let vocItem = (dicts || []).find((item) => item.sn === "voc");
111
- this.showVocMenuBtn = !!vocItem;
112
- this.vocMenuLabel = (vocItem && vocItem.value) || "";
113
- },
114
- }).finally(() => {
115
- this.initTableList();
116
- });
117
- },
118
- data() {
119
- return {
120
- activeName: "second",
121
- dataId: 0,
122
- showEdit: false,
123
- showVocEdit: false,
124
- showVocMenuBtn: false,
125
- vocMenuLabel: "",
126
- vxeOption: {},
127
- formData: {},
128
- };
129
- },
130
- methods: {
131
- searchEvent() {
132
- this.$refs["table-m1"].commitProxy("reload");
133
- },
134
- resetEvent() {
135
- this.formData = {};
136
- this.$refs["table-m1"].commitProxy("reload");
137
- },
138
- openEditDialog(id) {
139
- this.dataId = !id || typeof id == "object" ? "" : id;
140
- this.activeName = "first";
141
- this.showVocEdit = false;
142
- this.$openEditView("showEdit");
143
- },
144
- openVocEditDialog(id) {
145
- this.dataId = !id || typeof id == "object" ? "" : id;
146
- this.activeName = "first";
147
- this.showEdit = false;
148
- this.$openEditView("showVocEdit");
149
- },
150
- initTableList() {
151
- let tableOption = {
152
- vue: this,
153
- tableRef: "table-m1",
154
- tableName: "basic_role_list-m1",
155
- path: USER_PREFIX + "/role/listCurrentPage",
156
- param: () => {
157
- return this.formData;
158
- },
159
- columns: [
160
- {
161
- type: "checkbox",
162
- fixed: "left",
163
- width: 48,
164
- resizable: false,
165
- },
166
- {
167
- title: this.$t1("用户角色"),
168
- field: "name",
169
- width: 150,
170
- sortable: true,
171
- fixed: "left",
172
- },
173
- /* {
174
- title: this.$t1('角色编码'),
175
- field: 'code',
176
- width: 150
177
- }, */
178
- {
179
- title: this.$t1("角色描述"),
180
- field: "description",
181
- },
182
- {
183
- title: this.$t1("是否内置"),
184
- field: "systems",
185
- width: 150,
186
- slots: {
187
- default: ({ row }) => {
188
- if (row.systems) {
189
- return this.$t1("是");
190
- } else {
191
- return this.$t1("否");
192
- }
193
- },
194
- },
195
- },
196
- { title: this.$t1("所属组织"), field: "companyName", width: 150 },
197
- {
198
- field: "createDate",
199
- title: this.$t1("创建时间"),
200
- width: 150,
201
- },
202
- {
203
- width: 150,
204
- fixed: "right",
205
- title: "",
206
- sortable: false,
207
- slots: {
208
- default: ({ row }) => {
209
- return [
210
- <a
211
- href="javascript:void(0);"
212
- class="a-link"
213
- onclick={() => {
214
- this.openEditDialog(row.id);
215
- }}
216
- >
217
- <el-tooltip
218
- enterable={false}
219
- effect="dark"
220
- content={this.$t1("查看")}
221
- placement="top"
222
- popper-class="tooltip-skin"
223
- >
224
- <i class="el-icon-edit" />
225
- </el-tooltip>
226
- </a>,
227
- <a
228
- href="javascript:void(0);"
229
- class="a-link"
230
- onclick={() => {
231
- this.openVocEditDialog(row.id);
232
- }}
233
- v-show={this.showVocMenuBtn}
234
- >
235
- {this.vocMenuLabel}
236
- </a>,
237
- ];
238
- },
239
- },
240
- },
241
- ],
242
- };
243
- this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
244
- this.vxeOption = opts;
245
- });
246
- },
247
- },
248
- };
249
- </script>
250
-
251
- <style>
252
- .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-ghost,
253
- .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-chosen {
254
- background-color: #dfecfb;
255
- }
256
-
257
- .sortable-column-demo .vxe-header--row .vxe-header--column.col--fixed {
258
- cursor: no-drop;
259
- }
260
- </style>
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
+ <vocEditView
13
+ v-if="showVocEdit"
14
+ visible-key="showVocEdit"
15
+ :_dataId.sync="dataId"
16
+ :parent-target="_self"
17
+ @reload="$reloadHandle"
18
+ ></vocEditView>
19
+ </el-tab-pane>
20
+ <el-tab-pane :label="$t1('列表')" name="second">
21
+ <div class="grid-height">
22
+ <vxe-grid
23
+ ref="table-m1"
24
+ v-bind="vxeOption"
25
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
26
+ @custom="$vxeTableUtil.customHandle"
27
+ >
28
+ <template #form>
29
+ <div class="clearfix screen-btns">
30
+ <div class="fl">
31
+ <vxe-button
32
+ status="primary"
33
+ class="button-sty"
34
+ icon="el-icon-plus"
35
+ @click="openEditDialog"
36
+ >
37
+ {{ $t1("新增") }}
38
+ </vxe-button>
39
+ <base-table-export
40
+ :option="{
41
+ title: $t1('用户角色导出'),
42
+ targetRef: 'table-m1',
43
+ }"
44
+ :parent-target="_self"
45
+ />
46
+ </div>
47
+ <div class="fr">
48
+ <vxe-button
49
+ icon="el-icon-brush"
50
+ class="button-sty"
51
+ @click="resetEvent"
52
+ type="text"
53
+ status="primary"
54
+ plain
55
+ >{{ $t1("刷新") }}
56
+ </vxe-button>
57
+ <vxe-button
58
+ status="warning"
59
+ icon="el-icon-search"
60
+ class="button-sty"
61
+ @click="searchEvent"
62
+ >
63
+ {{ $t1("搜索") }}
64
+ </vxe-button>
65
+ </div>
66
+ </div>
67
+ <vxe-form
68
+ ref="form"
69
+ class="screen-box"
70
+ title-width="92px"
71
+ title-align="right"
72
+ :data="formData"
73
+ @submit="searchEvent"
74
+ @reset="searchEvent"
75
+ >
76
+ <vxe-form-item :title="$t1('用户角色') + ':'" field="name">
77
+ <template v-slot>
78
+ <el-input v-model="formData.name" size="small" clearable />
79
+ </template>
80
+ </vxe-form-item>
81
+ <!-- <vxe-form-item :title="$t1('角色编码')+':'" field="code">
82
+ <template v-slot>
83
+ <el-input v-model="formData.code" size="small" clearable/>
84
+ </template>
85
+ </vxe-form-item> -->
86
+ </vxe-form>
87
+ </template>
88
+ </vxe-grid>
89
+ </div>
90
+ </el-tab-pane>
91
+ </el-tabs>
92
+ </div>
93
+ </template>
94
+
95
+ <script>
96
+ import editView from "./edit.vue";
97
+ import vocEditView from "./voc_edit.vue";
98
+
99
+ export default {
100
+ name: "role:list",
101
+ components: {
102
+ editView,
103
+ vocEditView,
104
+ },
105
+ created() {},
106
+ mounted() {
107
+ this.$getBaseDicts({
108
+ code: "sysType",
109
+ success: ({ dicts }) => {
110
+ let vocItem = (dicts || []).find((item) => item.sn === "voc");
111
+ this.showVocMenuBtn = !!vocItem;
112
+ this.vocMenuLabel = (vocItem && vocItem.value) || "";
113
+ },
114
+ }).finally(() => {
115
+ this.initTableList();
116
+ });
117
+ },
118
+ data() {
119
+ return {
120
+ activeName: "second",
121
+ dataId: 0,
122
+ showEdit: false,
123
+ showVocEdit: false,
124
+ showVocMenuBtn: false,
125
+ vocMenuLabel: "",
126
+ vxeOption: {},
127
+ formData: {},
128
+ };
129
+ },
130
+ methods: {
131
+ searchEvent() {
132
+ this.$refs["table-m1"].commitProxy("reload");
133
+ },
134
+ resetEvent() {
135
+ this.formData = {};
136
+ this.$refs["table-m1"].commitProxy("reload");
137
+ },
138
+ openEditDialog(id) {
139
+ this.dataId = !id || typeof id == "object" ? "" : id;
140
+ this.activeName = "first";
141
+ this.showVocEdit = false;
142
+ this.$openEditView("showEdit");
143
+ },
144
+ openVocEditDialog(id) {
145
+ this.dataId = !id || typeof id == "object" ? "" : id;
146
+ this.activeName = "first";
147
+ this.showEdit = false;
148
+ this.$openEditView("showVocEdit");
149
+ },
150
+ initTableList() {
151
+ let tableOption = {
152
+ vue: this,
153
+ tableRef: "table-m1",
154
+ tableName: "basic_role_list-m1",
155
+ path: USER_PREFIX + "/role/listCurrentPage",
156
+ param: () => {
157
+ return this.formData;
158
+ },
159
+ columns: [
160
+ {
161
+ type: "checkbox",
162
+ fixed: "left",
163
+ width: 48,
164
+ resizable: false,
165
+ },
166
+ {
167
+ title: this.$t1("用户角色"),
168
+ field: "name",
169
+ width: 150,
170
+ sortable: true,
171
+ fixed: "left",
172
+ },
173
+ /* {
174
+ title: this.$t1('角色编码'),
175
+ field: 'code',
176
+ width: 150
177
+ }, */
178
+ {
179
+ title: this.$t1("角色描述"),
180
+ field: "description",
181
+ },
182
+ {
183
+ title: this.$t1("是否内置"),
184
+ field: "systems",
185
+ width: 150,
186
+ slots: {
187
+ default: ({ row }) => {
188
+ if (row.systems) {
189
+ return this.$t1("是");
190
+ } else {
191
+ return this.$t1("否");
192
+ }
193
+ },
194
+ },
195
+ },
196
+ { title: this.$t1("所属组织"), field: "companyName", width: 150 },
197
+ {
198
+ field: "createDate",
199
+ title: this.$t1("创建时间"),
200
+ width: 150,
201
+ },
202
+ {
203
+ width: 150,
204
+ fixed: "right",
205
+ title: "",
206
+ sortable: false,
207
+ slots: {
208
+ default: ({ row }) => {
209
+ return [
210
+ <a
211
+ href="javascript:void(0);"
212
+ class="a-link"
213
+ onclick={() => {
214
+ this.openEditDialog(row.id);
215
+ }}
216
+ >
217
+ <el-tooltip
218
+ enterable={false}
219
+ effect="dark"
220
+ content={this.$t1("查看")}
221
+ placement="top"
222
+ popper-class="tooltip-skin"
223
+ >
224
+ <i class="el-icon-edit" />
225
+ </el-tooltip>
226
+ </a>,
227
+ <a
228
+ href="javascript:void(0);"
229
+ class="a-link"
230
+ onclick={() => {
231
+ this.openVocEditDialog(row.id);
232
+ }}
233
+ v-show={this.showVocMenuBtn}
234
+ >
235
+ {this.vocMenuLabel}
236
+ </a>,
237
+ ];
238
+ },
239
+ },
240
+ },
241
+ ],
242
+ };
243
+ this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
244
+ this.vxeOption = opts;
245
+ });
246
+ },
247
+ },
248
+ };
249
+ </script>
250
+
251
+ <style>
252
+ .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-ghost,
253
+ .sortable-column-demo .vxe-header--row .vxe-header--column.sortable-chosen {
254
+ background-color: #dfecfb;
255
+ }
256
+
257
+ .sortable-column-demo .vxe-header--row .vxe-header--column.col--fixed {
258
+ cursor: no-drop;
259
+ }
260
+ </style>
@@ -13,7 +13,7 @@
13
13
  </template>
14
14
 
15
15
  <script>
16
- import { loadViewComponent } from "@base/utils/resolveViewComponent";
16
+ import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
17
17
  export default {
18
18
  data() {
19
19
  return {
@@ -28,7 +28,7 @@ export default {
28
28
  this.initData();
29
29
  },
30
30
  methods: {
31
- initData() {
31
+ async initData() {
32
32
  let wfDataId = this.$route.query.wfDataId;
33
33
  let wfUrl = this.$route.query.wfUrl;
34
34
 
@@ -37,7 +37,7 @@ export default {
37
37
  this.wfDataId = !id || typeof id == 'object' ? 0 : id;
38
38
  // this.showWfDialog = true;
39
39
  this.showWfContent = true;
40
- let res = loadViewComponent(url);
40
+ const res = await loadViewComponentAsync(url);
41
41
  if (res.kind === "remote") {
42
42
  this.$message({ message: "该单据归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
43
43
  }
@@ -12,7 +12,7 @@
12
12
  </template>
13
13
 
14
14
  <script>
15
- import { loadViewComponent } from "@base/utils/resolveViewComponent";
15
+ import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
16
16
  export default {
17
17
  data() {
18
18
  return {
@@ -26,7 +26,7 @@ export default {
26
26
  this.login();
27
27
  },
28
28
  methods: {
29
- initData() {
29
+ async initData() {
30
30
  let dataId = this.$route.query.dataId;
31
31
  let purl = this.$route.query.url;
32
32
  let param = this.$route.query.param;
@@ -35,7 +35,7 @@ export default {
35
35
  }
36
36
  let url = purl + '.vue';
37
37
  this.showWfContent = true;
38
- let res = loadViewComponent(url);
38
+ const res = await loadViewComponentAsync(url);
39
39
  if (res.kind === "remote") {
40
40
  this.$message({ message: "该单据归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
41
41
  }