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.
- package/package.json +6 -2
- package/src/components/VabUpload/image-viewer.vue +442 -442
- package/src/components/VabUpload/index.vue +44 -2
- package/src/components/VabUpload/mixins.js +126 -19
- package/src/components/VabUpload/view.vue +247 -209
- package/src/components/baseTabs/mixins.js +181 -181
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +705 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +23 -12
- package/src/components/excelExport/exportItemConfigUtil.js +30 -0
- package/src/components/excelExport/mixins.js +3 -3
- package/src/components/mobile/statusTag/mixins.js +1 -61
- package/src/components/mobile/wf/content.vue +1662 -1556
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
- package/src/components/table/config.js +78 -78
- package/src/components/table/index.js +1276 -1276
- package/src/components/table/plugins/cell-area/index.js +1055 -0
- package/src/components/table/plugins/cell-area/index.scss +77 -0
- package/src/components/table/plugins/cell-area/util.js +224 -0
- package/src/components/table/tableForm.vue +330 -330
- package/src/components/table/tableFormMixin.js +318 -318
- package/src/components/table/vxeFilter/index.js +163 -163
- package/src/components/table/vxeFilter/mixin.js +316 -316
- package/src/components/wf/content.vue +1188 -1188
- package/src/components/wf/wf.js +40 -20
- package/src/components/wf/wfActionDropdown.vue +1 -1
- package/src/components/wf/wfActionItems.js +1 -1
- 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
- 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
- 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
- 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
- package/src/components/xform/form-designer/designer.js +15 -0
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +47 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -432
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +19 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +59 -3
- package/src/components/xform/form-render/container-item/data-table-mixin.js +151 -93
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +183 -32
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1688 -1700
- package/src/components/xform/form-render/index.vue +153 -147
- package/src/components/xform/form-render/indexMixin.js +12 -0
- package/src/components/xform/lang/en-US.js +10 -0
- package/src/components/xform/lang/zh-CN.js +12 -0
- package/src/components/xform/mixins/defaultHandle.js +707 -707
- package/src/components/xform/styles/h5.scss +1992 -0
- package/src/components/xform/utils/textMaskUtil.js +182 -179
- package/src/components/xform/utils/treeTableUtil.js +1292 -1265
- package/src/components/xform/utils/util.js +56 -11
- package/src/index.js +9 -4
- package/src/layout/components/extractedCode/viewDialog.vue +7 -7
- package/src/router/index.js +21 -0
- package/src/router/modules/customer.js +71 -14
- package/src/store/modules/permission.js +17 -18
- package/src/utils/pdfUtil.js +429 -429
- package/src/utils/resolveViewComponent.js +142 -16
- package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
- package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
- package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
- package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
- package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
- package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
- package/src/views/bd/project/branch/form_script/list.vue +31 -0
- package/src/views/bd/project/branch/form_template/list.vue +30 -0
- package/src/views/bd/project/branch/menu_kind/list.vue +31 -0
- package/src/views/bd/project/common/form_script/list.vue +16 -0
- package/src/views/bd/project/common/form_template/list.vue +15 -0
- package/src/views/bd/project/common/menu_kind/list.vue +15 -0
- package/src/views/bd/project/core/branchContext.js +100 -0
- package/src/views/bd/project/core/branchPage.js +78 -0
- package/src/views/bd/project/core/branchPageWrap.vue +225 -0
- package/src/views/bd/project/core/branchScope.js +44 -0
- package/src/views/bd/project/core/branchSearchPage.js +285 -0
- package/src/views/bd/project/core/branchSelect.vue +85 -0
- package/src/views/bd/project/core/branchTreeBar.vue +81 -0
- package/src/views/bd/project/core/httpBranchPatch.js +58 -0
- package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
- package/src/views/bd/project/datatable/table_model/list.vue +15 -0
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/table_model/edit.vue +1066 -1066
- package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
- package/src/views/support/form-dialog-demo/index.vue +537 -0
- package/src/views/user/file_view_ins/list.vue +3 -3
- package/src/views/user/home/index.vue +8 -6
- package/src/views/user/home/wjl/content.vue +1569 -0
- package/src/views/user/notify_message/dialog.vue +7 -5
- package/src/views/user/outLink/cc_form_view.vue +188 -0
- package/src/views/user/outLink/form_view.vue +2 -2
- package/src/views/user/outLink/index.vue +4 -4
- package/src/views/user/outLink/view.vue +3 -3
- package/src/views/user/role/edit.vue +632 -632
- package/src/views/user/role/list.vue +260 -260
- package/src/views/user/wf/iframe/index.vue +3 -3
- package/src/views/user/wf/iframe/index2.vue +3 -3
- package/src/views/user/wf/wf_manage/list.vue +1112 -1116
- package/src/views/user/wf/wf_manage/list2.vue +9 -13
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +8 -5
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +0 -106
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +0 -99
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
- package/src/utils/wf.js +0 -766
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
|
-
import {
|
|
42
|
+
import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
|
|
43
43
|
export default {
|
|
44
44
|
props: {},
|
|
45
45
|
data() {
|
|
@@ -80,7 +80,7 @@ export default {
|
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
open(row, callback) {
|
|
83
|
-
this.notifyMessageRead(row, () => {
|
|
83
|
+
this.notifyMessageRead(row, async () => {
|
|
84
84
|
let turl = row.jumpContent;
|
|
85
85
|
let wfUrl = turl.split("?")[0];
|
|
86
86
|
let param = this.getUrlParam(turl);
|
|
@@ -102,8 +102,10 @@ export default {
|
|
|
102
102
|
formCode: formCode,
|
|
103
103
|
dataId: wfDataId,
|
|
104
104
|
});
|
|
105
|
-
|
|
106
|
-
this.wfContent =
|
|
105
|
+
// 路径是常量,用字面量 import:生成普通 ImportDependency,不参与 views context
|
|
106
|
+
this.wfContent = (
|
|
107
|
+
await import("@base/views/user/form/vform/render.vue")
|
|
108
|
+
).default;
|
|
107
109
|
} else {
|
|
108
110
|
this.param = Object.assign(param, {
|
|
109
111
|
_dataId: wfDataId,
|
|
@@ -113,7 +115,7 @@ export default {
|
|
|
113
115
|
this.wfDataId = !id || typeof id == "object" ? 0 : id;
|
|
114
116
|
// this.showWfDialog = true;
|
|
115
117
|
this.showWfContent = true;
|
|
116
|
-
|
|
118
|
+
const res = await loadViewComponentAsync(url);
|
|
117
119
|
this.remoteView =
|
|
118
120
|
res.kind === "remote"
|
|
119
121
|
? {
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="cc-entry"
|
|
4
|
+
v-loading="loading"
|
|
5
|
+
:element-loading-text="loadingText"
|
|
6
|
+
element-loading-background="rgba(255, 255, 255, 0.9)"
|
|
7
|
+
>
|
|
8
|
+
<div class="cc-entry__box" v-if="errMsg">
|
|
9
|
+
<el-alert :title="errMsg" type="error" :closable="false" show-icon />
|
|
10
|
+
<div class="cc-entry__footer">
|
|
11
|
+
<el-button type="primary" size="small" @click="start">重试</el-button>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script>
|
|
18
|
+
/**
|
|
19
|
+
* 呼叫中心(CC)业务专用外链入口。
|
|
20
|
+
*
|
|
21
|
+
* 背景:业务系统(呼叫中心)只会带 appid / appkey / account / callNo 四个参数跳过来,
|
|
22
|
+
* 拿不到 form_outLinkView 所需的 tp(用户身份密文)。本页在 form_outLinkView 之前加一层:
|
|
23
|
+
* 1. 取四个参数
|
|
24
|
+
* 2. 调后台接口换取 tp
|
|
25
|
+
* 3. replace 到 /form_outLinkView,formCode 写死、dataId 固定 0
|
|
26
|
+
*
|
|
27
|
+
* 入口地址示例:
|
|
28
|
+
* https://csmuat.chinamacro.com/#/cc_form_outLinkView
|
|
29
|
+
* ?appid=6789B4BBAF71D4F9D79E0912856E04E
|
|
30
|
+
* &appkey=坐席id
|
|
31
|
+
* &account=坐席帐号
|
|
32
|
+
* &callNo=来电手机
|
|
33
|
+
*
|
|
34
|
+
* 最终跳转:
|
|
35
|
+
* #/form_outLinkView?url=/user/form/view/edit&formCode=xxx&dataId=0&tp=xxx&callNo=xxx...
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/* ------------------------------------------------------------------ *
|
|
39
|
+
* 业务定制配置:换业务页面只改这里
|
|
40
|
+
* ------------------------------------------------------------------ */
|
|
41
|
+
const CC_CONFIG = {
|
|
42
|
+
// 固定的表单视图路由,form_outLinkView 的 url 参数
|
|
43
|
+
formUrl: "/user/form/view/edit",
|
|
44
|
+
// 写死的表单编码(按实际业务表单调整)
|
|
45
|
+
formCode: "patentApply_edit",
|
|
46
|
+
// 写死的单据 ID,新建为 0
|
|
47
|
+
dataId: "0",
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** 透传给业务表单的参数(form_outLinkView 会 v-bind 到目标组件上) */
|
|
51
|
+
const PASS_THROUGH = ["callNo", "account", "agentId"];
|
|
52
|
+
|
|
53
|
+
export default {
|
|
54
|
+
name: "ccFormOutLinkView",
|
|
55
|
+
data() {
|
|
56
|
+
return {
|
|
57
|
+
loading: false,
|
|
58
|
+
loadingText: "正在获取身份信息…",
|
|
59
|
+
errMsg: "",
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
created() {
|
|
63
|
+
this.start();
|
|
64
|
+
},
|
|
65
|
+
methods: {
|
|
66
|
+
/** 大小写不敏感地取 query,业务系统对参数大小写不一定稳定 */
|
|
67
|
+
pickQuery(...names) {
|
|
68
|
+
let query = this.$route.query || {};
|
|
69
|
+
let keys = Object.keys(query);
|
|
70
|
+
for (let name of names) {
|
|
71
|
+
let key = keys.find((k) => k.toLowerCase() === name.toLowerCase());
|
|
72
|
+
if (
|
|
73
|
+
key &&
|
|
74
|
+
query[key] !== "" &&
|
|
75
|
+
query[key] !== undefined &&
|
|
76
|
+
query[key] !== null
|
|
77
|
+
) {
|
|
78
|
+
return query[key];
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return "";
|
|
82
|
+
},
|
|
83
|
+
resolveParams() {
|
|
84
|
+
return {
|
|
85
|
+
appid: this.pickQuery("appid"),
|
|
86
|
+
appkey: this.pickQuery("appkey"),
|
|
87
|
+
account: this.pickQuery("account"),
|
|
88
|
+
callNo: this.pickQuery("callNo"),
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
start() {
|
|
92
|
+
this.errMsg = "";
|
|
93
|
+
let params = this.resolveParams();
|
|
94
|
+
let missing = ["appkey", "account"].filter((key) => !params[key]);
|
|
95
|
+
if (missing.length) {
|
|
96
|
+
this.errMsg =
|
|
97
|
+
"缺少必要参数:" + missing.join("、") + ",请检查呼叫中心跳转链接";
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.getToken(params);
|
|
101
|
+
},
|
|
102
|
+
getToken(params) {
|
|
103
|
+
this.loading = true;
|
|
104
|
+
this.$http({
|
|
105
|
+
url: USER_PREFIX + "/auth/login",
|
|
106
|
+
method: "post",
|
|
107
|
+
data: {
|
|
108
|
+
custom: "true",
|
|
109
|
+
loginFlag: 1,
|
|
110
|
+
appkey: params.appkey,
|
|
111
|
+
account: params.account,
|
|
112
|
+
},
|
|
113
|
+
// 无 token 场景,且自行接管提示与遮罩
|
|
114
|
+
useToken: false,
|
|
115
|
+
isLoading: false,
|
|
116
|
+
failMsg: false,
|
|
117
|
+
errorMsg: false,
|
|
118
|
+
success: (res) => {
|
|
119
|
+
let token = res.objx;
|
|
120
|
+
if (!token) {
|
|
121
|
+
this.loading = false;
|
|
122
|
+
this.errMsg = "身份信息(token)获取失败:接口未返回 token";
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
this.redirect(params, token);
|
|
126
|
+
},
|
|
127
|
+
fail: (res) => {
|
|
128
|
+
this.loading = false;
|
|
129
|
+
this.errMsg =
|
|
130
|
+
"身份信息(token)获取失败:" +
|
|
131
|
+
((res && (res.content || res.msg)) || "接口返回异常");
|
|
132
|
+
},
|
|
133
|
+
error: (err) => {
|
|
134
|
+
this.loading = false;
|
|
135
|
+
this.errMsg =
|
|
136
|
+
"身份信息(token)获取失败:" + ((err && err.message) || "网络异常");
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
redirect(params, token) {
|
|
141
|
+
this.loadingText = "正在打开单据…";
|
|
142
|
+
let query = {
|
|
143
|
+
url: CC_CONFIG.formUrl,
|
|
144
|
+
formCode: CC_CONFIG.formCode,
|
|
145
|
+
dataId: CC_CONFIG.dataId,
|
|
146
|
+
access_token: token,
|
|
147
|
+
};
|
|
148
|
+
// 来电号码等业务参数透传给表单,供表单脚本取用
|
|
149
|
+
let source = { ...params, agentId: params.appkey };
|
|
150
|
+
PASS_THROUGH.forEach((key) => {
|
|
151
|
+
if (source[key]) {
|
|
152
|
+
query[key] = source[key];
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
let i18nLang = this.pickQuery("i18nLang");
|
|
156
|
+
if (i18nLang) {
|
|
157
|
+
query.i18nLang = i18nLang;
|
|
158
|
+
}
|
|
159
|
+
// replace:不在历史里留下本入口页,避免回退时重复换取 tp
|
|
160
|
+
// 注:vue-router 3.0.2 的 replace 不返回 Promise,不能链 .then/.catch
|
|
161
|
+
this.$router.replace({
|
|
162
|
+
path: "/form_outLinkView",
|
|
163
|
+
query: query,
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
};
|
|
168
|
+
</script>
|
|
169
|
+
|
|
170
|
+
<style lang="scss" scoped>
|
|
171
|
+
.cc-entry {
|
|
172
|
+
display: flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
justify-content: center;
|
|
175
|
+
width: 100%;
|
|
176
|
+
height: 100vh;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.cc-entry__box {
|
|
180
|
+
width: 420px;
|
|
181
|
+
max-width: 80%;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.cc-entry__footer {
|
|
185
|
+
margin-top: 12px;
|
|
186
|
+
text-align: center;
|
|
187
|
+
}
|
|
188
|
+
</style>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
11
|
import indexUtil from "@base/utils/index.js"
|
|
12
|
-
import {
|
|
12
|
+
import { loadViewComponentAsync } from "@base/utils/resolveViewComponent"
|
|
13
13
|
import {
|
|
14
14
|
setReportGlobalParam
|
|
15
15
|
} from "@base/components/xform/utils/util";
|
|
@@ -96,7 +96,7 @@ export default {
|
|
|
96
96
|
this.showWfContent = true;
|
|
97
97
|
this.initUserInfo(async () => {
|
|
98
98
|
await this.initI18n();
|
|
99
|
-
|
|
99
|
+
const res = await loadViewComponentAsync(url);
|
|
100
100
|
if (res.kind === "remote") {
|
|
101
101
|
this.$message({ message: "该单据归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
|
|
102
102
|
}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
style="width: 100%; height: calc(100vh - 40px)"
|
|
8
8
|
></iframe>
|
|
9
9
|
</div>
|
|
10
|
-
<component :is="content" v-if="type == 2"></component>
|
|
10
|
+
<component :is="content" v-if="type == 2 && content"></component>
|
|
11
11
|
</div>
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
15
|
import { getToken } from "@base/utils/auth";
|
|
16
|
-
import {
|
|
16
|
+
import { loadViewComponentAsync } from "@base/utils/resolveViewComponent";
|
|
17
17
|
|
|
18
18
|
export default {
|
|
19
19
|
name: "outLink",
|
|
@@ -24,11 +24,11 @@ export default {
|
|
|
24
24
|
type: 0,
|
|
25
25
|
};
|
|
26
26
|
},
|
|
27
|
-
mounted() {
|
|
27
|
+
async mounted() {
|
|
28
28
|
let url = this.$route.query.url;
|
|
29
29
|
let route = this.$route.query.route;
|
|
30
30
|
if (route) {
|
|
31
|
-
|
|
31
|
+
const res = await loadViewComponentAsync(route);
|
|
32
32
|
if (res.kind === "remote") {
|
|
33
33
|
this.$message({ message: "该页面归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
|
|
34
34
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<script>
|
|
11
11
|
import indexUtil from "@base/utils/index.js"
|
|
12
|
-
import {
|
|
12
|
+
import { loadViewComponentAsync } from "@base/utils/resolveViewComponent"
|
|
13
13
|
|
|
14
14
|
export default {
|
|
15
15
|
data() {
|
|
@@ -86,9 +86,9 @@ export default {
|
|
|
86
86
|
this.queryParam = queryParam;
|
|
87
87
|
this.showWfContent = true;
|
|
88
88
|
|
|
89
|
-
this.initUserInfo(() => {
|
|
89
|
+
this.initUserInfo(async () => {
|
|
90
90
|
this.initI18n();
|
|
91
|
-
|
|
91
|
+
const res = await loadViewComponentAsync(url);
|
|
92
92
|
if (res.kind === "remote") {
|
|
93
93
|
this.$message({ message: "该单据归属子应用 " + res.owner + ",请从对应入口打开", type: "warning" });
|
|
94
94
|
}
|