From 14101bd42ce17dfb9d951d0738abe9d303fb3fe5 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期一, 11 十二月 2023 10:41:39 +0800
Subject: [PATCH] 机器开机率、人员技能比饼图优化

---
 src/components/AddIssue.vue |   42 +++++++++++++++++++++++++++++++-----------
 1 files changed, 31 insertions(+), 11 deletions(-)

diff --git a/src/components/AddIssue.vue b/src/components/AddIssue.vue
index aa22a78..223ce43 100644
--- a/src/components/AddIssue.vue
+++ b/src/components/AddIssue.vue
@@ -41,7 +41,7 @@
             </div>
             
           </template>
-          <template v-else>
+          <template v-else-if="Object.keys(taskData).length > 0 ">
             <div class="title-box margin_bottom_13">
               <div class="title-item color_4efefa font_size_20 title-bng">
                 褰撳墠浠诲姟锛歿{ taskData.Procedure.procedure.procedureName || "" }}
@@ -167,7 +167,7 @@
       </div>
       <div slot="footer" :class="messageError?'dialog-footer tac btn-error':'dialog-footer tac'" style="overflow: hidden">
         <template v-if="messageError">
-          <div class="btn" v-if="messageError =='涓嬪彂鎴愬姛锛�'"  @click="closeClick">
+          <div class="btn" v-if="messageError =='涓嬪彂鎴愬姛锛�'||ArrError"  @click="closeClick">
             <img  src="../../public/close-btn.png" />
           </div>
           <div class="btn" v-else  @click="confirmClick2">
@@ -229,12 +229,24 @@
         return [];
       },
     },
+    ArrError:{
+      type: [String],
+      default: () => {
+        return '';
+      },
+    },
     safeProduce:{
       type: [String],
       default: () => {
         return '';
       },
-    }
+    },
+    activeName:{
+      type: [String,Number],
+      default: () => {
+        return 1;
+      },
+    },
   },
   data() {
     return {
@@ -278,6 +290,10 @@
       this.num = 0;
       this.showBtn=1;
       this.isLoading=false
+      this.sencond=0
+      this.sencondTimer=null
+      this.messageError=''
+      this.resParams= {},
       this.$emit('isTip',this.islook)
     },
   },
@@ -304,16 +320,20 @@
     getInfo() {
       // 1 鏈敓浜� 2鐢熶骇涓� 3鐢熶骇瀹屾垚
       if (
-        Object.keys(this.taskData).length > 0 &&
-        this.taskData.Procedure.ID &&
-        this.taskData.Procedure.Status == 1
+        Object.keys(this.taskData).length > 0 && this.taskData.Procedure.ID &&
+          this.taskData.Procedure.Status == 1
       ) {
-        this.num = 0;
-        this.showBtn = 1;
-        this.islook = true;
+          this.num = 0;
+          this.showBtn = 1;
+          this.islook = true;
       } else {
         this.islook = false;
-        // this.islook = true;
+        //  this.islook = true;
+        
+      }
+      if(this.ArrError){
+        this.messageError=this.ArrError;
+        
       }
       
     },
@@ -401,7 +421,7 @@
           this.num = 0;
           this.showBtn= 1
           this.shutdown();
-          this.$emit('getSetProductNumber')
+          this.$emit('getSetProductNumber',this.activeName)
           // this.$message.success("涓嬪彂鐢熶骇鏁伴噺鎴愬姛锛�");
         }
       } else {

--
Gitblit v1.8.0