From 1069d8bf6622690e6be091753def954ccf4495ae Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期二, 10 十二月 2024 10:38:53 +0800
Subject: [PATCH] 修改
---
web/src/views/modules/taskReliability/TimeDiagram.vue | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/web/src/views/modules/taskReliability/TimeDiagram.vue b/web/src/views/modules/taskReliability/TimeDiagram.vue
index 5aaf2c8..bf021da 100644
--- a/web/src/views/modules/taskReliability/TimeDiagram.vue
+++ b/web/src/views/modules/taskReliability/TimeDiagram.vue
@@ -150,7 +150,7 @@
window.removeEventListener('scroll', this.handleScroll);
},
mounted() {
- this.getProductList()
+ this.getProductList(Cookies.get('productId'))
this.init()
this.$refs.textDiagram.init()
this.$refs.timeDiagramThumbnail.init()
@@ -169,6 +169,20 @@
let top = this.graph.getScrollbarPosition().top
this.$refs.textDiagram.setScroll(top)
this.$refs.timeDiagramThumbnail.getNodePointX(left,this.bigWidth)
+ },
+ getPath(){
+ if (Cookies.get('productId') != null){
+ this.dataForm.id = Cookies.get('fzId')
+ this.dataForm.productId = Cookies.get('productId')
+ this.dataForm.taskModelId = Cookies.get('taskModelId')
+ console.log(this.dataForm.id)
+ this.getTaskList()
+ this.$nextTick(() => {
+ this.onProductSelected({id:this.dataForm.productId})
+ this.onTaskSelected({id:Cookies.get('taskModelId')})
+ this.onSimulatSelected({id:Cookies.get('fzId')})
+ })
+ }
},
init() {
this.graph = new Graph({
@@ -363,10 +377,14 @@
style.display = 'none'
})
},
- async getProductList() {
+ 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