vue2-client 1.14.99 → 1.15.2
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 +1 -1
- package/src/base-client/components/common/XTab/XTab.vue +1 -0
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaire.vue +8 -6
- package/src/base-client/components/his/XQuestionnaire/XQuestionnaireItem.vue +23 -47
- package/src/pages/addressSelect/addressDemo.vue +24 -24
package/package.json
CHANGED
@@ -32,8 +32,8 @@ export default {
|
|
32
32
|
},
|
33
33
|
methods: {
|
34
34
|
// 获取配置
|
35
|
-
async getData (conditionData) {
|
36
|
-
getConfigByName(
|
35
|
+
async getData (queryParamsName, conditionData) {
|
36
|
+
getConfigByName(queryParamsName, 'af-his', res => {
|
37
37
|
// 清空旧数据
|
38
38
|
this.configs = []
|
39
39
|
this.conditionsMap = { ...this.conditionsMap }
|
@@ -70,15 +70,17 @@ export default {
|
|
70
70
|
this.questionnaireItemRefs.delete(config.tmp_key) // 组件卸载时清理
|
71
71
|
}
|
72
72
|
},
|
73
|
-
async init () { // 接收完整条件对象
|
74
|
-
this.$emit('init')
|
73
|
+
async init (conditionData) { // 接收完整条件对象
|
74
|
+
// this.$emit('init')
|
75
|
+
console.log('conditionData===>', conditionData)
|
76
|
+
await this.getData(this.queryParamsName, conditionData)
|
75
77
|
},
|
76
78
|
|
77
79
|
refreshList (tmpKey, condition) {
|
78
80
|
// 更新条件映射
|
79
81
|
this.$set(this.conditionsMap, tmpKey, condition)
|
80
|
-
// 调用子组件刷新
|
81
|
-
this.questionnaireItemRefs.get(tmpKey)?.refreshList(condition)
|
82
|
+
// // 调用子组件刷新
|
83
|
+
// this.questionnaireItemRefs.get(tmpKey)?.refreshList(condition)
|
82
84
|
},
|
83
85
|
},
|
84
86
|
}
|
@@ -111,38 +111,34 @@ export default {
|
|
111
111
|
// 获取配置
|
112
112
|
async getData (config, param) {
|
113
113
|
const that = this
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
114
|
+
that.config = { ...that.config, ...config }
|
115
|
+
console.log(param)
|
116
|
+
runLogic(config.data, param, 'af-his').then(res => {
|
117
|
+
that.data = res || []
|
118
|
+
that.results = {}
|
119
|
+
// 将又返回值的数据创建到results
|
120
|
+
for (let i = 0; i < res.length; i++) {
|
121
|
+
const fields = res[i]
|
122
|
+
if (!fields.columns) {
|
123
|
+
continue
|
124
|
+
}
|
125
|
+
console.log('2', fields)
|
126
|
+
for (let j = 0; j < fields.columns.length; j++) {
|
127
|
+
const field = fields.columns[j]
|
128
|
+
console.log('3', field)
|
129
|
+
if (this.results[field.config_id]) {
|
130
|
+
console.error(`Config_id 冲突: ${field.config_id} 重复,同一个模板中不能有形同的配置项`)
|
131
|
+
return
|
126
132
|
}
|
127
|
-
|
128
|
-
|
129
|
-
const field = fields.columns[j]
|
130
|
-
console.log('3', field)
|
131
|
-
if (this.results[field.config_id]) {
|
132
|
-
console.error(`Config_id 冲突: ${field.config_id} 重复,同一个模板中不能有形同的配置项`)
|
133
|
-
return
|
134
|
-
}
|
135
|
-
if (field.type === 'selectionBox' || field.type === 'input' || field.type === 'radio' || field.type === 'time') {
|
136
|
-
this.results[field.config_id] = { value: field.value, data_id: field.data_id }
|
137
|
-
}
|
138
|
-
console.log(this.results)
|
133
|
+
if (field.type === 'selectionBox' || field.type === 'input' || field.type === 'radio' || field.type === 'time') {
|
134
|
+
this.results[field.config_id] = { value: field.value, data_id: field.data_id }
|
139
135
|
}
|
136
|
+
console.log(this.results)
|
140
137
|
}
|
141
|
-
}
|
138
|
+
}
|
139
|
+
})
|
142
140
|
},
|
143
141
|
refreshList (param) {
|
144
|
-
this.data = []
|
145
|
-
this.results = {}
|
146
142
|
this.getData(this.queryParamsName, param)
|
147
143
|
},
|
148
144
|
// 行数据排量方式
|
@@ -190,26 +186,6 @@ export default {
|
|
190
186
|
.list-container {
|
191
187
|
width: 100%;
|
192
188
|
}
|
193
|
-
|
194
|
-
/** 自定义滚动条样式
|
195
|
-
.list-wrapper {
|
196
|
-
max-height: 240px;
|
197
|
-
overflow-y: auto;
|
198
|
-
padding-right: 2px;
|
199
|
-
}
|
200
|
-
.list-wrapper::-webkit-scrollbar {
|
201
|
-
width: 6px;
|
202
|
-
}
|
203
|
-
|
204
|
-
.list-wrapper::-webkit-scrollbar-thumb {
|
205
|
-
background-color: #d9d9d9;
|
206
|
-
border-radius: 3px;
|
207
|
-
}
|
208
|
-
|
209
|
-
.list-wrapper::-webkit-scrollbar-track {
|
210
|
-
background-color: #f0f0f0;
|
211
|
-
}
|
212
|
-
*/
|
213
189
|
/* header样式 */
|
214
190
|
.list-wrapper ::v-deep .ant-list-header {
|
215
191
|
background-color: #F4F4F4; /* 自定义背景色 */
|
@@ -1,24 +1,24 @@
|
|
1
|
-
<template>
|
2
|
-
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
-
<div>
|
4
|
-
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
-
<address-select :addressShow="showDialog"/>
|
6
|
-
</div>
|
7
|
-
</template>
|
8
|
-
|
9
|
-
<script>
|
10
|
-
import AddressSelect from '@/pages/addressSelect'
|
11
|
-
|
12
|
-
export default {
|
13
|
-
components: { AddressSelect },
|
14
|
-
data: () => ({
|
15
|
-
showDialog: false
|
16
|
-
}),
|
17
|
-
methods: {
|
18
|
-
open () {
|
19
|
-
console.log('打开选择地址弹窗')
|
20
|
-
this.showDialog = true
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
</script>
|
1
|
+
<template>
|
2
|
+
<!-- 测试界面——测试地址选择新增组件-->
|
3
|
+
<div>
|
4
|
+
<a-button @click="open">打开选择地址弹窗</a-button>
|
5
|
+
<address-select :addressShow="showDialog"/>
|
6
|
+
</div>
|
7
|
+
</template>
|
8
|
+
|
9
|
+
<script>
|
10
|
+
import AddressSelect from '@/pages/addressSelect'
|
11
|
+
|
12
|
+
export default {
|
13
|
+
components: { AddressSelect },
|
14
|
+
data: () => ({
|
15
|
+
showDialog: false
|
16
|
+
}),
|
17
|
+
methods: {
|
18
|
+
open () {
|
19
|
+
console.log('打开选择地址弹窗')
|
20
|
+
this.showDialog = true
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
</script>
|