cloud-web-corejs 1.0.258 → 1.0.259

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 (248) hide show
  1. package/package.json +32 -25
  2. package/src/components/VabUpload/fileLibraryDialog.vue +296 -0
  3. package/src/components/VabUpload/index.js +22 -2
  4. package/src/components/VabUpload/index.vue +242 -231
  5. package/src/components/VabUpload/mixins/fileLibraryDialog.js +1112 -0
  6. package/src/components/VabUpload/mixins.js +1971 -1829
  7. package/src/components/VabUpload/privateProfileDialog.vue +2 -2
  8. package/src/components/baseArea/index.vue +1628 -0
  9. package/src/components/baseInputExport/mixins.js +48 -31
  10. package/src/components/baseInputNumber/index.vue +9 -9
  11. package/src/components/baseTabs/index.vue +16 -8
  12. package/src/components/code-editor/async.js +29 -0
  13. package/src/components/code-editor/index.vue +93 -4
  14. package/src/components/errorMsg/index.js +10 -9
  15. package/src/components/errorMsg/mixins.js +25 -23
  16. package/src/components/excelExport/exportFieldDialog.vue +40 -18
  17. package/src/components/excelExport/index.js +62 -3
  18. package/src/components/excelExport/index.vue +2 -1
  19. package/src/components/excelExport/mixins.js +496 -340
  20. package/src/components/excelImport/index.js +69 -7
  21. package/src/components/excelImport/mixins.js +841 -9
  22. package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
  23. package/src/components/fileLibrary/fileHistoryDialog.vue +1 -1
  24. package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -298
  25. package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
  26. package/src/components/fileLibrary/filterDialog.vue +1 -1
  27. package/src/components/fileLibrary/index.vue +1109 -1110
  28. package/src/components/fileLibrary/mixins/indexMixins.js +10 -0
  29. package/src/components/fileLibrary/propertiesDialog.vue +190 -190
  30. package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
  31. package/src/components/formOplog/mixins.js +85 -80
  32. package/src/components/hiprint/view/design/index.vue +7 -2
  33. package/src/components/jsonImport/exportUtil.js +106 -0
  34. package/src/components/jsonImport/index.js +75 -50
  35. package/src/components/jsonImport/mixins.js +350 -348
  36. package/src/components/langImport/mixins.js +502 -500
  37. package/src/components/micro-view-host/contract.js +66 -0
  38. package/src/components/micro-view-host/index.vue +148 -0
  39. package/src/components/mobile/file/index.vue +10 -0
  40. package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +51 -47
  41. package/src/components/obsUpload/index.vue +234 -231
  42. package/src/components/obsUpload/mixins.js +1542 -1476
  43. package/src/components/onlineTalk/talkUserDialog.vue +1 -1
  44. package/src/components/table/CellSlot.vue +12 -10
  45. package/src/components/table/config.js +74 -1
  46. package/src/components/table/index.js +1208 -1
  47. package/src/components/table/tableFormMixin.js +285 -1
  48. package/src/components/table/util/index.js +38 -40
  49. package/src/components/table/vxeFilter/index.js +153 -2
  50. package/src/components/table/vxeFilter/mixin.js +305 -3
  51. package/src/components/tempStorage/tempStorageDialog.vue +1 -1
  52. package/src/components/vb-tabs/x-tabs.vue +10 -5
  53. package/src/components/wf/addTaskUserdialog.vue +1 -1
  54. package/src/components/wf/mixins/setCandidateDialog.js +217 -217
  55. package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
  56. package/src/components/wf/wf.js +2224 -2203
  57. package/src/components/wf/wfUtil.js +2 -1
  58. 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" +173 -0
  59. package/src/components/xform/form-designer/designer.js +1 -0
  60. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +110 -1
  61. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +282 -1
  62. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -0
  63. package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +119 -0
  64. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +14 -0
  65. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +18 -73
  66. package/src/components/xform/form-designer/form-widget/field-widget/mixins/autocomplete-mixin.js +451 -0
  67. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +157 -0
  68. package/src/components/xform/form-designer/form-widget/field-widget/mixins/utc-transform-mixin.js +75 -0
  69. package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +112 -0
  70. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +149 -0
  71. package/src/components/xform/form-designer/form-widget/indexMixin.js +179 -1
  72. package/src/components/xform/form-designer/indexMixin.js +823 -1
  73. package/src/components/xform/form-designer/refMixinDesign.js +27 -1
  74. package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +241 -0
  75. package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +601 -0
  76. package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -0
  77. package/src/components/xform/form-designer/setting-panel/index.vue +314 -309
  78. package/src/components/xform/form-designer/setting-panel/indexMixin.js +324 -1
  79. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +8 -7
  80. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +8 -7
  81. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -0
  82. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +2 -2
  83. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +25 -0
  84. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -0
  85. package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +20 -0
  86. package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +199 -0
  87. package/src/components/xform/form-designer/setting-panel/property-editor/field-baseAttachment/baseAttachment-fileTypes-editor.vue +23 -0
  88. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/showAllLevels-editor.vue +21 -0
  89. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +157 -0
  90. package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +55 -0
  91. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/vabUpload-fileTypes-editor.vue +23 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesEditorMixin.js +116 -0
  93. package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -0
  94. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +3 -3
  95. package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +19 -0
  96. package/src/components/xform/form-designer/setting-panel/widgetPropertyDialogMixin.js +186 -0
  97. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +566 -1
  98. package/src/components/xform/form-designer/widget-panel/indexMixin.js +290 -1
  99. package/src/components/xform/form-render/compareDelList.vue +83 -0
  100. package/src/components/xform/form-render/compareView.vue +76 -0
  101. package/src/components/xform/form-render/container-item/containerItemMixin.js +378 -1
  102. package/src/components/xform/form-render/container-item/data-table-mixin.js +35 -0
  103. package/src/components/xform/form-render/container-item/detail-item.vue +41 -0
  104. package/src/components/xform/form-render/container-item/dynamicFieldEngine.js +285 -0
  105. package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +416 -0
  106. package/src/components/xform/form-render/container-item/list-h5-item.vue +12 -0
  107. package/src/components/xform/form-render/dynamicDialogRender.js +195 -1
  108. package/src/components/xform/form-render/dynamicDrawerRender.js +229 -0
  109. package/src/components/xform/form-render/formDynamicFieldMixin.js +131 -0
  110. package/src/components/xform/form-render/refMixin.js +29 -1
  111. package/src/components/xform/mixins/scriptHttp.js +172 -1
  112. package/src/components/xform/utils/dynamicSchemaUtil.js +361 -0
  113. package/src/components/xform/utils/tableCellValidateUtil.js +148 -0
  114. package/src/components/xform/utils/textMaskUtil.js +179 -0
  115. package/src/components/xform/utils/treeTableUtil.js +1265 -0
  116. package/src/components/xform/utils/util.js +1 -0
  117. package/src/components/xform/utils/validators.js +133 -1
  118. package/src/directive/LimitNumber/index.js +143 -124
  119. package/src/microRouter/index.js +447 -0
  120. package/src/mixins/tableTree/index.js +77 -14
  121. package/src/permission.js +132 -107
  122. package/src/public-path.js +38 -0
  123. package/src/router/index.js +3 -3
  124. package/src/store/modules/micro.js +57 -0
  125. package/src/store/modules/permission.js +535 -371
  126. package/src/store/modules/tagsView.js +38 -21
  127. package/src/store/modules/user.js +409 -370
  128. package/src/utils/aes.js +9 -3
  129. package/src/utils/auth.js +1 -1
  130. package/src/utils/componentDialog.js +162 -40
  131. package/src/utils/global.js +35 -34
  132. package/src/utils/index.js +579 -579
  133. package/src/utils/keepAlive.js +8 -4
  134. package/src/utils/lazyPlugin.js +66 -0
  135. package/src/utils/menuAdapter.js +277 -0
  136. package/src/utils/repeatOpen.js +48 -0
  137. package/src/utils/request.js +417 -395
  138. package/src/utils/resolveViewComponent.js +203 -0
  139. package/src/utils/vab.js +14 -3
  140. package/src/utils/validate.js +104 -106
  141. package/src/views/bd/setting/bd_attach_setting/dialog.vue +1 -1
  142. package/src/views/bd/setting/bd_attach_setting/list.vue +1 -1
  143. package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
  144. package/src/views/bd/setting/bd_company_env/list.vue +1 -1
  145. package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +488 -489
  146. package/src/views/bd/setting/form_import_log/list.vue +1 -1
  147. package/src/views/bd/setting/form_script/dialog.vue +1 -1
  148. package/src/views/bd/setting/form_script/form_list.vue +174 -166
  149. package/src/views/bd/setting/form_script/list.vue +1 -1
  150. package/src/views/bd/setting/form_script/list1.vue +1 -1
  151. package/src/views/bd/setting/form_script/mixins/form_list.js +330 -322
  152. package/src/views/bd/setting/form_template/dialog.vue +1 -1
  153. package/src/views/bd/setting/form_template/formDesignerDialog.vue +172 -171
  154. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +1 -1
  155. package/src/views/bd/setting/form_template/itemList.vue +1 -1
  156. package/src/views/bd/setting/form_template/list.vue +3 -3
  157. package/src/views/bd/setting/form_template/mixins/edit.js +3 -3
  158. package/src/views/bd/setting/form_template/mixins/list.js +3 -3
  159. package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
  160. package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -3
  161. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
  162. package/src/views/bd/setting/form_template/wf_list.vue +3 -3
  163. package/src/views/bd/setting/logic_param/edit.vue +20 -20
  164. package/src/views/bd/setting/logic_param/list.vue +1 -1
  165. package/src/views/bd/setting/menu_kind/dialog.vue +1 -1
  166. package/src/views/bd/setting/menu_kind/list.vue +1 -1
  167. package/src/views/bd/setting/push_data/list.vue +1 -1
  168. package/src/views/bd/setting/push_data_h/list.vue +1 -1
  169. package/src/views/bd/setting/request_async_setting/list.vue +1 -1
  170. package/src/views/bd/setting/request_setting/list.vue +1 -1
  171. package/src/views/bd/setting/table_model/dialog.vue +1 -1
  172. package/src/views/bd/setting/table_model/list.vue +1 -1
  173. package/src/views/bd/setting/table_model/zdDialog.vue +1 -1
  174. package/src/views/user/access_log/list.vue +1 -1
  175. package/src/views/user/access_log/list2.vue +1 -1
  176. package/src/views/user/api_request/list.vue +1 -1
  177. package/src/views/user/area/dialog.vue +1 -1
  178. package/src/views/user/area/list.vue +1 -1
  179. package/src/views/user/bill_setting/list.vue +1 -1
  180. package/src/views/user/bill_setting/userDialog.vue +1 -1
  181. package/src/views/user/code_rules/list.vue +1 -1
  182. package/src/views/user/commMenu/index.vue +2 -2
  183. package/src/views/user/common_attribute/list.vue +2 -2
  184. package/src/views/user/common_script/list.vue +1 -1
  185. package/src/views/user/company_info/dialog.vue +1 -1
  186. package/src/views/user/country/dialog.vue +1 -1
  187. package/src/views/user/country/list.vue +1 -1
  188. package/src/views/user/data_type_setting/dialog.vue +1 -1
  189. package/src/views/user/extend_datasource/dialog.vue +4 -1
  190. package/src/views/user/extend_datasource/edit.vue +2 -1
  191. package/src/views/user/extend_datasource/list.vue +4 -1
  192. package/src/views/user/fieldTranslation/list.vue +1 -1
  193. package/src/views/user/field_values_invisible/list.vue +1 -1
  194. package/src/views/user/file_type/list.vue +1 -1
  195. package/src/views/user/file_view_area/list.vue +1 -1
  196. package/src/views/user/file_view_ins/list.vue +22 -1
  197. package/src/views/user/form/view/list.vue +64 -1
  198. package/src/views/user/groups/dialog.vue +1 -1
  199. package/src/views/user/groups/list.vue +1 -1
  200. package/src/views/user/home/default.vue +2 -2
  201. package/src/views/user/home/default2.vue +1158 -1148
  202. package/src/views/user/home/index.vue +3 -10
  203. package/src/views/user/lang_tag/dialog.vue +1 -1
  204. package/src/views/user/lang_tag/list.vue +1 -1
  205. package/src/views/user/language_setting/list.vue +1 -1
  206. package/src/views/user/login/default.vue +0 -8
  207. package/src/views/user/login/indexMixin.js +547 -556
  208. package/src/views/user/menu/list.vue +25 -2
  209. package/src/views/user/menuFallback/index.vue +123 -0
  210. package/src/views/user/mobile_menu/list.vue +1 -1
  211. package/src/views/user/notify_message/dialog.vue +22 -1
  212. package/src/views/user/notify_message/list.vue +1 -1
  213. package/src/views/user/notify_template/list.vue +1 -1
  214. package/src/views/user/notify_template/list2.vue +1 -1
  215. package/src/views/user/oplog/list.vue +1 -1
  216. package/src/views/user/outLink/form_view.vue +5 -14
  217. package/src/views/user/outLink/index.vue +6 -1
  218. package/src/views/user/outLink/view.vue +5 -13
  219. package/src/views/user/position/dialog.vue +1 -1
  220. package/src/views/user/position/list.vue +1 -1
  221. package/src/views/user/project_tag/dialog.vue +1 -1
  222. package/src/views/user/project_tag/list.vue +1 -1
  223. package/src/views/user/push_setting/list.vue +1 -1
  224. package/src/views/user/request_setting/list.vue +1 -1
  225. package/src/views/user/role/dialog.vue +1 -1
  226. package/src/views/user/role/list.vue +1 -1
  227. package/src/views/user/sale_org/dialog.vue +1 -1
  228. package/src/views/user/sale_org/list.vue +1 -1
  229. package/src/views/user/system_notice/list.vue +1 -1
  230. package/src/views/user/system_parameter/list.vue +1 -1
  231. package/src/views/user/user/dialog.vue +1 -1
  232. package/src/views/user/user/edit.vue +306 -159
  233. package/src/views/user/user/form_dialog.vue +1 -1
  234. package/src/views/user/user/form_list.vue +1 -1
  235. package/src/views/user/user/list.vue +2 -2
  236. package/src/views/user/user_log_classify/list.vue +1 -1
  237. package/src/views/user/wf/iframe/index.vue +6 -1
  238. package/src/views/user/wf/iframe/index2.vue +6 -1
  239. package/src/views/user/wf/wfReport/index.vue +12 -6
  240. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -2
  241. package/src/views/user/wf/wf_manage/list.vue +97 -24
  242. package/src/views/user/wf/wf_manage/list2.vue +875 -0
  243. package/src/views/user/wf/wf_manage/wfContentDialog.vue +23 -1
  244. package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
  245. package/src/views/user/wf/wf_obj_config/list.vue +1 -1
  246. package/src/views/user/wf/wf_obj_config/list_form.vue +1 -1
  247. package/src/views/user/wf/wf_transfer_setting/list.vue +1 -1
  248. package/src/views/user/workbench_menu/list.vue +1 -1
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
  <div class="fr">
