From 05e2475068caa88b8f07b1836b862ffc3206d4d5 Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期一, 12 八月 2024 11:55:05 +0800
Subject: [PATCH] 修改

---
 web/src/views/modules/taskReliability/ModelRbd.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/web/src/views/modules/taskReliability/ModelRbd.vue b/web/src/views/modules/taskReliability/ModelRbd.vue
index 61fde75..b4432ac 100644
--- a/web/src/views/modules/taskReliability/ModelRbd.vue
+++ b/web/src/views/modules/taskReliability/ModelRbd.vue
@@ -3,7 +3,7 @@
     <el-row :gutter="5">
       <el-col :span="5">
         <div class="fa-card-a" style="margin-right: 5px;height: calc(100vh - 123px)">
-          <product-model-tree @on-selected="onProductSelected" showXdy="true" :isShow="false"/>
+          <product-model-tree ref="ProductModelTree" @on-selected="onProductSelected" @on-default="onDefault" showXdy="true" :isShow="false"/>
         </div>
       </el-col>
       <el-col :span="19">
@@ -72,7 +72,7 @@
       }
     },
     mounted() {
-
+      this.$refs.ProductModelTree.getProductList()
     },
     components: {
       ProductModelTree,
@@ -88,6 +88,10 @@
         console.log(data, 'onProductSelected(data)')
         this.$refs.tableObj.query()
       },
+      onDefault(defaultId){
+        this.dataForm.productId = defaultId
+        this.$refs.tableObj.query()
+      },
       drawRBD(row) {
         this.dialogVisible2 = true
         this.$nextTick(() => {

--
Gitblit v1.9.1