| | |
| | | } |
| | | |
| | | const onSubmit = async () => { |
| | | let isCode = false; |
| | | const valid = await superRef.value.validate(); |
| | | if(valid){ |
| | | state.form.majorShow.forEach(item => { |
| | | if(item.certificateNo == ''){ |
| | | ElMessage.warning('请输入对应的证书编号') |
| | | return ; |
| | | if(item.certificateNo === undefined || item.certificateNo === ''){ |
| | | isCode = true; |
| | | } |
| | | }) |
| | | if(isCode){ |
| | | ElMessage.warning('请输入对应的证书编号') |
| | | return ; |
| | | } |
| | | if(state.title == '新增'){ |
| | | const {confirmPassword,id,socialList,salaryList,medicalList,...data} = state.form |
| | | data.password = Base64.encode(data.password) |