From a8230f1ab02069431738bd72f36ab95a0ace01ae Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 06 八月 2024 15:22:22 +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