scorpio 2 years ago
parent
commit
b1cda75c1f
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/views/home/component/dash.vue

+ 7 - 6
src/views/home/component/dash.vue

@@ -62,7 +62,9 @@
       </template>
       <template #plan_storage_time="{row}">
         <div class='flex flex-center'>
-          <div class='mr-5 red' v-if='row.plan_storage_time !== undefined && row.is_storage === 0 '>{{ row.plan_storage_time.substring(0, 10) }}</div>
+          <div class='mr-5 red' v-if='row.plan_storage_time !== undefined && row.is_storage === 0 '>
+            {{ row.plan_storage_time.substring(0, 10) }}
+          </div>
           <div class='mr-5 blue' v-else>{{ row.storage_time ? row.storage_time.substring(0, 10) : '' }}</div>
         </div>
       </template>
@@ -79,11 +81,12 @@
       </template>
       <template #plan_commencement_time="{row}">
         <div class='flex flex-center'>
-          <div class='mr-5 red' v-if='plan_commencement_time !== undefined && (row.is_start === undefined ||row.is_start === 0 )'>{{
+          <div class='mr-5 red'
+               v-if='plan_commencement_time !== undefined && (row.is_start === undefined ||row.is_start === 0 )'>{{
               row.plan_commencement_time.substring(0, 10)
             }}
           </div>
-          <div class='mr-5 blue' v-else>{{ row.start_time ? row.start_time.substring(0, 10) :'' }}</div>
+          <div class='mr-5 blue' v-else>{{ row.start_time ? row.start_time.substring(0, 10) : '' }}</div>
         </div>
       </template>
     </avue-crud>
@@ -382,6 +385,7 @@ export default {
       this.loading = true
       const data = { ...query, parentId: this.parentId }
       this.queryData = data
+      console.log(query.projectStage)
       this.getNumList(data)
       this.$api.project.projectList(this.page.currentPage, this.page.pageSize, data).then(res => {
         this.loading = false
@@ -450,9 +454,6 @@ export default {
         })
     },
     getNumList (data) {
-      if (this.numList.length > 0) {
-        return
-      }
       this.$api.project.userNunList(data).then(res => {
         if (res.code === 200) {
           this.numList = res.data.projectStage