19
19
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
20
- plain>{{ $t1('重置') }}
20
+ plain>{{ $t1('刷新') }}
21
21
  </vxe-button>
22
22
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
23
23
  {{ $t1('搜索') }}
@@ -351,7 +351,7 @@ export default {
351
351
  treeNodeUrl: USER_PREFIX + '/menu/listChildren',
352
352
  editSaveUrl: USER_PREFIX + '/menu/save',
353
353
  editDefaultRow: () => {
354
- return {enabled: true, type: this.menuType,checkPermission: 0};
354
+ return {enabled: true, type: this.menuType,checkPermission: 0, repeatOpen: false};
355
355
  },
356
356
  param: () => {
357
357
  return this.formData;
@@ -476,6 +476,29 @@ export default {
476
476
  }
477
477
  }
478
478
  },
479
+ {
480
+ field: 'repeatOpen',
481
+ title: this.$t1('是否可重复打开'),
482
+ width: 150,
483
+ editRender: {},
484
+ slots: {
485
+ default: ({row}) => {
486
+ if (row.repeatOpen) {
487
+ return [<div class="txt-status">{this.$t1('启用')}</div>];
488
+ } else {
489
+ return [<div class="txt-status s-3">{this.$t1('禁用')}</div>];
490
+ }
491
+ },
492
+ edit: ({row}) => {
493
+ return [
494
+ <el-select v-model={row.repeatOpen}>
495
+ <el-option value={true} label={this.$t1('启用')}></el-option>
496
+ <el-option value={false} label={this.$t1('禁用')}></el-option>
497
+ </el-select>
498
+ ]
499
+ }
500
+ }
501
+ },
479
502
  // { field: 'treePathName', title: '上级菜单', width: 200 },
