vue2-client 1.13.7 → 1.13.9
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
|
@@ -1,131 +1,158 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="list-wrapper">
|
|
3
|
-
<a-list size="large" :data-source="data" itemLayout="horizontal" class="list-container" ref="listRef">
|
|
4
|
-
<a-list-item slot="renderItem" slot-scope="item, index" class="list-item" @click="handleClick(index)">
|
|
5
|
-
<i
|
|
6
|
-
v-if="icon"
|
|
7
|
-
class="icon-menu"
|
|
8
|
-
:style="getIconStyle(item)"
|
|
9
|
-
></i>
|
|
10
|
-
<span
|
|
11
|
-
class="item-text">
|
|
12
|
-
{{ item.number }} {{ item.name }}
|
|
13
|
-
</span>
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="list-wrapper">
|
|
3
|
+
<a-list size="large" :data-source="data" itemLayout="horizontal" class="list-container" ref="listRef">
|
|
4
|
+
<a-list-item slot="renderItem" slot-scope="item, index" class="list-item" @click="handleClick(index)">
|
|
5
|
+
<i
|
|
6
|
+
v-if="icon"
|
|
7
|
+
class="icon-menu"
|
|
8
|
+
:style="getIconStyle(item)"
|
|
9
|
+
></i>
|
|
10
|
+
<span
|
|
11
|
+
class="item-text">
|
|
12
|
+
{{ item.number }} {{ item.name }}
|
|
13
|
+
</span>
|
|
14
|
+
|
|
15
|
+
<div v-if="button" class="button-group">
|
|
16
|
+
<a-button
|
|
17
|
+
v-for="(name, idx) in buttonNames"
|
|
18
|
+
:key="idx"
|
|
19
|
+
type="link"
|
|
20
|
+
:class="['confirm-btn', buttonMode ? 'hover-btn' : '']"
|
|
21
|
+
@click.stop="click(index, idx)"
|
|
22
|
+
>
|
|
23
|
+
{{ name }}
|
|
24
|
+
</a-button>
|
|
25
|
+
</div>
|
|
26
|
+
</a-list-item>
|
|
27
|
+
</a-list>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
|
|
31
|
+
<script>
|
|
32
|
+
|
|
33
|
+
import { runLogic } from '@vue2-client/services/api/common'
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
name: 'XList',
|
|
37
|
+
props: {
|
|
38
|
+
queryParamsName: {
|
|
39
|
+
type: Object,
|
|
40
|
+
default: null
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
inject: ['getComponentByName'],
|
|
44
|
+
data () {
|
|
45
|
+
return {
|
|
46
|
+
data: [],
|
|
47
|
+
button: false,
|
|
48
|
+
icon: false,
|
|
49
|
+
buttonNames: [],
|
|
50
|
+
buttonMode: false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
created () {
|
|
54
|
+
this.getData(this.queryParamsName)
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
async getData (config) {
|
|
58
|
+
runLogic(config, {}, 'af-his').then(res => {
|
|
59
|
+
this.button = res.button
|
|
60
|
+
this.icon = res.icon
|
|
61
|
+
this.buttonNames = res.buttonNames || []
|
|
62
|
+
this.buttonMode = res.buttonMode || false
|
|
63
|
+
this.data = res.data
|
|
64
|
+
})
|
|
65
|
+
},
|
|
66
|
+
handleClick (index) {
|
|
67
|
+
this.$emit('listClick', this.data[index])
|
|
68
|
+
},
|
|
69
|
+
refreshList () {
|
|
70
|
+
this.getData(this.queryParamsName)
|
|
71
|
+
},
|
|
72
|
+
click (index, buttonIndex) {
|
|
73
|
+
this.$emit('click', { data: this.data[index], name: this.buttonNames[buttonIndex] })
|
|
74
|
+
},
|
|
75
|
+
getIconStyle (item) {
|
|
76
|
+
return item.picture
|
|
77
|
+
? { backgroundImage: `url(${item.picture})` }
|
|
78
|
+
: {}
|
|
79
|
+
},
|
|
80
|
+
filterData (par) {
|
|
81
|
+
runLogic(this.queryParamsName, par, 'af-his').then(res => {
|
|
82
|
+
this.data = res.data
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<style scoped>
|
|
90
|
+
.list-wrapper {
|
|
91
|
+
max-height: 240px;
|
|
92
|
+
overflow-y: auto;
|
|
93
|
+
padding-right: 2px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.list-container {
|
|
97
|
+
width: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.list-item {
|
|
101
|
+
height: 35px;
|
|
102
|
+
border-radius: 6px;
|
|
103
|
+
background-color: #F4F4F4;
|
|
104
|
+
padding: 8px 15px;
|
|
105
|
+
font-size: 16px;
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
width: 100%;
|
|
109
|
+
border: 1px solid #D9D9D9;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
margin-bottom: 8px !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.icon-menu {
|
|
115
|
+
display: inline-block;
|
|
116
|
+
width: 20px;
|
|
117
|
+
height: 20px;
|
|
118
|
+
background-color: #ccc;
|
|
119
|
+
margin-right: 8px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.item-text {
|
|
123
|
+
flex: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.confirm-btn {
|
|
127
|
+
margin-left: auto;
|
|
128
|
+
padding: 0 8px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.confirm-btn.hover-btn {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
transition: opacity 0.3s ease;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.button-group {
|
|
137
|
+
display: flex;
|
|
138
|
+
gap: 2px; /* 按钮之间的间距 */
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.list-item:hover .confirm-btn.hover-btn {
|
|
142
|
+
opacity: 1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* 自定义滚动条样式 */
|
|
146
|
+
.list-wrapper::-webkit-scrollbar {
|
|
147
|
+
width: 6px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.list-wrapper::-webkit-scrollbar-thumb {
|
|
151
|
+
background-color: #d9d9d9;
|
|
152
|
+
border-radius: 3px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.list-wrapper::-webkit-scrollbar-track {
|
|
156
|
+
background-color: #f0f0f0;
|
|
157
|
+
}
|
|
158
|
+
</style>
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
{ key: '7', label: '换表查询', permission: '换表查询', component: 'ChangeMeterRecordQuery' },
|
|
91
91
|
{ key: '8', label: '其他收费', permission: '其他收费', component: 'OtherChargeRecordQuery' },
|
|
92
92
|
{ key: '9', label: '过户查询', permission: '过户查询', component: 'TransferRecordQuery' },
|
|
93
|
-
{ key: '10', label: '档案变更记录', permission: '变更记录', component: '
|
|
93
|
+
{ key: '10', label: '档案变更记录', permission: '变更记录', component: 'InfoChangeRecordQuery' },
|
|
94
94
|
{
|
|
95
95
|
key: '11',
|
|
96
96
|
label: '指令查看',
|
|
@@ -54,7 +54,7 @@ routerResource.example = {
|
|
|
54
54
|
name: '示例主页面',
|
|
55
55
|
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelect.vue'),
|
|
56
56
|
// component: () => import('@vue2-client/base-client/components/his/XTitle/XTitle.vue'),
|
|
57
|
-
component: () => import('@vue2-client/base-client/components/his/XSelect/XSelect.vue'),
|
|
57
|
+
// component: () => import('@vue2-client/base-client/components/his/XSelect/XSelect.vue'),
|
|
58
58
|
// component: () => import('@vue2-client/base-client/components/his/XRadio/XRadio.vue'),
|
|
59
59
|
// component: () => import('@vue2-client/base-client/components/his/XList/XList.vue'),
|
|
60
60
|
// component: () => import('@vue2-client/base-client/components/common/XCollapse/XCollapse.vue'),
|
|
@@ -78,7 +78,7 @@ routerResource.example = {
|
|
|
78
78
|
// component: () => import('@vue2-client/components/g2Charts/demo.vue'),
|
|
79
79
|
// component: () => import('@vue2-client/pages/LogicCallExample/index.vue'),
|
|
80
80
|
// component: () => import('@vue2-client/components/FilePreview/FilePreviewDemo.vue'),
|
|
81
|
-
|
|
81
|
+
component: () => import('@vue2-client/pages/ReportGrid/index.vue')
|
|
82
82
|
}
|
|
83
83
|
// routerResource.example = () =>
|
|
84
84
|
// import('@vue2-client/pages/Example')
|