diff --git a/pages_order/work/postConsult.vue b/pages_order/work/postConsult.vue index d9ea4fd..bc9bb76 100644 --- a/pages_order/work/postConsult.vue +++ b/pages_order/work/postConsult.vue @@ -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, []) } }) diff --git a/uni_modules/employ-front b/uni_modules/employ-front new file mode 160000 index 0000000..a2e1192 --- /dev/null +++ b/uni_modules/employ-front @@ -0,0 +1 @@ +Subproject commit a2e1192746fcce241cd52ac45b04cc8dc96f8499