480
503
  {field: 'orders', title: this.$t1('序号'), width: 100, editRender: {name: 'input'}},
481
504
  {
@@ -0,0 +1,123 @@
1
+ <template>
2
+ <div class="menu-fallback">
3
+ <div class="menu-fallback-box">
4
+ <i
5
+ class="menu-fallback-icon"
6
+ :class="foreignApp ? 'el-icon-position' : 'el-icon-warning-outline'"
7
+ ></i>
8
+ <div class="menu-fallback-title">{{ menuTitle }}</div>
9
+ <div class="menu-fallback-msg">{{ message }}</div>
10
+ <div v-if="detail" class="menu-fallback-detail">{{ detail }}</div>
11
+ </div>
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import settings from "@/settings";
17
+ import { getOwnerSegment, BASE_SEGMENT } from "@base/utils/menuAdapter";
18
+
19
+ export default {
20
+ name: "menuFallback",
21
+ props: {
22
+ componentPath: String,
23
+ loadError: String,
24
+ },
25
+ computed: {
26
+ menuTitle() {
27
+ let meta = (this.$route && this.$route.meta) || {};
28
+ return meta.title || (this.$route && this.$route.path) || "";
29
+ },
30
+ ownerSegment() {
31
+ return getOwnerSegment((this.$route && this.$route.path) || "");
32
+ },
33
+ registryAppCodes() {
34
+ let permission = (this.$store && this.$store.state.permission) || {};
35
+ return permission.registryAppCodes || [];
36
+ },
37
+ foreignApp() {
38
+ // 只有 /micro/<appCode> 命中注册表里的别家 appCode 才算"归属别家应用";
39
+ // 未命中(含注册表未配置)一律按组件加载失败处理,不误导去主平台
40
+ let seg = this.ownerSegment;
41
+ let own = settings.appCode || "";
42
+ return (
43
+ !!seg &&
44
+ seg !== BASE_SEGMENT &&
45
+ seg !== own &&
46
+ this.registryAppCodes.indexOf(seg) !== -1
47
+ );
48
+ },
49
+ message() {
50
+ if (this.foreignApp) {
51
+ if (!(settings.appCode || "")) {
52
+ // 主站视角:归属子应用的菜单本应委派 qiankun 渲染,走到本地加载即为注册/部署异常
53
+ return (
54
+ this.$t1("该菜单归属子应用") +
55
+ "「" +
56
+ this.ownerSegment +
57
+ "」" +
58
+ this.$t1(",加载失败,请检查应用注册表与子应用部署")
59
+ );
60
+ }
61
+ return (
62
+ this.$t1("该菜单归属应用") +
63
+ "「" +
64
+ this.ownerSegment +
65
+ "」" +
66
+ this.$t1(",当前应用未部署对应页面,请在主平台中访问")
67
+ );
68
+ }
69
+ return this.$t1("页面组件加载失败,请检查菜单配置或应用注册表");
70
+ },
71
+ detail() {
72
+ let parts = [];
73
+ if (this.componentPath) {
74
+ parts.push(this.componentPath);
75
+ }
76
+ if (this.loadError && !this.foreignApp) {
77
+ parts.push(this.loadError);
78
+ }
79
+ return parts.join(" | ");
80
+ },
81
+ },
82
+ };
83
+ </script>
84
+
85
+ <style lang="scss" scoped>
86
+ .menu-fallback {
87
+ display: flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ min-height: 320px;
91
+ height: 100%;
92
+
93
+ .menu-fallback-box {
94
+ text-align: center;
95
+ padding: 32px;
96
+ color: #606266;
97
+ }
98
+
99
+ .menu-fallback-icon {
100
+ font-size: 48px;
101
+ color: #c0c4cc;
102
+ }
103
+
104
+ .menu-fallback-title {
105
+ margin-top: 16px;
106
+ font-size: 16px;
107
+ font-weight: 600;
108
+ color: #303133;
109
+ }
110
+
111
+ .menu-fallback-msg {
112
+ margin-top: 8px;
113
+ font-size: 14px;
114
+ }
115
+
116
+ .menu-fallback-detail {
117
+ margin-top: 12px;
118
+ font-size: 12px;
119
+ color: #909399;
120
+ word-break: break-all;
121
+ }
122
+ }
123
+ </style>
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  <div class="fr">
16
16
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
17
- plain>{{ $t1('重置') }}
17
+ plain>{{ $t1('刷新') }}
18
18
  </vxe-button>
19
19
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
20
20
  {{ $t1('搜索') }}
@@ -25,11 +25,21 @@
25
25
  :parent-target="_self"
26
26
  @reload="$reloadHandle"
27
27
  ></component>
28
+ <micro-view-host
29
+ v-else-if="showWfContent && remoteView"
30
+ :owner="remoteView.owner"
31
+ :target-path="remoteView.targetPath"
32
+ :biz-params="remoteView.bizParams"
33
+ :view-meta="remoteView.viewMeta"
34
+ @reload="$reloadHandle"
35
+ @close="showWfContent = false"
36
+ ></micro-view-host>
28
37
  </div>
29
38
  </el-dialog>
30
39
  </template>
31
40
 
32
41
  <script>
42
+ import { loadViewComponent } from "@base/utils/resolveViewComponent";
33
43
  export default {
34
44
  props: {},
35
45
  data() {
@@ -38,6 +48,7 @@ export default {
38
48
  wfUrl2: "",
39
49
  showWfContent: true,
40
50
  wfContent: null,
51
+ remoteView: null,
41
52
  wfDataId: "",
42
53
  param: {},
43
54
  };
@@ -102,7 +113,17 @@ export default {
102
113
  this.wfDataId = !id || typeof id == "object" ? 0 : id;
103
114
  // this.showWfDialog = true;
104
115
  this.showWfContent = true;
105
- this.wfContent = require("@/views" + url).default;
116
+ let res = loadViewComponent(url);
117
+ this.remoteView =
118
+ res.kind === "remote"
119
+ ? {
120
+ owner: res.owner,
121
+ targetPath: res.targetPath,
122
+ bizParams: this.param,
123
+ viewMeta: { visibleKey: "showWfContent", _isNotifyMessage: true },
124
+ }
125
+ : null;
126
+ this.wfContent = res.component;
106
127
  }
107
128
  this.showWfDialog2 = true;
108
129
 
@@ -48,7 +48,7 @@
48
48
  </div>
49
49
  <div class="fr">
50
50
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
51
- plain>{{ $t1('重置') }}
51
+ plain>{{ $t1('刷新') }}
52
52
  </vxe-button>
53
53
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
54
54
  {{ $t1('搜索') }}
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div class="fr">
22
22
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
23
+ plain>{{ $t1('刷新') }}
24
24
  </vxe-button>
25
25
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
26
  {{ $t1('搜索') }}
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div class="fr">
22
22
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
23
+ plain>{{ $t1('刷新') }}
24
24
  </vxe-button>
25
25
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
26
  {{ $t1('搜索') }}
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
  <div class="fr">
19
19
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
20
- plain>{{ $t1('重置') }}
20
+ plain>{{ $t1('刷新') }}
21
21
  </vxe-button>
22
22
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
23
23
  {{ $t1('搜索') }}
@@ -9,6 +9,7 @@
9
9
 
10
10
  <script>
11
11
  import indexUtil from "@base/utils/index.js"
12
+ import { loadViewComponent } from "@base/utils/resolveViewComponent"
12
13
  import {
13
14
  setReportGlobalParam
14
15
  } from "@base/components/xform/utils/util";
@@ -93,23 +94,13 @@ export default {
93
94
  let url = purl + '.vue';
94
95
  this.queryParam = queryParam;
95
96
  this.showWfContent = true;
96
- // this.wfContent = require('@/views' + url).default;
97
- let t = "@base/views";
98
- let urlArr = [
99
- '/user/bill_setting/h5_view.vue',
100
- '/user/form/view/list.vue',
101
- '/user/form/view/edit.vue'
102
- ]
103
97
  this.initUserInfo(async () => {
104
98
  await this.initI18n();
105
- if (urlArr.includes(url)) {
106
- this.wfContent = require('@base/views' + url).default;
107
- } else if (url.startsWith(t)) {
108
- let path = url.slice(t.length);
109
- this.wfContent = require('@base/views' + path).default;
110
- } else {
111
- this.wfContent = require('@/views' + url).default;
99
+ let res = loadViewComponent(url);
100
+ if (res.kind === "remote") {
101
+ this.$message({ message: "该单据归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
112
102
  }
103
+ this.wfContent = res.component;
113
104
  })
114
105
  },
115
106
  initUserInfo(callback) {
@@ -13,6 +13,7 @@
13
13
 
14
14
  <script>
15
15
  import { getToken } from "@base/utils/auth";
16
+ import { loadViewComponent } from "@base/utils/resolveViewComponent";
16
17
 
17
18
  export default {
18
19
  name: "outLink",
@@ -27,7 +28,11 @@ export default {
27
28
  let url = this.$route.query.url;
28
29
  let route = this.$route.query.route;
29
30
  if (route) {
30
- this.content = require("@/views" + route).default;
31
+ let res = loadViewComponent(route);
32
+ if (res.kind === "remote") {
33
+ this.$message({ message: "该页面归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
34
+ }
35
+ this.content = res.component;
31
36
  this.type = 2;
32
37
  } else {
33
38
  let params = this.getCustomReqUrlAndCleanUrl(url);
@@ -9,6 +9,7 @@
9
9
 
10
10
  <script>
11
11
  import indexUtil from "@base/utils/index.js"
12
+ import { loadViewComponent } from "@base/utils/resolveViewComponent"
12
13
 
13
14
  export default {
14
15
  data() {
@@ -85,22 +86,13 @@ export default {
85
86
  this.queryParam = queryParam;
86
87
  this.showWfContent = true;
87
88
 
88
- let t = "@base/views";
89
- let urlArr = [
90
- '/user/bill_setting/h5_view.vue',
91
- '/user/form/view/list.vue',
92
- '/user/form/view/edit.vue'
93
- ]
94
89
  this.initUserInfo(() => {
95
90
  this.initI18n();
96
- if (urlArr.includes(url)) {
97
- this.wfContent = require('@base/views' + url).default;
98
- } else if (url.startsWith(t)) {
99
- let path = url.slice(t.length);
100
- this.wfContent = require('@base/views' + path).default;
101
- } else {
102
- this.wfContent = require('@/views' + url).default;
91
+ let res = loadViewComponent(url);
92
+ if (res.kind === "remote") {
93
+ this.$message({ message: "该单据归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
103
94
  }
95
+ this.wfContent = res.component;
104
96
  })
105
97
  },
106
98
  initUserInfo(callback) {
@@ -27,7 +27,7 @@
27
27
  <div class="clearfix screen-btns">
28
28
  <div class="fr">
29
29
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
- plain>{{ $t1('重置') }}
30
+ plain>{{ $t1('刷新') }}
31
31
  </vxe-button>
32
32
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
33
33
  {{ $t1('搜索') }}
@@ -19,7 +19,7 @@
19
19
  </div>
20
20
  <div class="fr">
21
21
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
22
- plain>{{ $t1('重置') }}
22
+ plain>{{ $t1('刷新') }}
23
23
  </vxe-button>
24
24
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
25
25
  {{ $t1('搜索') }}
@@ -27,7 +27,7 @@
27
27
  <div class="clearfix screen-btns">
28
28
  <div class="fr">
29
29
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
- plain>{{ $t1('重置') }}
30
+ plain>{{ $t1('刷新') }}
31
31
  </vxe-button>
32
32
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{
33
33
  $t1('搜索')
@@ -20,7 +20,7 @@
20
20
  </template>
21
21
  <template #buttonRight>
22
22
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
23
+ plain>{{ $t1('刷新') }}
24
24
  </vxe-button>
25
25
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
26
  {{ $t1('搜索') }}
@@ -18,7 +18,7 @@
18
18
  </div>
19
19
  <div class="fr">
20
20
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
21
- plain>{{$t1('重置')}}
21
+ plain>{{$t1('刷新')}}
22
22
  </vxe-button>
23
23
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
24
24
  {{$t1('搜索')}}
@@ -17,7 +17,7 @@
17
17
  </div>
18
18
  <div class="fr">
19
19
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
20
- plain>{{$t1('重置')}}
20
+ plain>{{$t1('刷新')}}
21
21
  </vxe-button>
22
22
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
23
23
  {{$t1('搜索')}}
@@ -33,7 +33,7 @@
33
33
  type="text"
34
34
  status="primary"
35
35
  plain
36
- >{{ $t1("重置") }}
36
+ >{{ $t1("刷新") }}
37
37
  </vxe-button>
38
38
  <vxe-button
39
39
  status="warning"
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div class="fr">
22
22
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
23
+ plain>{{ $t1('刷新') }}
24
24
  </vxe-button>
25
25
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
26
  {{ $t1('搜索') }}
@@ -27,7 +27,7 @@
27
27
  <div class="clearfix screen-btns">
28
28
  <div class="fr">
29
29
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
- plain>{{ $t1('重置') }}
30
+ plain>{{ $t1('刷新') }}
31
31
  </vxe-button>
32
32
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
33
33
  {{ $t1('搜索') }}
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  <div class="fr">
15
15
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
16
- plain>{{ $t1('重置') }}
16
+ plain>{{ $t1('刷新') }}
17
17
  </vxe-button>
18
18
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
19
19
  {{ $t1('搜索') }}
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div class="fr">
22
22
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
23
+ plain>{{ $t1('刷新') }}
24
24
  </vxe-button>
25
25
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
26
  {{ $t1('搜索') }}
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <div class="fr">
22
22
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
23
- plain>{{ $t1('重置') }}
23
+ plain>{{ $t1('刷新') }}
24
24
  </vxe-button>
25
25
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
26
26
  {{ $t1('搜索') }}
@@ -27,7 +27,7 @@
27
27
  <tableForm :formData.sync="formData" @searchEvent="searchEvent" @resetEvent="resetEvent">
28
28
  <template #buttonRight>
29
29
  <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
30
- plain>{{ $t1('重置') }}
30
+ plain>{{ $t1('刷新') }}
31
31
  </vxe-button>
32
32
  <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
33
33
  {{ $t1('搜索') }}