This commit is contained in:
shijingjing
2022-05-05 11:44:10 +08:00
parent 34f3233ed0
commit 07a78300e4
4 changed files with 15 additions and 26 deletions

View File

@@ -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()
},
// 医疗保险