From 5ef47212d7a7d5d8fa2b02674c1f1263b07826d0 Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期四, 07 十一月 2024 17:45:41 +0800 Subject: [PATCH] 修改工况bug,新增产品节点时存在 --- web/src/views/modules/basicInfo/XhProductModel.vue | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/web/src/views/modules/basicInfo/XhProductModel.vue b/web/src/views/modules/basicInfo/XhProductModel.vue index e564467..5683acf 100644 --- a/web/src/views/modules/basicInfo/XhProductModel.vue +++ b/web/src/views/modules/basicInfo/XhProductModel.vue @@ -101,14 +101,15 @@ this.dataForm.type = this.productType if (this.dataForm.type !== '1') { - this.$refs.SelectTyModel.$refs.dialog.init(null, { + /*this.$refs.SelectTyModel.$refs.dialog.init(null, { type: this.dataForm.type, id: this.dataForm.pid, shipId: this.shipId, namePath: this.namePath - }) + })*/ + this.$refs.AddOrUpdate.$refs.dialog.init(null, {id: null, productType: parseInt(this.dataForm.type)+1 , pid: this.dataForm.pid,shipId: this.shipId,namePath: this.namePath}) } else { - this.$refs.AddOrUpdate.$refs.dialog.init(null, {id: null, type: 'zt', pid: this.dataForm.pid}) + this.$refs.AddOrUpdate.$refs.dialog.init(null, {id: null, type: 'zt', pid: this.dataForm.pid,shipId: this.shipId}) } }, addCell() { @@ -156,9 +157,6 @@ }) let apiURL = `/basicInfo/XhProductModel/exportData` window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}` - - - }, exportProduct() { window.location.href = './浜у搧缁撴瀯鏍戝鍏ユā鏉�.xlsx' -- Gitblit v1.9.1