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/SelectModelRbd.vue | 31 ++++++++++++++-----------------
1 files changed, 14 insertions(+), 17 deletions(-)
diff --git a/web/src/views/modules/taskReliability/SelectModelRbd.vue b/web/src/views/modules/taskReliability/SelectModelRbd.vue
index ba1c9cb..2f17b08 100644
--- a/web/src/views/modules/taskReliability/SelectModelRbd.vue
+++ b/web/src/views/modules/taskReliability/SelectModelRbd.vue
@@ -1,21 +1,16 @@
<template>
- <zt-dialog ref="dialog" column="2" title="閫夋嫨绯荤粺妯″瀷" append-to-body :editAble="false" :hasConfirm="false">
- <el-card shadow="never" class="aui-card--fill">
- <div class="mod-taskReliability-modelRbd}">
+ <zt-dialog ref="dialog" column="1" title="閫夋嫨绯荤粺妯″瀷" append-to-body :editAble="false" :hasConfirm="false">
<zt-table-wraper ref="tableObj" query-url="/taskReliability/ModelRbd/page"
:paging='false'
v-slot="{ table }">
- <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
- </el-form>
- <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:30}"
+ <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"></el-form>
+ <el-table v-loading="table.dataLoading" :data="table.dataList" height="300"
border @row-dblclick="selectModel"
@selection-change="table.selectionChangeHandle">
<el-table-column prop="modelName" label="妯″瀷鍚嶇О"/>
</el-table>
<!-- 寮圭獥, 鏂板 / 淇敼 -->
</zt-table-wraper>
- </div>
- </el-card>
</zt-dialog>
</template>
@@ -25,12 +20,13 @@
name: 'SelectModelRbd',
data() {
return {
+ param: null,
dataForm: {
id: '',
modelName: '',
modelState: '',
productId: '',
- phaseId: '',
+ operatConditId: '',
modelId: '',
}
}
@@ -41,19 +37,20 @@
components: {},
methods: {
init(param) {
- this.dataForm.productId = param.row.productId
- this.dataForm.phaseId = param.phaseId
- this.dataForm.id = param.row.id
+ console.log(param)
+ this.param = param
+ this.dataForm.productId = param.id
+ this.dataForm.operatConditId = param.operatConditId
+ this.dataForm.id = param.operatConditModelId
},
- async selectModel(row) {
+ async selectModel(selectRow) {
console.log(this.dataForm)
- this.dataForm.modelId = row.id
- this.dataForm.productId = row.productId
- let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/taskReliability/TaskPhaseModel/', this.dataForm)
+ this.dataForm.modelId = selectRow.id
+ let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/taskReliability/OperatConditModel/', this.dataForm)
if (res.success) {
await this.$tip.success()
this.$refs.dialog.close()
- this.$emit('setModel')
+ this.param.modelName = selectRow.modelName
}
}
}
--
Gitblit v1.9.1