From c4bcedfb506bbd6096d7c3153038043238123992 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 21 十一月 2023 10:47:33 +0800
Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/SchedulingDashboard into dev

---
 src/views/visualization.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/views/visualization.vue b/src/views/visualization.vue
index 9bae842..21d227a 100644
--- a/src/views/visualization.vue
+++ b/src/views/visualization.vue
@@ -914,12 +914,12 @@
     getModelList(){
       for (let i in this.TasksCopy){
         this.TasksCopy[i].isUpdateIcon=false;
-        if(this.TasksCopy[i].Procedure.ID&&this.TasksCopy[i].number){
+        // number:this.TasksCopy[i].number
+        if(this.TasksCopy[i].Procedure.ID){
           processModelList({
             procedureId: this.TasksCopy[i].Procedure.ID,
             page: 1,
             pageSize:6,
-            number:this.TasksCopy[i].number
           }).then(res=>{
             if(res.code==200){
               this.processList=res.data?res.data:[];
@@ -1185,6 +1185,8 @@
       getTaskInfo({taskMode:1}).then((res) => {
         if (res.code === 200&&res.data) {
           this.TaskCount=res.data?.TaskCount ?? 0
+        }else {
+          this.TaskCount = 0
         }
       },err=>{
         this.TaskCount = 0
@@ -1306,6 +1308,7 @@
                 }, 3000);
               }
         }else{
+          this.TaskCount = 0
           const allChannels = [0,1];
           allChannels.forEach(channel => this.TasksCopy.push(this.newTaskPlaceholder(channel)))
           this.TasksCopy.sort((a,b)=>a.Channel - b.Channel)

--
Gitblit v1.8.0