29492
This commit is contained in:
@@ -495,18 +495,8 @@ export default {
|
||||
|
||||
methods: {
|
||||
userClick(row, i) {
|
||||
if (!this.helthList[i].checked) {
|
||||
this.helthList[i].checked = true // 确定
|
||||
this.namelist.push({dictValue: row.dictValue, dictName: row.dictName}) // 赋值
|
||||
} else {
|
||||
this.helthList[i].checked = false // 取消
|
||||
this.namelist.map((item, index) => {
|
||||
if (item.dictValue == row.dictValue) {
|
||||
this.namelist.splice(index, 1)
|
||||
}
|
||||
})
|
||||
}
|
||||
this.form.healthyStatus = this.namelist.map(v => v.dictValue).join(',')
|
||||
row.checked = !row.checked
|
||||
this.form.healthyStatus = this.helthList.filter(e => e.checked)?.map(e => e.dictValue)?.toString()
|
||||
},
|
||||
|
||||
// 医疗保险
|
||||
|
||||
Reference in New Issue
Block a user