vue2-client 1.4.29 → 1.4.31
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
{{ item.label }}
|
|
120
120
|
</a-select-option>
|
|
121
121
|
</a-select>
|
|
122
|
+
<a-icon slot="addonAfter" type="close" @click="removeApiSlotItem(index)"/>
|
|
122
123
|
</a-input>
|
|
123
124
|
</div>
|
|
124
125
|
</a-form-model-item>
|
|
@@ -402,6 +403,10 @@ export default {
|
|
|
402
403
|
this.form.apiSlotView.push({})
|
|
403
404
|
}
|
|
404
405
|
},
|
|
406
|
+
// 删除接口插槽
|
|
407
|
+
removeApiSlotItem (index) {
|
|
408
|
+
this.form.apiSlotView.splice(index, 1)
|
|
409
|
+
},
|
|
405
410
|
// 初始化组件
|
|
406
411
|
initView () {
|
|
407
412
|
this.joinArray = []
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<page-toggle-transition :disabled="animate.disabled" :animate="animate.name" :direction="animate.direction">
|
|
3
3
|
<template v-if="login">
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<div style="padding-top: 1px; background-color: #fff;">
|
|
5
|
+
<iframe
|
|
6
|
+
ref="singlepage"
|
|
7
|
+
:src="url"
|
|
8
|
+
:name="this.fullPath"
|
|
9
|
+
class="single-page-iframe"
|
|
10
|
+
@load="load">
|
|
11
|
+
</iframe>
|
|
12
|
+
</div>
|
|
11
13
|
</template>
|
|
12
14
|
</page-toggle-transition>
|
|
13
15
|
</template>
|
|
@@ -43,7 +45,7 @@ export default {
|
|
|
43
45
|
},
|
|
44
46
|
created () {
|
|
45
47
|
if (this.singlePageUrl.indexOf('sso:') !== -1) {
|
|
46
|
-
CASLogin(this.singlePageUrl.substring(4)).then(res => {
|
|
48
|
+
CASLogin(this.singlePageUrl.substring(4), true).then(res => {
|
|
47
49
|
this.url = res.redirectUrl + '?ticket=' + res.st
|
|
48
50
|
}).catch(msg => {
|
|
49
51
|
this.$message.error(msg)
|
package/src/services/api/cas.js
CHANGED
|
@@ -35,10 +35,10 @@ export function CASLoginByAuth (serviceKey) {
|
|
|
35
35
|
})
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
export function CASLogin (serviceKey,
|
|
38
|
+
export function CASLogin (serviceKey, inner) {
|
|
39
39
|
// 从第三方跳转登录
|
|
40
40
|
const tgc = getTGTCookie()
|
|
41
|
-
if (tgc
|
|
41
|
+
if (tgc) {
|
|
42
42
|
return new Promise((resolve, reject) => {
|
|
43
43
|
post(casApi.createSTByTGC, {
|
|
44
44
|
serviceKey: serviceKey,
|
|
@@ -54,7 +54,11 @@ export function CASLogin (serviceKey, ticket) {
|
|
|
54
54
|
})
|
|
55
55
|
logout().then(() => {
|
|
56
56
|
setTimeout(() => {
|
|
57
|
-
|
|
57
|
+
if (inner) {
|
|
58
|
+
window.location.href = '/login'
|
|
59
|
+
} else {
|
|
60
|
+
window.location.href = '/login?serviceKey=' + serviceKey
|
|
61
|
+
}
|
|
58
62
|
}, 1500)
|
|
59
63
|
})
|
|
60
64
|
} else {
|
package/vue.config.js
CHANGED
|
@@ -10,8 +10,8 @@ const isProd = process.env.NODE_ENV === 'production'
|
|
|
10
10
|
|
|
11
11
|
const server = 'http://121.36.106.17:8400'
|
|
12
12
|
// const local = 'http://localhost:8445/webmeter'
|
|
13
|
-
const local = 'http://123.60.214.109:8406'
|
|
14
|
-
|
|
13
|
+
// const local = 'http://123.60.214.109:8406'
|
|
14
|
+
const local = 'http://localhost:8080/webmeter'
|
|
15
15
|
|
|
16
16
|
module.exports = {
|
|
17
17
|
devServer: {
|