| | |
| | | }, |
| | | data() { |
| | | return { |
| | | isAchievement:false, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 } |
| | |
| | | default: false, |
| | | required: false |
| | | }, |
| | | isAchievement: { |
| | | achievement: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | |
| | | return this.disabled |
| | | }, |
| | | achievementDisabled() { |
| | | return this.isAchievement |
| | | return this.achievement |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | console.log("formData===>",formData); |
| | | httpAction(url, formData, method).then((res) => { |
| | | if (res.success) { |
| | | httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | }else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | if(this.achievementDisabled){ |
| | | httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | }else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | } |
| | | this.$message.success(res.message) |
| | | this.$emit('ok') |
| | | this.close() |