标签属性类型修改

This commit is contained in:
caoyang
2022-03-31 01:05:57 +08:00
parent 4c885c2303
commit 4c87ba4560
3 changed files with 8 additions and 6 deletions
@@ -323,7 +323,7 @@
:title="Title" :title="Title"
class="split-title" class="split-title"
:visible="addConVisible" :visible="addConVisible"
:confirm-loading="confirmLoading"
@ok="handleOk" @ok="handleOk"
@cancel="handleCancel" @cancel="handleCancel"
> >
@@ -654,7 +654,7 @@
}, },
//保存 //保存
splitSave(){ splitSave(){
console.log('vallll',this.contentList) // console.log('vallll',this.contentList)
// console.log('formInline',this.formInline) // console.log('formInline',this.formInline)
this.$refs.splitEditForm.validate(valid=>{ this.$refs.splitEditForm.validate(valid=>{
if(valid){ if(valid){
@@ -941,7 +941,7 @@
}) })
} }
} }
if (res.field_show_type === '1' || res.field_show_type === '2' || if (res.field_show_type === '1' ||
res.field_show_type === '8' || res.field_show_type === '9' || res.field_show_type === '10' res.field_show_type === '8' || res.field_show_type === '9' || res.field_show_type === '10'
|| res.field_show_type === '11') { || res.field_show_type === '11') {
rule.push({ rule.push({
@@ -958,6 +958,7 @@
// console.log('rules',this.rules) // console.log('rules',this.rules)
this.isFormInline = true this.isFormInline = true
this.confirmLoading = false this.confirmLoading = false
// console.log('this.column',this.column)
}, },
getForm(callBack) { getForm(callBack) {
this.confirmLoading = true this.confirmLoading = true
@@ -983,10 +984,11 @@
}) })
}, },
add() { add() {
this.getForm()
this.visible=true this.visible=true
this.formInline = {} this.formInline = {}
this.type = 'add' this.type = 'add'
this.getForm()
}, },
StandardselectionChange(value, id) { StandardselectionChange(value, id) {
this.formInline[value + '_id'] = id this.formInline[value + '_id'] = id
@@ -115,7 +115,7 @@
], ],
description:[ description:[
{ required: true, message: this.$t('PleaseEnterDescription'), trigger: 'blur' }, { required: true, message: this.$t('PleaseEnterDescription'), trigger: 'blur' },
{ min:1, max: 300, message: this.$t('cantExeed')+'300'+this.$t('characters'), trigger: 'blur' }, { min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
] ]
}, },
tableData:[], tableData:[],
@@ -156,7 +156,7 @@
], ],
description:[ description:[
{ min:1, max: 300, message: this.$t('cantExeed')+'300'+this.$t('characters'), trigger: 'blur' }, { min:1, max: 200, message: this.$t('cantExeed')+'200'+this.$t('characters'), trigger: 'blur' },
] ]
}, },
// typeVisible:{}, // typeVisible:{},