| | |
| | | ENV = 'development' |
| | | |
| | | # 规财安评管理系统/开发环境 |
| | | VUE_APP_BASE_API = 'http://192.168.0.70:8080' |
| | | #VUE_APP_BASE_API = 'http://106.15.95.149:7006' |
| | | #VUE_APP_BASE_API = 'http://192.168.0.70:8080' |
| | | VUE_APP_BASE_API = 'http://106.15.95.149:7006' |
| | | |
| | | # 路由懒加载F |
| | | VUE_CLI_BABEL_TRANSPILE_MODULES = true |
| | |
| | | idCard: [{ required: true, message: '请填写身份证号', 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' }] |
| | | }, |
| | | electronicPhoto: [], |
| | | resumePhoto: [], |
| | |
| | | <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 = [] |
| | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageIndex" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | <form-dialog ref="formDialog"></form-dialog> |
| | | <el-dialog title="新增信息" :visible.sync="addForm" width="75%" append-to-body> |
| | | <form-fill ref="formFill"></form-fill> |
| | | <form-fill ref="formFill" @closeDialog="closeAdd()"></form-fill> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | expertTypes: [], |
| | | expertList: [], |
| | | queryParams: { |
| | | pageIndex: 1, |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | bigClassify: null, |
| | | smallClassify: null, |
| | |
| | | return null; |
| | | }, |
| | | handleQuery() { |
| | | this.queryParams.pageIndex = 1 |
| | | this.queryParams.pageNum = 1 |
| | | if(this.classiFy.length>0){ |
| | | this.queryParams.bigClassify = this.classiFy[0] |
| | | this.queryParams.smallClassify = this.classiFy[1] |
| | |
| | | this.$refs.formFill.changeSource(2) |
| | | },1000) |
| | | }, |
| | | closeAdd(){ |
| | | this.addForm = false |
| | | this.getList() |
| | | }, |
| | | /** 修改按钮操作 */ |
| | | handleUpdate(row) { |
| | | getInfo(row.expertId).then((res)=>{ |