vue2-client 1.4.28 → 1.4.30
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
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
> 所有关于本项目的变化都在该文档里。
|
|
3
3
|
|
|
4
|
+
**1.4.30 -2022-10-11 @江超**
|
|
5
|
+
- 功能修改:
|
|
6
|
+
- 单页面模式调整样式
|
|
7
|
+
|
|
8
|
+
**1.4.29 -2022-10-10 @苗艳强**
|
|
9
|
+
- 功能修改:
|
|
10
|
+
- 修改XFormTable的selectRow事件
|
|
11
|
+
|
|
4
12
|
**1.4.28 -2022-10-08 @江超**
|
|
5
13
|
- 功能修改:
|
|
6
14
|
- 顶部导航模式增加内容宽度
|
|
@@ -9,7 +17,6 @@
|
|
|
9
17
|
- 功能修改:
|
|
10
18
|
- 修改v4登录获取信息方式
|
|
11
19
|
|
|
12
|
-
|
|
13
20
|
**1.4.26 -2022-09-29 @苗艳强**
|
|
14
21
|
- 功能修改:
|
|
15
22
|
- 售后工单页面接收到客户信息传参后还可修改
|
package/package.json
CHANGED
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</a-menu>
|
|
61
61
|
<a-button>导出 <a-icon type="down" /> </a-button>
|
|
62
62
|
</a-dropdown>
|
|
63
|
-
<slot :selectedRowKeys="selectedRowKeys" name="button"></slot>
|
|
63
|
+
<slot :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows" name="button"></slot>
|
|
64
64
|
</a-space>
|
|
65
65
|
<slot name="expand"></slot>
|
|
66
66
|
</template>
|
|
@@ -119,6 +119,8 @@ export default {
|
|
|
119
119
|
buttonState: {},
|
|
120
120
|
// 表格选择列Key集合
|
|
121
121
|
selectedRowKeys: [],
|
|
122
|
+
// 表格选择Row集合
|
|
123
|
+
selectedRows: [],
|
|
122
124
|
// 表单项集合
|
|
123
125
|
formItems: [],
|
|
124
126
|
// 表单
|
|
@@ -445,11 +447,12 @@ export default {
|
|
|
445
447
|
this.isFormShow = !this.isFormShow
|
|
446
448
|
},
|
|
447
449
|
// 控制业务操作按钮组的显示
|
|
448
|
-
selectRow (rowKeys) {
|
|
450
|
+
selectRow (rowKeys, rows) {
|
|
449
451
|
this.selectedRowKeys = rowKeys
|
|
452
|
+
this.selectedRows = rows
|
|
450
453
|
this.isModify = this.selectedRowKeys.length === 1
|
|
451
454
|
this.isDelete = this.selectedRowKeys.length > 0
|
|
452
|
-
this.$emit('selectRow', this.selectedRowKeys)
|
|
455
|
+
this.$emit('selectRow', this.selectedRowKeys, this.selectedRows)
|
|
453
456
|
},
|
|
454
457
|
// 创建临时表sql生成
|
|
455
458
|
createTempTable (defineJson) {
|
|
@@ -234,7 +234,7 @@ export default {
|
|
|
234
234
|
onSelectChange (selectedRowKeys, selectedRows) {
|
|
235
235
|
this.selectedRowKeys = selectedRowKeys
|
|
236
236
|
this.selectedRows = selectedRows
|
|
237
|
-
this.$emit('selectRow', selectedRowKeys)
|
|
237
|
+
this.$emit('selectRow', selectedRowKeys, selectedRows)
|
|
238
238
|
},
|
|
239
239
|
clearRowKeys () {
|
|
240
240
|
this.$refs.table.clearSelected()
|
|
@@ -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 {
|