From 134c06beb2b6b7f7025fb030a9e52bcceebbfc98 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期一, 15 七月 2024 14:36:49 +0800
Subject: [PATCH] 修改

---
 web/src/views/modules/basicInfo/XhProductModel.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/web/src/views/modules/basicInfo/XhProductModel.vue b/web/src/views/modules/basicInfo/XhProductModel.vue
index 640b5b5..2909167 100644
--- a/web/src/views/modules/basicInfo/XhProductModel.vue
+++ b/web/src/views/modules/basicInfo/XhProductModel.vue
@@ -37,7 +37,7 @@
               <el-table-column prop="sort" label="鎺掑簭" width="100px"/>
               <zt-table-column-handle :table="table" width="180px">
                 <template v-slot="{ row }">
-                  <zt-table-button v-if="productType==='5'" size="small" type="primary"
+                  <zt-table-button v-if="productType==='1'" size="small" type="primary"
                                    @click="importData(row)">瀵煎叆
                   </zt-table-button>
                 </template>
@@ -85,7 +85,8 @@
     methods: {
       add() {
         this.dataForm.type = this.productType
-        if (this.dataForm.type !== '5') {
+        alert(this.dataForm.type )
+        if (this.dataForm.type !== '1') {
           if (this.dataForm.type !== '3') {
             this.dataForm.type = this.dataForm.type - 1
           } else if (this.dataForm.type === '3') {
@@ -121,7 +122,7 @@
         }
       },
       importData(row) {
-        this.$refs.ProductImport.$refs.dialog.init(row.id)
+        this.$refs.ProductImport.$refs.dialog.init(row)
       }
     }
   }

--
Gitblit v1.9.1