vue2-client 1.5.12 → 1.5.13
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
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
ref="xForm"
|
|
11
11
|
style="margin-bottom: 14px;"
|
|
12
12
|
@onSubmit="onSearchSubmit">
|
|
13
|
-
<slot
|
|
13
|
+
<template slot="formBtnExpand">
|
|
14
|
+
<slot name="formBtnExpand"></slot>
|
|
15
|
+
</template>
|
|
14
16
|
</x-form>
|
|
15
17
|
<x-table
|
|
16
18
|
ref="xTable"
|
|
@@ -25,18 +27,18 @@
|
|
|
25
27
|
@selectRow="selectRow"
|
|
26
28
|
@afterQuery="afterQuery"
|
|
27
29
|
@tempTableEdit="tempTableEdit">
|
|
28
|
-
<template slot="button">
|
|
29
|
-
<slot name="button"></slot>
|
|
30
|
+
<template slot="button" slot-scope="{selectedRowKeys, selectedRows}">
|
|
31
|
+
<slot name="button" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
30
32
|
</template>
|
|
31
|
-
<template slot="rightBtnExpand">
|
|
32
|
-
<slot name="rightBtnExpand"></slot>
|
|
33
|
+
<template slot="rightBtnExpand" slot-scope="{selectedRowKeys, selectedRows}">
|
|
34
|
+
<slot name="rightBtnExpand" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
33
35
|
<a-button @click="toggleIsFormShow">
|
|
34
36
|
<a-icon :style="iconStyle" type="vertical-align-top"/>
|
|
35
37
|
</a-button>
|
|
36
38
|
</template>
|
|
37
39
|
<!-- 底部插槽 -->
|
|
38
|
-
<template slot="footer">
|
|
39
|
-
<slot name="footer"></slot>
|
|
40
|
+
<template slot="footer" slot-scope="{selectedRowKeys, selectedRows}">
|
|
41
|
+
<slot name="footer" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
40
42
|
</template>
|
|
41
43
|
</x-table>
|
|
42
44
|
</div>
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
</a-menu>
|
|
31
31
|
<a-button>导出 <a-icon type="down" /> </a-button>
|
|
32
32
|
</a-dropdown>
|
|
33
|
-
<slot :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"
|
|
33
|
+
<slot name="button" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
34
34
|
</a-space>
|
|
35
35
|
</span>
|
|
36
36
|
</a-col>
|
|
37
37
|
<a-col>
|
|
38
38
|
<span :style="{ float: 'right', overflow: 'hidden', marginBottom: '8px' }">
|
|
39
39
|
<a-button-group>
|
|
40
|
-
<slot name="rightBtnExpand"></slot>
|
|
40
|
+
<slot name="rightBtnExpand" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
41
41
|
<a-button @click="refresh(true)">
|
|
42
42
|
<a-icon :style="iconStyle" type="reload" />
|
|
43
43
|
</a-button>
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
</span>
|
|
84
84
|
</template>
|
|
85
85
|
<template slot="footer">
|
|
86
|
-
<slot name="footer"></slot>
|
|
86
|
+
<slot name="footer" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
87
87
|
</template>
|
|
88
88
|
</s-table>
|
|
89
89
|
<!-- 上传文件 -->
|
|
@@ -362,7 +362,7 @@ export default {
|
|
|
362
362
|
this.$emit('add')
|
|
363
363
|
},
|
|
364
364
|
// 编辑业务
|
|
365
|
-
edit () {
|
|
365
|
+
edit (id) {
|
|
366
366
|
this.editLoading = true
|
|
367
367
|
// 组织被编辑数据
|
|
368
368
|
const requestParameters = {
|
|
@@ -371,7 +371,11 @@ export default {
|
|
|
371
371
|
pageNo: 1,
|
|
372
372
|
pageSize: 1
|
|
373
373
|
}
|
|
374
|
-
|
|
374
|
+
if (!id) {
|
|
375
|
+
this.selectId = this.selectedRowKeys[0]
|
|
376
|
+
} else {
|
|
377
|
+
this.selectId = id
|
|
378
|
+
}
|
|
375
379
|
const primaryKeyName = this.getPrimaryKeyName()
|
|
376
380
|
requestParameters.conditionParams[primaryKeyName] = this.selectId
|
|
377
381
|
requestParameters.f_businessid = this.selectId
|