修改禅道已知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() { handleSubmit() {
let content = [] let content = []
let replace_standard_id = [] let replace_standard_id = []
this.content.forEach(res => { if (this.content && this.content.length > 0){
content.push(res.title) this.content.forEach(res => {
replace_standard_id.push(res.id) 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.$emit('input', content.join(','))
this.visible = false this.$emit('change',this.query.db_field_name,replace_standard_id.join(','))
this.visible = false
}else{
this.$message.warning(this.$t('selectLeastOne'))
}
}, },
indexclick(event) { indexclick(event) {
console.log(event)
this.$emit('input', event.target.value) this.$emit('input', event.target.value)
}, },
onSelectChange(value) { onSelectChange(value) {
@@ -8,7 +8,7 @@
</div> </div>
<a-row :gutter="24"> <a-row :gutter="24">
<div v-for="item in val.content"> <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="box-title-text">
<div class="title-text"> <div class="title-text">
<span class="Required" v-if="item.field_must_input == 0">*</span> <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) { if (rule.length > 0) {
rules[res.db_field_name] = rule rules[res.db_field_name] = rule
} }
@@ -449,6 +457,7 @@
}, },
StandardselectionChange(value, id) { StandardselectionChange(value, id) {
this.formInline[value + '_id'] = 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" :placeholder="$t('PleaseSelect')+item.db_field_txt"
/> />
</div> </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"> <div class="title-text" :title="item.db_field_txt">
<span>{{item.db_field_txt}}</span> <span>{{item.db_field_txt}}</span>
</div> </div>