From 42f1d3a688c09fc7026939c1e708d29852ad4af6 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Wed, 6 Sep 2023 16:49:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=8E=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectManagement/components/addModelconformance.vue | 8 ++++---- .../projectNonConformance/moudles/addModel.vue | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/addModelconformance.vue b/jero-web/src/views/projectManagement/components/addModelconformance.vue index 5aeaa814d..0bdd14ac0 100644 --- a/jero-web/src/views/projectManagement/components/addModelconformance.vue +++ b/jero-web/src/views/projectManagement/components/addModelconformance.vue @@ -609,12 +609,12 @@ export default { this.confirmLoading = true let url = '' let action = '' - if (this.formInline.id) { - url = this.url.edit - action = putAction - } else { + if (this.title == this.$t('newlyAdded')) { url = this.url.add action = postAction + } else { + url = this.url.edit + action = putAction } // Object.keys(formInline).forEach(res => { // if (formInline[res] && formInline[res] instanceof Array) { diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue index 5aeaa814d..0bdd14ac0 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue @@ -609,12 +609,12 @@ export default { this.confirmLoading = true let url = '' let action = '' - if (this.formInline.id) { - url = this.url.edit - action = putAction - } else { + if (this.title == this.$t('newlyAdded')) { url = this.url.add action = postAction + } else { + url = this.url.edit + action = putAction } // Object.keys(formInline).forEach(res => { // if (formInline[res] && formInline[res] instanceof Array) {