From c0e3f24edd2ef47339c676ff3dc6fdc06b3c387e Mon Sep 17 00:00:00 2001 From: xyc <jc_xiong@hotmail.com> Date: 星期五, 18 十月 2024 10:42:40 +0800 Subject: [PATCH] 1)修改bug:可靠性预计参数配置,可靠性分布类型下拉框缺少威布尔分布; 2)细化可靠性仿真评估报错信息。 --- web/src/views/modules/taskReliability/ModelRbd.vue | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/web/src/views/modules/taskReliability/ModelRbd.vue b/web/src/views/modules/taskReliability/ModelRbd.vue index 61fde75..62e621e 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"> @@ -33,7 +33,7 @@ <el-table-column prop="modelTag" label="妯″瀷鏍囪瘑"/> <el-table-column prop="quoteNum" label="琚紩鐢ㄦ暟" align="center"/> <el-table-column prop="modelState" label="妯″瀷鐘舵��" align="center"/> - <el-table-column prop="modelDataState" label="妯″瀷鏁版嵁鐘舵��" align="center"/> + <!-- <el-table-column prop="modelDataState" label="妯″瀷鏁版嵁鐘舵��" align="center"/>--> <el-table-column prop="remark" label="澶囨敞"/> <zt-table-column-handle :table="table" delete-perm="taskReliability::delete" :has-view="false" width="180px"> @@ -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,16 +63,18 @@ data() { return { dialogVisible2: false, + title:'', dataForm: { modelName: '', modelState:'', productId: '', modelTag: '', + shipId: '', } } }, mounted() { - + this.$refs.ProductModelTree.getProductList() }, components: { ProductModelTree, @@ -81,15 +83,21 @@ }, methods: { add() { - this.$refs.AddOrUpdate.$refs.dialog.init(null, this.dataForm.productId) + this.$refs.AddOrUpdate.$refs.dialog.init(null, {productId:this.dataForm.productId,shipId:this.dataForm.shipId}) }, onProductSelected(data) { this.dataForm.productId = data.id + this.dataForm.shipId = data.shipId 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