修复周三测试提出的住数据bug

This commit is contained in:
hyt 2024-07-02 14:40:24 +08:00
parent 9cccbd430a
commit 4cbbb147e2
1 changed files with 98 additions and 33 deletions

View File

@ -100,7 +100,7 @@ export default {
required: true, required: true,
fontSize: 16, fontSize: 16,
pattern: /^[a-z][a-z0-9_]{0,50}$/, pattern: /^[a-z][a-z0-9_]{0,50}$/,
message: "必须以小写字母开头,只能包含小写字母、数字和下划线,不能包含中文字符或其他符号。", message: '必须以小写字母开头,只能包含小写字母、数字和下划线,不能包含中文字符或其他符号。',
disabledOfId: true disabledOfId: true
} }
] ]
@ -232,7 +232,8 @@ export default {
}, { }, {
label: 'treeselect', label: 'treeselect',
id: 'treeselect' id: 'treeselect'
}, { },
{
label: 'number', label: 'number',
id: 'num' id: 'num'
} }
@ -504,6 +505,7 @@ export default {
}, true) }, true)
} }
this.selectChangeHanlde(this.optionRuleForm.type, '', '', { id: 'type' }, true) this.selectChangeHanlde(this.optionRuleForm.type, '', '', { id: 'type' }, true)
this.selectChangeHanlde(this.optionRuleForm.filedType, '', '', { id: 'filedType' }, true)
this.propertyActiveList = propertyRuleForm this.propertyActiveList = propertyRuleForm
this.propertyActiveListChangeHanlde(this.propertyActiveList) this.propertyActiveListChangeHanlde(this.propertyActiveList)
@ -535,17 +537,77 @@ export default {
}) })
} }
} }
//
if (row.id === 'filedType') {
if (val) {
let dist = {
1: [
{
label: 'number',
id: 'num'
}
],
2: [
{
label: 'number',
id: 'num'
}
],
3: [
{
label: 'input',
id: 'input'
}, },
{
label: 'radio',
id: 'radio'
},
{
label: 'textrea',
id: 'textrea'
},
{
label: 'select',
id: 'select'
},
{
label: 'treeselect',
id: 'treeselect'
}
],
4: [
{
label: 'datepick',
id: 'datepick'
}, {
label: 'daterange',
id: 'daterange'
}
]
}
this.optionFormRow[7].elCol[0].options = dist[val]
}
if (!init) {
this.$set(this.optionRuleForm, 'type', '')
this.typeOptionFormRow = []
this.typeOptionRuleForm = {}
}
}
}
,
// //
optionFormInputBlur(id, row) { optionFormInputBlur(id, row) {
if (id === 'chName' && !row.title) { if (id === 'chName' && !row.title) {
this.$set(row, 'title', row['chName']) this.$set(row, 'title', row['chName'])
} }
}, }
,
// //
optionOnSubmit() { optionOnSubmit() {
this.$refs.typeOptionForm.submitForm() this.$refs.typeOptionForm.submitForm()
}, }
,
//typelabel //typelabel
async typeSelectChangeHanlde(val, index, indexRow, row, initFlag = false) { async typeSelectChangeHanlde(val, index, indexRow, row, initFlag = false) {
if (row.id === 'service') { if (row.id === 'service') {
@ -579,11 +641,13 @@ export default {
} }
}) })
} }
}, }
,
//type //type
typeOptionOnSubmit() { typeOptionOnSubmit() {
this.$refs.propertyForm.submitForm() this.$refs.propertyForm.submitForm()
}, }
,
// //
propertyOnSubmit() { propertyOnSubmit() {
console.log('进入保存方法', this.activedTableRow) console.log('进入保存方法', this.activedTableRow)
@ -662,7 +726,8 @@ export default {
console.log(params) console.log(params)
this.$emit('sonSaveHandle', params) this.$emit('sonSaveHandle', params)
}, }
,
// //
propertyActiveListChangeHanlde(val) { propertyActiveListChangeHanlde(val) {
this.propertyFormRow = [] this.propertyFormRow = []