vue2-client 1.6.15 → 1.6.17
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
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
@selectRow="selectRow"
|
|
28
28
|
@afterQuery="afterQuery"
|
|
29
29
|
@tempTableEdit="tempTableEdit">
|
|
30
|
-
<template
|
|
30
|
+
<template slot="button" slot-scope="{selectedRowKeys, selectedRows}">
|
|
31
31
|
<slot name="button" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
32
32
|
</template>
|
|
33
|
-
<template
|
|
33
|
+
<template slot="rightBtnExpand" slot-scope="{selectedRowKeys, selectedRows}">
|
|
34
34
|
<slot name="rightBtnExpand" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
35
35
|
<a-button @click="toggleIsFormShow">
|
|
36
36
|
<a-icon :style="iconStyle" type="vertical-align-top"/>
|
|
37
37
|
</a-button>
|
|
38
38
|
</template>
|
|
39
39
|
<!-- 底部插槽 -->
|
|
40
|
-
<template
|
|
40
|
+
<template slot="footer" slot-scope="{selectedRowKeys, selectedRows}">
|
|
41
41
|
<slot name="footer" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
42
42
|
</template>
|
|
43
43
|
</x-table>
|
|
@@ -1,80 +1,43 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<a-card :bordered="false">
|
|
3
|
-
<dictionary-details-view
|
|
4
|
-
v-if="selectId"
|
|
5
|
-
:id="selectId"
|
|
6
|
-
:visible.sync="detailVisible"
|
|
7
|
-
/>
|
|
8
|
-
<x-form-table
|
|
9
|
-
:queryParamsName="queryParamsName"
|
|
10
|
-
title="字典"
|
|
11
|
-
@action="toDetail">
|
|
12
|
-
</x-form-table>
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
axios.get('/demo.json').then(res => {
|
|
45
|
-
const a = res.slice(0, 100000)
|
|
46
|
-
const line = new Line('container', {
|
|
47
|
-
data: a,
|
|
48
|
-
xField: 'runTimeStr',
|
|
49
|
-
yField: 'count',
|
|
50
|
-
seriesField: 'level',
|
|
51
|
-
tooltip: {
|
|
52
|
-
shared: true
|
|
53
|
-
},
|
|
54
|
-
slider: {
|
|
55
|
-
start: 0,
|
|
56
|
-
end: 0.4
|
|
57
|
-
},
|
|
58
|
-
legend: {
|
|
59
|
-
position: 'top',
|
|
60
|
-
radio: true,
|
|
61
|
-
flipPage: false
|
|
62
|
-
},
|
|
63
|
-
smooth: true,
|
|
64
|
-
yAxis: {
|
|
65
|
-
label: {
|
|
66
|
-
// 数值格式化为千分位
|
|
67
|
-
formatter: (v) => `${v}`.replace(/\d{1,3}(?=(\d{3})+$)/g, (s) => `${s},`),
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
})
|
|
71
|
-
line.render()
|
|
72
|
-
})
|
|
73
|
-
},
|
|
74
|
-
toDetail (record, id) {
|
|
75
|
-
this.selectId = id + ''
|
|
76
|
-
this.detailVisible = true
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<a-card :bordered="false">
|
|
3
|
+
<dictionary-details-view
|
|
4
|
+
v-if="selectId"
|
|
5
|
+
:id="selectId"
|
|
6
|
+
:visible.sync="detailVisible"
|
|
7
|
+
/>
|
|
8
|
+
<x-form-table
|
|
9
|
+
:queryParamsName="queryParamsName"
|
|
10
|
+
title="字典"
|
|
11
|
+
@action="toDetail">
|
|
12
|
+
</x-form-table>
|
|
13
|
+
</a-card>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script>
|
|
17
|
+
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
|
18
|
+
import DictionaryDetailsView from '@vue2-client/base-client/components/system/DictionaryDetailsView'
|
|
19
|
+
|
|
20
|
+
export default {
|
|
21
|
+
name: 'Dictionary',
|
|
22
|
+
components: {
|
|
23
|
+
XFormTable,
|
|
24
|
+
DictionaryDetailsView
|
|
25
|
+
},
|
|
26
|
+
data () {
|
|
27
|
+
return {
|
|
28
|
+
// 选中的编号
|
|
29
|
+
selectId: undefined,
|
|
30
|
+
// 查询配置文件名
|
|
31
|
+
queryParamsName: 'dictionaryQueryParams',
|
|
32
|
+
// 是否显示详情抽屉
|
|
33
|
+
detailVisible: false
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
methods: {
|
|
37
|
+
toDetail (record, id) {
|
|
38
|
+
this.selectId = id + ''
|
|
39
|
+
this.detailVisible = true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
</script>
|