修改禅道已知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) {
@@ -8,7 +8,7 @@
</div>
<a-row :gutter="24">
<div v-for="item in val.content">
<a-col :span="12" v-if="item.field_show_type === '1'">
<a-col :span="12" v-if="item.field_show_type === '1' || item.field_show_type === '11'">
<div class="box-title-text">
<div class="title-text">
<span class="Required" v-if="item.field_must_input == 0">*</span>
@@ -400,6 +400,14 @@
})
}
}
if (res.field_show_type === '1' || res.field_show_type === '2' ||
res.field_show_type === '8' || res.field_show_type === '9' || res.field_show_type === '10'){
rule.push({
max: res.db_length,
message: res.db_field_txt+'不能超出'+res.db_length+'个字符',
trigger: 'blur'
})
}
if (rule.length > 0) {
rules[res.db_field_name] = rule
}
@@ -449,6 +457,7 @@
},
StandardselectionChange(value, id) {
this.formInline[value + '_id'] = id
this.formInline = {...this.formInline}
}
}
}
+2 -1
View File
@@ -16,7 +16,8 @@
:placeholder="$t('PleaseSelect')+item.db_field_txt"
/>
</div>
<div class="box-title-text" v-if="item.field_show_type == '1'">
<div class="box-title-text" v-if="item.field_show_type == '1' || item.field_show_type == '8' ||
item.field_show_type == '9' || item.field_show_type == '10' || item.field_show_type == '11'">
<div class="title-text" :title="item.db_field_txt">
<span>{{item.db_field_txt}}</span>
</div>