From 16d99a3f6da4cebed2376fa42e025b53c2891818 Mon Sep 17 00:00:00 2001
From: “linengliang” <vanSuperEnergy@163.com>
Date: 星期二, 12 十二月 2023 15:26:08 +0800
Subject: [PATCH] 维修履历
---
src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue b/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue
index 3064b2e..fa9fee4 100644
--- a/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue
+++ b/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue
@@ -88,7 +88,6 @@
},
data() {
return {
- isAchievement:false,
labelCol: {
xs: { span: 24 },
sm: { span: 5 }
@@ -232,7 +231,7 @@
default: false,
required: false
},
- isAchievement: {
+ achievement: {
type: Boolean,
default: false,
required: false
@@ -243,7 +242,7 @@
return this.disabled
},
achievementDisabled() {
- return this.isAchievement
+ return this.achievement
}
},
created() {
@@ -309,13 +308,15 @@
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()
--
Gitblit v1.9.3