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) {