vue2-client 1.12.97 → 1.12.98
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 +107 -107
- package/src/base-client/components/common/XCollapse/XCollapse.vue +251 -247
- package/src/base-client/components/common/XCollapse/XCollapseDemo.vue +15 -0
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +44 -44
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +4 -3
- package/src/base-client/components/his/XCheckbox/XCheckbox.vue +105 -0
- package/src/base-client/components/his/XCheckbox/index.md +254 -0
- package/src/base-client/components/his/XList/XList.vue +131 -131
- package/src/base-client/plugins/AppData.js +126 -126
- package/src/pages/ReportGrid/index.vue +76 -76
- package/src/pages/userInfoDetailManage/uploadFilesHistory/index.vue +130 -130
- package/src/router/async/router.map.js +124 -119
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="x-checkbox-container">
|
|
3
|
+
<a-checkbox-group v-model="innerValue" @change="onChange" class="x-checkbox-group">
|
|
4
|
+
<div v-for="item in data" :key="item.value" class="x-checkbox-item-container">
|
|
5
|
+
<a-checkbox :value="item.value" class="x-checkbox-item">
|
|
6
|
+
{{ item.label }}
|
|
7
|
+
</a-checkbox>
|
|
8
|
+
</div>
|
|
9
|
+
</a-checkbox-group>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script>
|
|
14
|
+
import { getConfigByName } from '@vue2-client/services/api/common'
|
|
15
|
+
import { Checkbox } from 'ant-design-vue'
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
name: 'XCheckbox',
|
|
19
|
+
components: {
|
|
20
|
+
ACheckboxGroup: Checkbox.Group,
|
|
21
|
+
ACheckbox: Checkbox
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
queryParamsName: {
|
|
25
|
+
type: Object,
|
|
26
|
+
default: null
|
|
27
|
+
},
|
|
28
|
+
value: {
|
|
29
|
+
type: Array,
|
|
30
|
+
default: () => []
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
data () {
|
|
34
|
+
return {
|
|
35
|
+
data: [],
|
|
36
|
+
innerValue: [],
|
|
37
|
+
config: null
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
created () {
|
|
41
|
+
this.getData(this.queryParamsName)
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
value: {
|
|
45
|
+
handler (val) {
|
|
46
|
+
this.innerValue = val
|
|
47
|
+
},
|
|
48
|
+
deep: true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ['change', 'init'],
|
|
52
|
+
methods: {
|
|
53
|
+
async getData (data) {
|
|
54
|
+
getConfigByName(data, 'af-his', res => {
|
|
55
|
+
// 1. 加载选项
|
|
56
|
+
if (res.checkbox && Array.isArray(res.checkbox)) {
|
|
57
|
+
this.data = res.checkbox
|
|
58
|
+
// 2. 初始化默认值(优先级: 配置defaultValue > 空数组)
|
|
59
|
+
if (res.defaultValue !== undefined && Array.isArray(res.defaultValue)) {
|
|
60
|
+
this.innerValue = res.defaultValue
|
|
61
|
+
}
|
|
62
|
+
// 3. 触发初始化事件
|
|
63
|
+
this.$emit('init', {
|
|
64
|
+
config: res,
|
|
65
|
+
options: this.data,
|
|
66
|
+
value: this.innerValue
|
|
67
|
+
})
|
|
68
|
+
} else {
|
|
69
|
+
this.$message.error('配置错误,checkbox字段不是数组')
|
|
70
|
+
}
|
|
71
|
+
})
|
|
72
|
+
},
|
|
73
|
+
onChange (checkedValues) {
|
|
74
|
+
this.innerValue = checkedValues
|
|
75
|
+
this.$emit('change', checkedValues)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</script>
|
|
80
|
+
|
|
81
|
+
<style scoped>
|
|
82
|
+
.x-checkbox-container {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.x-checkbox-group {
|
|
88
|
+
display: flex;
|
|
89
|
+
justify-content: space-around;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.x-checkbox-item-container {
|
|
93
|
+
flex: 1;
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
align-items: center;
|
|
97
|
+
text-align: center;
|
|
98
|
+
padding: 0 8px;
|
|
99
|
+
box-sizing: border-box;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.x-checkbox-item {
|
|
103
|
+
margin-bottom: 8px;
|
|
104
|
+
}
|
|
105
|
+
</style>
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
# XCheckbox
|
|
2
|
+
|
|
3
|
+
基于配置的多选框组件,支持从配置中动态加载选项和默认值。
|
|
4
|
+
|
|
5
|
+
## 何时使用
|
|
6
|
+
|
|
7
|
+
当需要一个通过配置动态加载的多选控件时使用,特别是选项需要从后端获取的场景。
|
|
8
|
+
|
|
9
|
+
## 引用方式
|
|
10
|
+
|
|
11
|
+
```javascript
|
|
12
|
+
import XCheckbox from '@vue2-client/base-client/components/his/XCheckbox/XCheckbox'
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
components: {
|
|
16
|
+
XCheckbox
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 代码演示
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
<x-checkbox
|
|
25
|
+
:queryParamsName="checkboxConfigName"
|
|
26
|
+
v-model="selectedValues"
|
|
27
|
+
@change="handleChange"
|
|
28
|
+
@init="handleInit">
|
|
29
|
+
</x-checkbox>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## API
|
|
33
|
+
|
|
34
|
+
| 参数 | 说明 | 类型 | 默认值 |
|
|
35
|
+
|------|------|------|------|
|
|
36
|
+
| queryParamsName | 查询配置名称 | String/Object | null |
|
|
37
|
+
| value (v-model) | 当前选中值数组 | Array | [] |
|
|
38
|
+
|
|
39
|
+
### 事件
|
|
40
|
+
|
|
41
|
+
| 事件名 | 说明 | 回调参数 |
|
|
42
|
+
|------|------|------|
|
|
43
|
+
| change | 选项变化时的回调 | function(checkedValues: array) |
|
|
44
|
+
| init | 组件初始化完成时的回调 | function({config, options, value}) |
|
|
45
|
+
|
|
46
|
+
## 配置说明
|
|
47
|
+
|
|
48
|
+
组件通过 `queryParamsName` 从后端获取配置,配置格式如下:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
{
|
|
52
|
+
"checkbox": [
|
|
53
|
+
{
|
|
54
|
+
"label": "选项A",
|
|
55
|
+
"value": 1
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "选项B",
|
|
59
|
+
"value": 2
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"label": "选项C",
|
|
63
|
+
"value": 3
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"defaultValue": [1, 2]
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## 配置示例
|
|
71
|
+
|
|
72
|
+
### 基本配置
|
|
73
|
+
|
|
74
|
+
```json
|
|
75
|
+
{
|
|
76
|
+
"checkbox": [
|
|
77
|
+
{
|
|
78
|
+
"label": "全部",
|
|
79
|
+
"value": "all"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"label": "已过期",
|
|
83
|
+
"value": "expired"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"label": "30天内",
|
|
87
|
+
"value": "30days"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"label": "90天内",
|
|
91
|
+
"value": "90days"
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
"defaultValue": ["all"]
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 带禁用选项的配置
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
{
|
|
102
|
+
"checkbox": [
|
|
103
|
+
{
|
|
104
|
+
"label": "选项A",
|
|
105
|
+
"value": "a",
|
|
106
|
+
"disabled": false
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"label": "选项B",
|
|
110
|
+
"value": "b",
|
|
111
|
+
"disabled": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"label": "选项C",
|
|
115
|
+
"value": "c",
|
|
116
|
+
"disabled": false
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"defaultValue": ["a"]
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## 使用示例
|
|
124
|
+
|
|
125
|
+
### 1. 基础使用
|
|
126
|
+
|
|
127
|
+
```html
|
|
128
|
+
<template>
|
|
129
|
+
<x-checkbox
|
|
130
|
+
:queryParamsName="'MyCheckboxConfig'"
|
|
131
|
+
v-model="selectedValues"
|
|
132
|
+
@change="onChange"
|
|
133
|
+
/>
|
|
134
|
+
</template>
|
|
135
|
+
|
|
136
|
+
<script>
|
|
137
|
+
export default {
|
|
138
|
+
data() {
|
|
139
|
+
return {
|
|
140
|
+
selectedValues: []
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
methods: {
|
|
144
|
+
onChange(checkedValues) {
|
|
145
|
+
console.log('选中的值:', checkedValues)
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
</script>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### 2. 带初始值的使用
|
|
153
|
+
|
|
154
|
+
```html
|
|
155
|
+
<template>
|
|
156
|
+
<x-checkbox
|
|
157
|
+
:queryParamsName="checkboxConfig"
|
|
158
|
+
v-model="selectedValues"
|
|
159
|
+
@change="onChange"
|
|
160
|
+
@init="onInit"
|
|
161
|
+
/>
|
|
162
|
+
</template>
|
|
163
|
+
|
|
164
|
+
<script>
|
|
165
|
+
export default {
|
|
166
|
+
data() {
|
|
167
|
+
return {
|
|
168
|
+
selectedValues: ['a', 'b'],
|
|
169
|
+
checkboxConfig: {
|
|
170
|
+
checkbox: [
|
|
171
|
+
{ label: '选项A', value: 'a' },
|
|
172
|
+
{ label: '选项B', value: 'b' },
|
|
173
|
+
{ label: '选项C', value: 'c' }
|
|
174
|
+
],
|
|
175
|
+
defaultValue: ['a', 'b']
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
methods: {
|
|
180
|
+
onChange(checkedValues) {
|
|
181
|
+
console.log('选中的值:', checkedValues)
|
|
182
|
+
},
|
|
183
|
+
onInit({ config, options, value }) {
|
|
184
|
+
console.log('组件初始化完成', { config, options, value })
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
</script>
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## 注意事项
|
|
192
|
+
|
|
193
|
+
1. 如果配置中有 `defaultValue`,组件将默认选中这些值
|
|
194
|
+
2. `defaultValue` 必须是数组类型
|
|
195
|
+
3. 选项的 `value` 值必须是唯一的
|
|
196
|
+
4. 可以通过 `v-model` 或 `value` 属性从外部控制选中值
|
|
197
|
+
5. 组件会自动处理选项的禁用状态
|
|
198
|
+
6. 所有的事件回调都会返回选中值的数组
|
|
199
|
+
|
|
200
|
+
## 常见问题解答(FAQ)
|
|
201
|
+
|
|
202
|
+
### 1. 如何设置默认选中的选项?
|
|
203
|
+
|
|
204
|
+
可以通过配置中的 `defaultValue` 字段设置:
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"defaultValue": ["value1", "value2"]
|
|
208
|
+
}
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
或者通过 v-model 绑定:
|
|
212
|
+
```html
|
|
213
|
+
<x-checkbox v-model="selectedValues"></x-checkbox>
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
```javascript
|
|
217
|
+
export default {
|
|
218
|
+
data() {
|
|
219
|
+
return {
|
|
220
|
+
selectedValues: ["value1", "value2"]
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
### 2. 如何禁用某些选项?
|
|
227
|
+
|
|
228
|
+
在选项配置中添加 `disabled` 属性:
|
|
229
|
+
```json
|
|
230
|
+
{
|
|
231
|
+
"checkbox": [
|
|
232
|
+
{
|
|
233
|
+
"label": "选项A",
|
|
234
|
+
"value": "a",
|
|
235
|
+
"disabled": true
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### 3. 如何获取选中的值?
|
|
242
|
+
|
|
243
|
+
可以通过 `change` 事件或 `v-model` 获取:
|
|
244
|
+
```html
|
|
245
|
+
<x-checkbox v-model="selectedValues" @change="onChange"></x-checkbox>
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
```javascript
|
|
249
|
+
methods: {
|
|
250
|
+
onChange(checkedValues) {
|
|
251
|
+
console.log('当前选中的值:', checkedValues)
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
```
|
|
@@ -1,131 +1,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
|
-
<a-button v-if="button" type="link" class="confirm-btn" @click.stop="click(index)">{{ buttonName }}</a-button>
|
|
15
|
-
</a-list-item>
|
|
16
|
-
</a-list>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
|
|
22
|
-
import { runLogic } from '@vue2-client/services/api/common'
|
|
23
|
-
|
|
24
|
-
export default {
|
|
25
|
-
name: 'XList',
|
|
26
|
-
props: {
|
|
27
|
-
queryParamsName: {
|
|
28
|
-
type: Object,
|
|
29
|
-
default: null
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
inject: ['getComponentByName'],
|
|
33
|
-
data () {
|
|
34
|
-
return {
|
|
35
|
-
data: [],
|
|
36
|
-
button: false,
|
|
37
|
-
icon: false,
|
|
38
|
-
buttonName: ''
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
created () {
|
|
42
|
-
this.getData(this.queryParamsName)
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
async getData (config) {
|
|
46
|
-
runLogic(config, {}, 'af-his').then(res => {
|
|
47
|
-
this.button = res.button
|
|
48
|
-
this.icon = res.icon
|
|
49
|
-
this.buttonName = res.buttonName
|
|
50
|
-
this.data = res.data
|
|
51
|
-
})
|
|
52
|
-
},
|
|
53
|
-
handleClick (index) {
|
|
54
|
-
this.$emit('listClick', this.data[index])
|
|
55
|
-
},
|
|
56
|
-
refreshList () {
|
|
57
|
-
this.getData(this.queryParamsName)
|
|
58
|
-
},
|
|
59
|
-
click (index) {
|
|
60
|
-
this.$emit('click', this.data[index
|
|
61
|
-
},
|
|
62
|
-
getIconStyle (item) {
|
|
63
|
-
return item.picture
|
|
64
|
-
? { backgroundImage: `url(${item.picture})` }
|
|
65
|
-
: {}
|
|
66
|
-
},
|
|
67
|
-
filterData (par) {
|
|
68
|
-
runLogic(this.queryParamsName, par, 'af-his').then(res => {
|
|
69
|
-
this.data = res.data
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</script>
|
|
75
|
-
|
|
76
|
-
<style scoped>
|
|
77
|
-
.list-wrapper {
|
|
78
|
-
max-height: 240px;
|
|
79
|
-
overflow-y: auto;
|
|
80
|
-
padding-right: 2px;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.list-container {
|
|
84
|
-
width: 100%;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.list-item {
|
|
88
|
-
height: 35px;
|
|
89
|
-
border-radius: 6px;
|
|
90
|
-
background-color: #F4F4F4;
|
|
91
|
-
padding: 8px 15px;
|
|
92
|
-
font-size: 16px;
|
|
93
|
-
display: flex;
|
|
94
|
-
align-items: center;
|
|
95
|
-
width: 100%;
|
|
96
|
-
border: 1px solid #D9D9D9;
|
|
97
|
-
box-sizing: border-box;
|
|
98
|
-
margin-bottom: 8px !important;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.icon-menu {
|
|
102
|
-
display: inline-block;
|
|
103
|
-
width: 20px;
|
|
104
|
-
height: 20px;
|
|
105
|
-
background-color: #ccc;
|
|
106
|
-
margin-right: 8px;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.item-text {
|
|
110
|
-
flex: 1;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.confirm-btn {
|
|
114
|
-
margin-left: auto;
|
|
115
|
-
padding: 0 8px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* 自定义滚动条样式 */
|
|
119
|
-
.list-wrapper::-webkit-scrollbar {
|
|
120
|
-
width: 6px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.list-wrapper::-webkit-scrollbar-thumb {
|
|
124
|
-
background-color: #d9d9d9;
|
|
125
|
-
border-radius: 3px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.list-wrapper::-webkit-scrollbar-track {
|
|
129
|
-
background-color: #f0f0f0;
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
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
|
+
<a-button v-if="button" type="link" class="confirm-btn" @click.stop="click(index)">{{ buttonName }}</a-button>
|
|
15
|
+
</a-list-item>
|
|
16
|
+
</a-list>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
|
|
22
|
+
import { runLogic } from '@vue2-client/services/api/common'
|
|
23
|
+
|
|
24
|
+
export default {
|
|
25
|
+
name: 'XList',
|
|
26
|
+
props: {
|
|
27
|
+
queryParamsName: {
|
|
28
|
+
type: Object,
|
|
29
|
+
default: null
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
inject: ['getComponentByName'],
|
|
33
|
+
data () {
|
|
34
|
+
return {
|
|
35
|
+
data: [],
|
|
36
|
+
button: false,
|
|
37
|
+
icon: false,
|
|
38
|
+
buttonName: ''
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
created () {
|
|
42
|
+
this.getData(this.queryParamsName)
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
async getData (config) {
|
|
46
|
+
runLogic(config, {}, 'af-his').then(res => {
|
|
47
|
+
this.button = res.button
|
|
48
|
+
this.icon = res.icon
|
|
49
|
+
this.buttonName = res.buttonName
|
|
50
|
+
this.data = res.data
|
|
51
|
+
})
|
|
52
|
+
},
|
|
53
|
+
handleClick (index) {
|
|
54
|
+
this.$emit('listClick', this.data[index])
|
|
55
|
+
},
|
|
56
|
+
refreshList () {
|
|
57
|
+
this.getData(this.queryParamsName)
|
|
58
|
+
},
|
|
59
|
+
click (index) {
|
|
60
|
+
this.$emit('click', this.data[index])
|
|
61
|
+
},
|
|
62
|
+
getIconStyle (item) {
|
|
63
|
+
return item.picture
|
|
64
|
+
? { backgroundImage: `url(${item.picture})` }
|
|
65
|
+
: {}
|
|
66
|
+
},
|
|
67
|
+
filterData (par) {
|
|
68
|
+
runLogic(this.queryParamsName, par, 'af-his').then(res => {
|
|
69
|
+
this.data = res.data
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<style scoped>
|
|
77
|
+
.list-wrapper {
|
|
78
|
+
max-height: 240px;
|
|
79
|
+
overflow-y: auto;
|
|
80
|
+
padding-right: 2px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.list-container {
|
|
84
|
+
width: 100%;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.list-item {
|
|
88
|
+
height: 35px;
|
|
89
|
+
border-radius: 6px;
|
|
90
|
+
background-color: #F4F4F4;
|
|
91
|
+
padding: 8px 15px;
|
|
92
|
+
font-size: 16px;
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
width: 100%;
|
|
96
|
+
border: 1px solid #D9D9D9;
|
|
97
|
+
box-sizing: border-box;
|
|
98
|
+
margin-bottom: 8px !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.icon-menu {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
width: 20px;
|
|
104
|
+
height: 20px;
|
|
105
|
+
background-color: #ccc;
|
|
106
|
+
margin-right: 8px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.item-text {
|
|
110
|
+
flex: 1;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.confirm-btn {
|
|
114
|
+
margin-left: auto;
|
|
115
|
+
padding: 0 8px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* 自定义滚动条样式 */
|
|
119
|
+
.list-wrapper::-webkit-scrollbar {
|
|
120
|
+
width: 6px;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.list-wrapper::-webkit-scrollbar-thumb {
|
|
124
|
+
background-color: #d9d9d9;
|
|
125
|
+
border-radius: 3px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.list-wrapper::-webkit-scrollbar-track {
|
|
129
|
+
background-color: #f0f0f0;
|
|
130
|
+
}
|
|
131
|
+
</style>
|