修改禅道已知bug

This commit is contained in:
qq787203167
2022-03-23 19:00:08 +08:00
parent d0b98b2e12
commit f03ba94b46
2 changed files with 49 additions and 34 deletions
@@ -4,7 +4,7 @@
<div v-for="(val,index) in dataList" :key="index">
<div v-for="(ol,indexOne) in Object.keys(val)">
<div class="header-text" >
<div class="header-text">
&nbsp;{{ol}}
</div>
<a-row :gutter="24">
@@ -85,7 +85,7 @@
v-model="formInline[item.db_field_name]"
:disabled="disabled"
style="width: 100%"/>
<!-- :disabledDate="disabledDate"-->
<!-- :disabledDate="disabledDate"-->
</a-form-model-item>
</div>
</a-col>
@@ -376,8 +376,16 @@
},
IntegrateData() {
this.isFormInline = false
let ruleList = []
this.ruleList.forEach(res => {
Object.keys(res).forEach(val => {
res[val].forEach(ol => {
ruleList.push(ol)
})
})
})
let rules = {}
this.ruleList.forEach((res, index) => {
ruleList.forEach((res, index) => {
const rule = []
if (res.field_must_input == 1) {
if (res.field_show_type === '1') {
@@ -400,7 +408,7 @@
message: res.db_field_txt + this.$t('cannotEmpty'),
trigger: 'blur'
})
} else if (res.field_show_type === '8' || res.field_show_type === '9' || res.field_show_type === '10') {
} else if (res.field_show_type === '8' || res.field_show_type === '9' || res.field_show_type === '10' || res.field_show_type === '11') {
rule.push({
required: true,
message: res.db_field_txt + this.$t('cannotEmpty'),
@@ -428,6 +436,7 @@
}
})
this.$set(this, 'rules', rules)
console.log(this.rules)
this.isFormInline = true
this.confirmLoading = false
},