|
|
@ -137,7 +137,7 @@ |
|
|
|
<!-- <el-col v-for="n in item" :key="n.id" :span="n.itemType === 'textarea'&&24 || (24/columns)"> --> |
|
|
|
<el-col v-for="n in item" :key="n.itemId" :span="item.length === 1 ? 24 : (24/columns)" |
|
|
|
:style="n.itemType === 'divider' && 'display: none;'"> |
|
|
|
<el-form-item :prop="n.columnName" :label="n.label" :required="Boolean(n.required)"> |
|
|
|
<el-form-item :prop="n.columnName" :label="n.label"> |
|
|
|
<!-- <div class="resi-cell"> --> |
|
|
|
<!-- <div class="resi-cell-label">{{n.label}}</div> --> |
|
|
|
<div class="resi-cell-value"> |
|
|
@ -363,11 +363,11 @@ export default { |
|
|
|
if (item.required) { |
|
|
|
if (item.validType === 'mobile') { |
|
|
|
rules[item.columnName] = [ |
|
|
|
{ validator: checkMObile, trigger: 'blur' } |
|
|
|
{ required: true, validator: checkMObile, trigger: 'blur' } |
|
|
|
] |
|
|
|
} else if (item.validType === 'id_card') { |
|
|
|
rules[item.columnName] = [ |
|
|
|
{ validator: checkIdCard, trigger: 'blur' } |
|
|
|
{ required: true, validator: checkIdCard, trigger: 'blur' } |
|
|
|
] |
|
|
|
} else { |
|
|
|
rules[item.columnName] = [ |
|
|
@ -501,7 +501,7 @@ export default { |
|
|
|
}, |
|
|
|
created () { |
|
|
|
this.initForm() |
|
|
|
// console.log('formInfo---ggg', this.form) |
|
|
|
console.log('formInfo---gggreg', this.rulesForm) |
|
|
|
if (this.supportAdd) { |
|
|
|
this.addList = [...this.mutiList] |
|
|
|
// console.log('addList----111', this.addList) |
|
|
|