From a6c049ce564fe10a83b6f1759035a8c2803c6e18 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期一, 25 九月 2023 15:37:12 +0800
Subject: [PATCH] 看板的 获取任务接口变更, 新任务获取变更,计划时间格式修改

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

diff --git a/src/components/AddIssue.vue b/src/components/AddIssue.vue
index 41ab225..bbd2bfa 100644
--- a/src/components/AddIssue.vue
+++ b/src/components/AddIssue.vue
@@ -173,7 +173,8 @@
               <img src="../../public/btn1.png" />
           </div>
           <div class="btn" v-if="showBtn == 1" @click="confirmClick1">
-            <img src="../../public/confirm1.png" />
+            <img v-if='taskData&&taskData.canStarted' src="../../public/confirm1.png" />
+            <img v-else src="../../public/confirm2.png" />
           </div>
           <div class="btn" v-if="showBtn == 2">
             <img src="../../public/confirm2.png" />
@@ -222,6 +223,12 @@
         return [];
       },
     },
+    safeProduce:{
+      type: [String],
+      default: () => {
+        return '';
+      },
+    }
   },
   data() {
     return {
@@ -229,17 +236,19 @@
       showBtn:1,
       num: 0,
       timer: null,
-      message: "璇风‘璁ょ敓浜у畨鍏紒",
+      message: this.safeProduce,
       messageError: "",
       resParams: {},
       isLoading:false,
     };
   },
   mounted() {
+    this.message=this.safeProduce;
     this.getInfo();
   },
   watch: {
     taskData(val) {
+      this.message=this.safeProduce;
       this.getInfo();
     },
     num() {
@@ -266,7 +275,7 @@
     confirmClick1() {
       this.num = 0;
       this.showBtn = 2;
-      (this.message = "璇风‘璁ょ敓浜у畨鍏紒"),
+      (this.message = this.safeProduce),
         (this.timer = setInterval(() => {
           this.num = this.num + 1;
         }, 1000));
@@ -326,7 +335,7 @@
     formatDate(value) {
       if (value) {
         const now = value ? new Date(value * 1000) : new Date();
-        let time = this.getDateObj(now, "yyyy-MM-dd");
+        let time = this.getDateObj(now, "MM-dd hh:mm");
         return time;
       } else {
         return "";
@@ -368,7 +377,7 @@
           clearInterval(this.timer);
           // this.num = 30;
           // this.showBtn = 2;
-          this.message = "璇风‘璁ょ敓浜у畨鍏紒";
+          this.message = this.safeProduce;
 
           this.num = 0;
           this.showBtn= 1
@@ -381,7 +390,7 @@
         clearInterval(this.timer);
         this.num = 30;
         this.showBtn = 2;
-        this.message = "璇风‘璁ょ敓浜у畨鍏紒";
+        this.message =this.safeProduce;
       }
     },
     shutdown() {
@@ -593,6 +602,7 @@
   .gif-box{
     width:230px;
     margin:0 auto;
+    margin-bottom:5px;
     .gif-right{
       width:210px;
       font-size:14px;
@@ -605,7 +615,7 @@
     }
   }
   .gif{
-    width:56px;
+    width:55px;
     vertical-align: middle;
     float:left;
     margin-right:20px;
@@ -613,13 +623,13 @@
       width:100%;
     }
     .yuandian {
-        width: 56px;
-        height: 56px;
-        display: inline-block;
+        width: 55px;
+        height: 55px;
+        float:left;
         // background: #15d815;
         background:red;
         border-radius: 50%;
-        margin-top:-5px;
+        // margin-top:-5px;
         vertical-align: middle;
       }
   }

--
Gitblit v1.8.0