| | |
| | | <el-form-item label="工作简历"> |
| | | <el-upload |
| | | action="#" |
| | | multiple |
| | | :limit="20" |
| | | :on-exceed="overLimit" |
| | | :auto-upload="false" |
| | | accept="image/*,.pdf" |
| | | :file-list="resumeList" |
| | |
| | | <el-form-item label="发明、著作、学术论文情况(何时、何地出版或发表)"> |
| | | <el-upload |
| | | action="" |
| | | multiple |
| | | :limit="20" |
| | | :on-exceed="overLimit" |
| | | :auto-upload="false" |
| | | accept="image/*,.pdf" |
| | | list-type="picture-card" |
| | |
| | | <el-form-item label="受过何种奖励"> |
| | | <el-upload |
| | | action="" |
| | | multiple |
| | | :limit="20" |
| | | :on-exceed="overLimit" |
| | | :auto-upload="false" |
| | | accept="image/*,.pdf" |
| | | list-type="picture-card" |
| | |
| | | <el-form-item label="应急管理相关工作主要业绩及研究成果"> |
| | | <el-upload |
| | | action="" |
| | | multiple |
| | | :limit="20" |
| | | :on-exceed="overLimit" |
| | | :auto-upload="false" |
| | | accept="image/*,.pdf" |
| | | list-type="picture-card" |
| | |
| | | <el-form-item label="专家本人意见"> |
| | | <el-upload |
| | | action="" |
| | | multiple |
| | | :limit="20" |
| | | :on-exceed="overLimit" |
| | | :auto-upload="false" |
| | | accept="image/*,.pdf" |
| | | list-type="picture-card" |
| | |
| | | <el-form-item label="推荐单位意见"> |
| | | <el-upload |
| | | action="" |
| | | multiple |
| | | :limit="20" |
| | | :on-exceed="overLimit" |
| | | :auto-upload="false" |
| | | accept="image/*,.pdf" |
| | | list-type="picture-card" |
| | |
| | | idCard: [{ required: true, validator: verifyId, trigger: 'blur' }], |
| | | dutyStatus: [{ required: true, message: '请选择在岗情况', trigger: 'blur' }], |
| | | companyName: [{ required: true, message: '请填写单位全称', trigger: 'blur' }], |
| | | degree: [{ required: true, message: '请填写最高学历', trigger: 'blur' }], |
| | | supportDirectionSafety: [{ required: true, message: '请选择支撑方向', trigger: 'blur' }], |
| | | supportDirectionPrevention: [{ required: true, message: '请选择支撑方向', trigger: 'blur' }], |
| | | supportDirectionEmergency: [{ required: true, message: '请选择支撑方向', trigger: 'blur' }] |
| | | degree: [{ required: true, message: '请填写最高学历', trigger: 'blur' }] |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | console.log(file, fileList); |
| | | }, |
| | | async submit(){ |
| | | if(this.form.supportDirectionSafety.length == 0 && this.form.supportDirectionPrevention.length == 0 && this.form.supportDirectionEmergency.length == 0){ |
| | | this.$message({ |
| | | type:'warning', |
| | | message: '请至少选择一种支撑方向' |
| | | }) |
| | | return |
| | | } |
| | | this.$refs["ruleForm"].validate(async(valid) =>{ |
| | | if(valid) { |
| | | await this.submitUpload() |
| | |
| | | data.smallClassify = data.profession[1] |
| | | delete data.profession |
| | | const res= await addExpertInfo(data) |
| | | console.log(res,'res') |
| | | if(res.code == 200){ |
| | | this.$message({ |
| | | type:'success', |
| | | message: res.msg |
| | | }) |
| | | this.$emit('closeDialog') |
| | | this.$refs.ruleForm.resetFields() |
| | | this.fileList = [] |
| | | this.resumeList = [] |