imeik-bizui 1.7.4 → 1.7.6
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/dist/bizui/src/FieldChargeSelect/index.vue +1 -1
- package/dist/bizui/src/FieldExpertSelect/index.vue +5 -1
- package/dist/bizui/src/FieldTagComponent/index.vue +18 -4
- package/dist/imeik-bizui.common.js +240 -213
- package/dist/imeik-bizui.common.js.gz +0 -0
- package/dist/imeik-bizui.css +1 -1
- package/dist/imeik-bizui.css.gz +0 -0
- package/dist/imeik-bizui.umd.js +240 -213
- package/dist/imeik-bizui.umd.js.gz +0 -0
- package/dist/imeik-bizui.umd.min.js +4 -4
- package/dist/imeik-bizui.umd.min.js.gz +0 -0
- package/package.json +1 -1
|
@@ -212,7 +212,7 @@ export default {
|
|
|
212
212
|
}
|
|
213
213
|
if (!this.selectName && this.value) {
|
|
214
214
|
params.employeeNos = Array.isArray(this.value) ? this.value : [this.value]
|
|
215
|
-
params.selectStatus =
|
|
215
|
+
params.selectStatus = '0'
|
|
216
216
|
}
|
|
217
217
|
this.loading = true
|
|
218
218
|
employeeSelectOption(params).then((res) => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<ImTable :table="tableConfig" style="margin-bottom: 20px">
|
|
4
4
|
<!-- 专家 -->
|
|
5
5
|
<template slot="doctorName" slot-scope="{ row }">
|
|
6
|
-
<ImSelect v-if="!isView" v-model="row.doctorNumber" :class="{ 'is-error': row.valid === false && !row.doctorNumber }" :attrs="doctorAttrs" @input="changedoctorName(row)"></ImSelect>
|
|
6
|
+
<ImSelect v-if="!isView" v-model="row.doctorNumber" :class="{ 'is-error': row.valid === false && !row.doctorNumber }" :attrs="doctorAttrs" :listeners="{ focus: onDoctorFocus}" @input="changedoctorName(row)"></ImSelect>
|
|
7
7
|
<div v-else>
|
|
8
8
|
<!-- <div v-if="showDiff">
|
|
9
9
|
<p class="text-button" @click="viewdoctorDetailItem(row)">{{ row.doctorName }}</p>
|
|
@@ -557,6 +557,10 @@ export default {
|
|
|
557
557
|
const token = this.$bizui.userTokenFunc()
|
|
558
558
|
const url = `${host}/user/expertDatabase/expertDetails?objectCode=${row.doctorNumber}&type=list&token=${token}&hideBar=1`
|
|
559
559
|
window.open(url)
|
|
560
|
+
},
|
|
561
|
+
// 获取焦点的时候清楚当前options缓存
|
|
562
|
+
onDoctorFocus() {
|
|
563
|
+
this.doctorAttrs.options = []
|
|
560
564
|
}
|
|
561
565
|
}
|
|
562
566
|
}
|
|
@@ -172,8 +172,22 @@ export default {
|
|
|
172
172
|
*/
|
|
173
173
|
onUpdate(val, data) {
|
|
174
174
|
if (this.isObjectValue) {
|
|
175
|
-
|
|
176
|
-
this
|
|
175
|
+
let newValue
|
|
176
|
+
if (this.isMultiple) {
|
|
177
|
+
newValue = data.map((item) => {
|
|
178
|
+
return {
|
|
179
|
+
[this.attrs.prop + 'DicName']: item.dicName,
|
|
180
|
+
[this.attrs.prop + 'DicValue']: item.dicValue
|
|
181
|
+
}
|
|
182
|
+
})
|
|
183
|
+
} else {
|
|
184
|
+
newValue = {
|
|
185
|
+
[this.attrs.prop + 'DicName']: data.dicName,
|
|
186
|
+
[this.attrs.prop + 'DicValue']: data.dicValue
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
this.$emit('input', newValue, data)
|
|
190
|
+
this.$emit('change', newValue, data)
|
|
177
191
|
} else {
|
|
178
192
|
this.$emit('input', this.myValue, data)
|
|
179
193
|
this.$emit('change', this.myValue, data)
|
|
@@ -184,9 +198,9 @@ export default {
|
|
|
184
198
|
*/
|
|
185
199
|
getObjectValue(val) {
|
|
186
200
|
if (this.isMultiple) {
|
|
187
|
-
return val?.map((item) => item.
|
|
201
|
+
return val?.map((item) => item[this.attrs.prop + 'DicValue']) || []
|
|
188
202
|
} else {
|
|
189
|
-
return val
|
|
203
|
+
return val[this.attrs.prop + 'DicValue'] || ''
|
|
190
204
|
}
|
|
191
205
|
}
|
|
192
206
|
}
|