From 13272e92a6c98daad06aa166a6674bf4dac7cc4b Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期一, 21 十月 2024 11:06:55 +0800
Subject: [PATCH] 问题审核1021

---
 src/views/fysp/check/components/CompProRecent.vue |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/views/fysp/check/components/CompProRecent.vue b/src/views/fysp/check/components/CompProRecent.vue
index c97fad2..915b27b 100644
--- a/src/views/fysp/check/components/CompProRecent.vue
+++ b/src/views/fysp/check/components/CompProRecent.vue
@@ -22,7 +22,7 @@
           <el-table-column type="index" width="50" />
           <el-table-column prop="problemname" label="闂"/>
           <el-table-column prop="_time" label="鏃堕棿" width="250" />
-          <el-table-column prop="鎿嶄綔" label="鎿嶄綔" width="180">
+          <el-table-column label="鎿嶄綔" width="180">
             <template v-slot="scope">
               <el-button link type="primary" @click="info(scope.row)">璇︽儏</el-button>
             </template>
@@ -86,7 +86,6 @@
     CompProblemAddOrUpd
   },
   mounted() {
-    console.log('subtask', this.subtask);
 
     this.deepCopyPro = useCloned(this.problem).cloned.value;
     this.getRecentPros();
@@ -137,10 +136,7 @@
       // 璁$畻涓�骞村墠鐨勬棩鏈�
       const oneYearAgo = new Date(today);
       oneYearAgo.setFullYear(today.getFullYear() - 1);
-      console.log('today', this.$fm.formatYMDH(today));
-      console.log('threeMonthsAgo', this.$fm.formatYMDH(threeMonthsAgo));
-      console.log('sixMonthsAgo', this.$fm.formatYMDH(sixMonthsAgo));
-      console.log('oneYearAgo', this.$fm.formatYMDH(oneYearAgo));
+
       return {
         startTime:
           this.activeName === '杩戜笁涓湀'
@@ -155,11 +151,11 @@
     /**
      * 鑾峰彇杩戞湡鎯呭喌
      * */
-    getRecentPros() {
+    async getRecentPros() {
       this.loading = true;
       this.subtaskCount = 0
       // 鑾峰彇瀛愪换鍔″垪琛�
-      taskApi.getSubtaskByScene(this.generateQueryParam()).then((subtasks) => {
+      await taskApi.getSubtaskByScene(this.generateQueryParam()).then((subtasks) => {
         this.curProList = [];
         if (subtasks) {
           subtasks.forEach((subtask) => {
@@ -167,15 +163,13 @@
             this.getProBySubtask(subtask);
           });
         }
-        
       });
       // 棰濆澶勭悊
-      console.log('curr', this.curProList);
       this.curProList.sort((o1, o2) => o2.getTime() - o1.getTime());
       this.loading = false;
     },
     // 鏍规嵁瀛愪换鍔¤幏鍙栭噷闈㈢殑闂鍒楄〃
-    getProBySubtask(subtask) {
+    async getProBySubtask(subtask) {
       taskApi.getProBySubtask(subtask.stGuid).then((pros) => {
         if (pros) {
           pros.forEach((pro) => {

--
Gitblit v1.9.3