From c8c42a473eb1269d8c9eed26b90975340850b0ea Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期三, 08 一月 2025 10:19:18 +0800
Subject: [PATCH] 修改bug:无法新增总体
---
web/src/views/modules/taskReliability/ReliabilityWeakness.vue | 31 +++++++++++++++++++++++++------
1 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/web/src/views/modules/taskReliability/ReliabilityWeakness.vue b/web/src/views/modules/taskReliability/ReliabilityWeakness.vue
index 81942b2..1fa39f9 100644
--- a/web/src/views/modules/taskReliability/ReliabilityWeakness.vue
+++ b/web/src/views/modules/taskReliability/ReliabilityWeakness.vue
@@ -21,12 +21,12 @@
:row-style="rowStyle"
border @selection-change="table.selectionChangeHandle">
<el-table-column prop="name" label="鍚嶇О"/>
- <el-table-column prop="mtbf" label="MTBF" align="right">
+ <el-table-column prop="mtbf" label="MTTF(浠诲姟鍙潬鎬�)" align="right">
<template slot-scope="scope">
<span>{{ keepNumber(scope.row.mtbf) }}</span>
</template>
</el-table-column>
- <el-table-column prop="mttr" label="MTTR" align="right">
+ <el-table-column prop="mttr" label="MTTR(浠诲姟鍙潬鎬�)" align="right">
<template slot-scope="scope">
<span>{{ keepNumber(scope.row.mttr) }}</span>
</template>
@@ -44,10 +44,11 @@
</el-table>
</zt-table-wraper>
</div>
-
</div>
</template>
<script>
+
+ import Cookies from "js-cookie";
export default {
data() {
@@ -77,13 +78,31 @@
},
},
mounted() {
- this.getProductList()
+ this.getProductList(Cookies.get('productId'))
},
methods: {
- async getProductList() {
+ getPath(){
+ if (Cookies.get('productId') != null){
+ this.dataForm.fzId = Cookies.get('fzId')
+ this.dataForm.productId = Cookies.get('productId')
+ this.dataForm.taskModelId = Cookies.get('taskModelId')
+ console.log(this.dataForm.productId)
+ this.getTaskList()
+ this.$nextTick(() => {
+ this.onProductSelected({id:this.dataForm.productId})
+ this.onTaskSelected({id:Cookies.get('taskModelId')})
+ this.onSimulatSelected({id:Cookies.get('fzId')})
+ })
+ }
+ },
+ async getProductList(productId) {
let res = await this.$http.get('/basicInfo/XhProductModel/getTaskProductList')
this.productList = res.data
- this.onProductSelected(this.productList[0])
+ if(productId!=null){
+ this.getPath()
+ }else{
+ this.onProductSelected(this.productList[0])
+ }
},
async getTaskList() {
let params = {
--
Gitblit v1.9.1