cloud-web-corejs 1.0.54-dev.451 → 1.0.54-dev.453
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
CHANGED
|
@@ -7,21 +7,12 @@
|
|
|
7
7
|
<el-switch v-model="optionModel.hiddenByWf" @change="changeHiddenByWf"></el-switch>
|
|
8
8
|
</el-form-item>-->
|
|
9
9
|
<el-form-item :label="i18nt('特定流程节点设置')">
|
|
10
|
-
<el-switch
|
|
11
|
-
v-model="optionModel.wfEdit"
|
|
12
|
-
@change="changeWfEdit"
|
|
13
|
-
></el-switch>
|
|
10
|
+
<el-switch v-model="optionModel.wfEdit" @change="changeWfEdit"></el-switch>
|
|
14
11
|
</el-form-item>
|
|
15
12
|
<el-form-item :label="i18nt('流程节点信息')">
|
|
16
|
-
<a
|
|
17
|
-
href="javascript:void(0);"
|
|
18
|
-
class="a-link link-oneLind"
|
|
19
|
-
@click="openDialog"
|
|
20
|
-
>
|
|
13
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog">
|
|
21
14
|
<span>{{
|
|
22
|
-
optionModel.wfConfigData && optionModel.wfConfigData.length
|
|
23
|
-
? "已维护"
|
|
24
|
-
: ""
|
|
15
|
+
optionModel.wfConfigData && optionModel.wfConfigData.length ? "已维护" : ""
|
|
25
16
|
}}</span>
|
|
26
17
|
<i class="el-icon-edit"></i>
|
|
27
18
|
</a>
|
|
@@ -30,14 +21,9 @@
|
|
|
30
21
|
<el-switch v-model="optionModel.wfModifyDataEnabled"></el-switch>
|
|
31
22
|
</el-form-item>
|
|
32
23
|
<el-form-item :label="i18nt('更改业务数据信息')">
|
|
33
|
-
<a
|
|
34
|
-
href="javascript:void(0);"
|
|
35
|
-
class="a-link link-oneLind"
|
|
36
|
-
@click="openDialog2"
|
|
37
|
-
>
|
|
24
|
+
<a href="javascript:void(0);" class="a-link link-oneLind" @click="openDialog2">
|
|
38
25
|
<span>{{
|
|
39
|
-
optionModel.wfModifyDataConfig &&
|
|
40
|
-
optionModel.wfModifyDataConfig.length
|
|
26
|
+
optionModel.wfModifyDataConfig && optionModel.wfModifyDataConfig.length
|
|
41
27
|
? "已维护"
|
|
42
28
|
: ""
|
|
43
29
|
}}</span>
|
|
@@ -71,11 +57,7 @@
|
|
|
71
57
|
stripe=""
|
|
72
58
|
style="margin-bottom: 0px"
|
|
73
59
|
>
|
|
74
|
-
<el-table-column
|
|
75
|
-
type="index"
|
|
76
|
-
width="35"
|
|
77
|
-
fixed="left"
|
|
78
|
-
></el-table-column>
|
|
60
|
+
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
|
79
61
|
<el-table-column :label="i18nt('组织编码')" width="250">
|
|
80
62
|
<template slot-scope="{ row, $index }">
|
|
81
63
|
<el-input
|
|
@@ -109,10 +91,7 @@
|
|
|
109
91
|
<base-input-number v-model="row.modelOrders" clearable></base-input-number>
|
|
110
92
|
</template>
|
|
111
93
|
</el-table-column>
|
|
112
|
-
<el-table-column
|
|
113
|
-
:label="i18nt('节点步骤(多个值用“,”隔开)')"
|
|
114
|
-
width="250"
|
|
115
|
-
>
|
|
94
|
+
<el-table-column :label="i18nt('节点步骤(多个值用“,”隔开)')" width="250">
|
|
116
95
|
<template slot-scope="{ row }">
|
|
117
96
|
<el-input v-model="row.taskSteps" clearable></el-input>
|
|
118
97
|
</template>
|
|
@@ -156,11 +135,7 @@
|
|
|
156
135
|
</el-table>
|
|
157
136
|
</div>
|
|
158
137
|
<div class="dialog-footer" slot="footer">
|
|
159
|
-
<el-button
|
|
160
|
-
@click="dialogVisible = false"
|
|
161
|
-
class="button-sty"
|
|
162
|
-
icon="el-icon-close"
|
|
163
|
-
>
|
|
138
|
+
<el-button @click="dialogVisible = false" class="button-sty" icon="el-icon-close">
|
|
164
139
|
{{ i18nt("designer.hint.cancel") }}
|
|
165
140
|
</el-button>
|
|
166
141
|
<el-button
|
|
@@ -199,17 +174,14 @@
|
|
|
199
174
|
stripe=""
|
|
200
175
|
style="margin-bottom: 0px"
|
|
201
176
|
>
|
|
202
|
-
<el-table-column
|
|
203
|
-
type="index"
|
|
204
|
-
width="35"
|
|
205
|
-
fixed="left"
|
|
206
|
-
></el-table-column>
|
|
177
|
+
<el-table-column type="index" width="35" fixed="left"></el-table-column>
|
|
207
178
|
<el-table-column :label="i18nt('流程动作')" width="150">
|
|
208
179
|
<template slot-scope="{ row }">
|
|
209
180
|
<el-select v-model="row.action">
|
|
210
181
|
<el-option value="start" label="流程启动"></el-option>
|
|
211
182
|
<el-option value="interrupt" label="流程中断"></el-option>
|
|
212
183
|
<el-option value="end" label="流程完成"></el-option>
|
|
184
|
+
<el-option value="specificAction" label="流程特定"></el-option>
|
|
213
185
|
</el-select>
|
|
214
186
|
</template>
|
|
215
187
|
</el-table-column>
|
|
@@ -403,20 +375,20 @@ export default {
|
|
|
403
375
|
type: "error",
|
|
404
376
|
message: "服务名称不能为空",
|
|
405
377
|
});
|
|
406
|
-
return
|
|
378
|
+
return;
|
|
407
379
|
}
|
|
408
380
|
if (!item.companyCodes) {
|
|
409
381
|
this.$message({
|
|
410
382
|
type: "error",
|
|
411
383
|
message: "组织编码不能为空",
|
|
412
384
|
});
|
|
413
|
-
return
|
|
385
|
+
return;
|
|
414
386
|
}
|
|
415
|
-
let modelOrders = item.modelOrders??"";
|
|
387
|
+
let modelOrders = item.modelOrders ?? "";
|
|
416
388
|
|
|
417
389
|
let serveName = item.serveName;
|
|
418
390
|
let companyCodes = item.companyCodes;
|
|
419
|
-
let key = serveName + "_" + companyCodes+ "_"+modelOrders;
|
|
391
|
+
let key = serveName + "_" + companyCodes + "_" + modelOrders;
|
|
420
392
|
if (!map[key]) {
|
|
421
393
|
map[key] = true;
|
|
422
394
|
} else {
|
|
@@ -109,8 +109,7 @@ export default {
|
|
|
109
109
|
},
|
|
110
110
|
methods: {
|
|
111
111
|
handleLoginConfig(){
|
|
112
|
-
let loginConfig = this.$store.getters.loginConfig;
|
|
113
|
-
debugger
|
|
112
|
+
let loginConfig = this.$store.getters.loginConfig || {};
|
|
114
113
|
this.loginConfig = loginConfig;
|
|
115
114
|
this.initImage();
|
|
116
115
|
this.initLoginMethod();
|
|
@@ -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
|
|