From 664db98c9e8595ce4dd636a27f480e3a08b81ff5 Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期五, 21 二月 2025 11:13:51 +0800
Subject: [PATCH] 新增可忽略的维修时间

---
 web/src/views/modules/taskReliability/ReliabilityWeakness.vue |   30 +++++++++++++++++++++++++-----
 1 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/web/src/views/modules/taskReliability/ReliabilityWeakness.vue b/web/src/views/modules/taskReliability/ReliabilityWeakness.vue
index 12f09fa..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>
@@ -47,6 +47,8 @@
   </div>
 </template>
 <script>
+
+  import Cookies from "js-cookie";
 
   export default {
     data() {
@@ -76,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