From b3e5003294553a83f93aa1b8e5c131ad155ec5dc Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期四, 05 九月 2024 09:38:04 +0800
Subject: [PATCH] 修改
---
web/src/views/modules/taskReliability/ModelRbd.vue | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/web/src/views/modules/taskReliability/ModelRbd.vue b/web/src/views/modules/taskReliability/ModelRbd.vue
index 61fde75..63f7d68 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">
@@ -44,7 +44,7 @@
</el-table>
<!-- 寮圭獥, 鏂板 / 淇敼 -->
<add-or-update @refreshDataList="table.query" ref="AddOrUpdate"/>
- <el-dialog v-dialogDrag title="妯″瀷璁捐" top="1vh" width='95%' :visible.sync="dialogVisible2" v-if="dialogVisible2">
+ <el-dialog v-dialogDrag :title="title" top="1vh" width='95%' :visible.sync="dialogVisible2" v-if="dialogVisible2">
<RBDEditImg ref="rbdEditImg" @refreshDataList="table.query"></RBDEditImg>
</el-dialog>
</zt-table-wraper>
@@ -63,6 +63,7 @@
data() {
return {
dialogVisible2: false,
+ title:'',
dataForm: {
modelName: '',
modelState:'',
@@ -72,7 +73,7 @@
}
},
mounted() {
-
+ this.$refs.ProductModelTree.getProductList()
},
components: {
ProductModelTree,
@@ -88,8 +89,13 @@
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.title=row.modelName + '妯″瀷璁捐'
this.$nextTick(() => {
this.$refs.rbdEditImg.init(row)
})
--
Gitblit v1.9.1