修改禅道已知bug

This commit is contained in:
qq787203167
2022-03-09 15:19:17 +08:00
parent 731dba5533
commit b3e18824e3
3 changed files with 24 additions and 9 deletions
@@ -140,15 +140,20 @@
handleSubmit() {
let content = []
let replace_standard_id = []
this.content.forEach(res => {
content.push(res.title)
replace_standard_id.push(res.id)
})
this.$emit('input', content.join(','))
this.$emit('change',this.query.db_field_name,replace_standard_id.join(','))
this.visible = false
if (this.content && this.content.length > 0){
this.content.forEach(res => {
content.push(res.title)
replace_standard_id.push(res.id)
})
this.$emit('input', content.join(','))
this.$emit('change',this.query.db_field_name,replace_standard_id.join(','))
this.visible = false
}else{
this.$message.warning(this.$t('selectLeastOne'))
}
},
indexclick(event) {
console.log(event)
this.$emit('input', event.target.value)
},
onSelectChange(value) {