From 20cfd0b7a41b27e72a7a8eb20bdf58c480bcf110 Mon Sep 17 00:00:00 2001 From: baoyu <102349094+Bytq@users.noreply.github.com> Date: Fri, 29 Mar 2024 10:35:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86/=E8=AF=91=E6=96=87=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=B3=E8=AF=B7=20=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/addModal.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue index 279a9771f..c97f16d36 100644 --- a/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue +++ b/src/pages/regulatoryRepository/standardTranslationAcquisitionRequest/components/addModal.vue @@ -171,6 +171,7 @@ export default { this.visible = false }, addModel () { + this.id = '' this.visible = true this.StandardApplyForEO = {} this.StandardApplyForEO.applyForUserId = this.$store.getters.userInfo.userId @@ -184,10 +185,14 @@ export default { }) }, showModal (item) { + this.id = item.id this.visible = true + this.showLoading = true this.StandardApplyForEO = JSON.parse(JSON.stringify(item)) this.$nextTick(() => { this.$refs.addFormRef.clearValidate() + this.getDicTypeListCode() + this.selectStandType(this.StandardApplyForEO.standType) }) }, selectStandType (value) { @@ -201,6 +206,7 @@ export default { this.$nextTick(() => { this.standLbList = res.data this.$set(this.StandardApplyForEO, 'standLb', null) + this.showLoading = false }) return } @@ -213,11 +219,15 @@ export default { if (valid) { this.isSubmit = true const url = this.id ? this.url.editUrl : this.url.addUrl + if (this.id) { + delete this.StandardApplyForEO.updateTime + delete this.StandardApplyForEO.updateBy + } this.$http.postData(url, this.StandardApplyForEO, { _this: this }, res => { if (res.ok) { this.$emit('updateList') - this.$message.success(res.message) + this.$message.success(res.data) this.visible = false }else{ this.$message.warning(res.message)