|
|
@ -181,15 +181,18 @@ |
|
|
|
this.formList = res.result.employMaterialList |
|
|
|
|
|
|
|
res.result.employMaterialList.forEach(n => { |
|
|
|
if(n.isFill != 1){ |
|
|
|
return |
|
|
|
} |
|
|
|
if(n.type == 0){ |
|
|
|
this.verification[n.keyName] = '请输入' + n.title |
|
|
|
// 文本输入类型 |
|
|
|
if(n.isFill == 1){ |
|
|
|
this.verification[n.keyName] = '请输入' + n.title |
|
|
|
} |
|
|
|
this.form[n.keyName] = '' |
|
|
|
}else{ |
|
|
|
this.verification[n.keyName] = '请上传' + n.title |
|
|
|
// this.fileMapList[n.keyName] = [] |
|
|
|
// 图片上传类型 |
|
|
|
if(n.isFill == 1){ |
|
|
|
this.verification[n.keyName] = '请上传' + n.title |
|
|
|
} |
|
|
|
// 无论必填还是非必填,都需要初始化fileMapList |
|
|
|
this.$set(this.fileMapList, n.keyName, []) |
|
|
|
} |
|
|
|
}) |
|
|
|