修复周三测试提出的住数据bug
This commit is contained in:
parent
9cccbd430a
commit
4cbbb147e2
|
@ -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()
|
||||||
},
|
}
|
||||||
|
,
|
||||||
//type表下拉触发(目的是为了服务名称下拉后拿到label
|
//type表下拉触发(目的是为了服务名称下拉后拿到label
|
||||||
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)
|
||||||
|
@ -604,7 +668,7 @@ export default {
|
||||||
width: true
|
width: true
|
||||||
}
|
}
|
||||||
let tempArr = []
|
let tempArr = []
|
||||||
let disabledWords = ['id', 'formmain_id', 'data_status', 'sorts', 'create_user_id', 'create_time', 'modify_user_id', 'modify_time', 'sts', 'org_id', 'company_id','data_id']
|
let disabledWords = ['id', 'formmain_id', 'data_status', 'sorts', 'create_user_id', 'create_time', 'modify_user_id', 'modify_time', 'sts', 'org_id', 'company_id', 'data_id']
|
||||||
if (disabledWords.includes(this.optionRuleForm.enName)) {
|
if (disabledWords.includes(this.optionRuleForm.enName)) {
|
||||||
this.$vmNews(`暂存失败,英文名${this.optionRuleForm.enName}不合法。`)
|
this.$vmNews(`暂存失败,英文名${this.optionRuleForm.enName}不合法。`)
|
||||||
return
|
return
|
||||||
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in New Issue