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)