From fe295552e5a3b010b5a6a60a1e2a94bc39b49d68 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期二, 06 八月 2024 15:37:09 +0800 Subject: [PATCH] 修改 --- web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue b/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue index eed5944..976797f 100644 --- a/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue +++ b/web/src/views/modules/basicInfo/XhProductModel-AddOrUpdate.vue @@ -43,11 +43,12 @@ id: '', pid: '', name: '', + shipId: '', productType: '', operatImg: '', operatImgName: '', sort: '', - equipType:'', + equipType: '', status: '' } } @@ -57,6 +58,9 @@ }, methods: { init(id, params) { + if (params.shipId) { + this.dataForm.shipId = params.shipId + } if (params.type === 'xh') { this.isShow = false this.dataForm.pid = null @@ -88,7 +92,7 @@ productType: selected } let res = await this.$http.get(`/sysPictureBase/getDefaultImg`, {params: params}) - if (res.data){ + if (res.data) { this.dataForm.operatImgName = res.data.name this.dataForm.operatImg = res.data.id } @@ -126,7 +130,6 @@ await this.$tip.success() this.$refs.dialog.close() this.$emit('refreshDataList') - this.map.clear() } } } -- Gitblit v1.9.1