cloud-web-corejs 1.0.173 → 1.0.175
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 +2 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- package/src/components/VabUpload/view.vue +4 -2
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +1 -1
- package/src/components/excelExport/index.js +1 -2
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/table/index.js +1 -1
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- package/src/components/vb-tabs/x-tabs.vue +0 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +16 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +17 -4
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +247 -187
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +2 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +10 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +65 -4
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +131 -118
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +137 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +124 -50
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +5 -1
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/utils/format.js +14 -4
- package/src/components/xform/utils/formula-util.js +0 -4
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/Sidebar/default.vue +1421 -1266
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- package/src/utils/index.js +1 -6
- package/src/utils/vab.js +1 -1
- package/src/views/user/form/vform/designer.vue +2 -1
- package/src/views/user/outLink/index.vue +57 -18
|
@@ -104,7 +104,8 @@ export default {
|
|
|
104
104
|
this.showDesinger = true;
|
|
105
105
|
this.$nextTick(() => {
|
|
106
106
|
let formJson = this.$baseLodash.cloneDeep({
|
|
107
|
-
widgetList: this.widgetList
|
|
107
|
+
widgetList: this.widgetList,
|
|
108
|
+
formConfig:{}
|
|
108
109
|
});
|
|
109
110
|
this.$refs.designer.setFormJson(formJson);
|
|
110
111
|
})
|
|
@@ -1,57 +1,76 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div id="containt" style="margin-bottom: -4px
|
|
4
|
-
<iframe
|
|
3
|
+
<div id="containt" style="margin-bottom: -4px" v-if="type == 1">
|
|
4
|
+
<iframe
|
|
5
|
+
v-if="url"
|
|
6
|
+
:src="url"
|
|
7
|
+
style="width: 100%; height: calc(100vh - 40px)"
|
|
8
|
+
></iframe>
|
|
5
9
|
</div>
|
|
6
|
-
<component :is="content" v-if="type==2"></component>
|
|
10
|
+
<component :is="content" v-if="type == 2"></component>
|
|
7
11
|
</div>
|
|
8
12
|
</template>
|
|
9
13
|
|
|
10
14
|
<script>
|
|
11
|
-
import {getToken} from "@base/utils/auth";
|
|
15
|
+
import { getToken } from "@base/utils/auth";
|
|
12
16
|
|
|
13
17
|
export default {
|
|
14
|
-
name:
|
|
18
|
+
name: "outLink",
|
|
15
19
|
data() {
|
|
16
20
|
return {
|
|
17
21
|
url: null,
|
|
18
22
|
content: null,
|
|
19
|
-
type: 0
|
|
23
|
+
type: 0,
|
|
20
24
|
};
|
|
21
25
|
},
|
|
22
26
|
mounted() {
|
|
23
27
|
let url = this.$route.query.url;
|
|
24
28
|
let route = this.$route.query.route;
|
|
25
29
|
if (route) {
|
|
26
|
-
this.content = require(
|
|
30
|
+
this.content = require("@/views" + route).default;
|
|
27
31
|
this.type = 2;
|
|
28
32
|
} else {
|
|
29
|
-
|
|
33
|
+
let params = this.getCustomReqUrlAndCleanUrl(url);
|
|
34
|
+
let reqUrl = params.custom_req_url;
|
|
35
|
+
if (reqUrl) {
|
|
36
|
+
this.$http({
|
|
37
|
+
url: reqUrl,
|
|
38
|
+
method: `post`,
|
|
39
|
+
data: { thirdUrl: params.newUrl },
|
|
40
|
+
isLoading: true,
|
|
41
|
+
// modalStrictly: true,
|
|
42
|
+
success: (res) => {
|
|
43
|
+
this.url = res.objx;
|
|
44
|
+
this.type = 1;
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
} else if (url.indexOf("dw=true") >= 0) {
|
|
30
48
|
this.$http({
|
|
31
49
|
url: USER_PREFIX + `/dw_auth/getDwAsc`,
|
|
32
50
|
method: `post`,
|
|
33
51
|
data: {},
|
|
34
52
|
isLoading: true,
|
|
35
53
|
// modalStrictly: true,
|
|
36
|
-
success: res => {
|
|
37
|
-
this.url =
|
|
54
|
+
success: (res) => {
|
|
55
|
+
this.url =
|
|
56
|
+
url.replace("dw=true", "dw=" + res.objx.dw) + "¶m=" + res.objx.param;
|
|
38
57
|
this.type = 1;
|
|
39
|
-
}
|
|
58
|
+
},
|
|
40
59
|
});
|
|
41
|
-
}else if (url.indexOf(
|
|
60
|
+
} else if (url.indexOf("token=platform_token") >= 0) {
|
|
42
61
|
this.$http({
|
|
43
62
|
url: YX_PREFIX + `/fundPlatform/getToken`,
|
|
44
63
|
method: `post`,
|
|
45
64
|
data: {},
|
|
46
65
|
isLoading: true,
|
|
47
|
-
success: res => {
|
|
48
|
-
this.url = url.replace(
|
|
66
|
+
success: (res) => {
|
|
67
|
+
this.url = url.replace("token=platform_token", "token=" + res.objx);
|
|
49
68
|
this.type = 1;
|
|
50
|
-
}
|
|
69
|
+
},
|
|
51
70
|
});
|
|
52
|
-
} else if (url.indexOf(
|
|
71
|
+
} else if (url.indexOf("token=true") >= 0) {
|
|
53
72
|
let token = getToken();
|
|
54
|
-
this.url = url.replace(
|
|
73
|
+
this.url = url.replace("token=true", "token=" + token);
|
|
55
74
|
this.type = 1;
|
|
56
75
|
} else {
|
|
57
76
|
this.url = url;
|
|
@@ -59,7 +78,27 @@ export default {
|
|
|
59
78
|
}
|
|
60
79
|
}
|
|
61
80
|
},
|
|
62
|
-
methods: {
|
|
81
|
+
methods: {
|
|
82
|
+
getCustomReqUrlAndCleanUrl(url) {
|
|
83
|
+
// 直接使用正则表达式匹配
|
|
84
|
+
const match = url.match(/[?&]custom_req_url=([^&?#]+)/);
|
|
85
|
+
if (match) {
|
|
86
|
+
const customReqUrl = decodeURIComponent(match[1]);
|
|
87
|
+
// 移除匹配到的参数部分
|
|
88
|
+
const newUrl = url.replace(match[0], match[0].startsWith("?") ? "?" : "");
|
|
89
|
+
|
|
90
|
+
return {
|
|
91
|
+
custom_req_url: customReqUrl,
|
|
92
|
+
newUrl: newUrl.replace(/\?$/, "").replace(/\?&/, "?"),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
custom_req_url: "",
|
|
98
|
+
newUrl: url,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
},
|
|
63
102
|
};
|
|
64
103
|
</script>
|
|
65
104
|
|