From f3fe55f98c59dffc647a6440b2d236bea4440676 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期五, 10 二月 2023 17:03:32 +0800
Subject: [PATCH] 提交更新

---
 src/views/your/carRepairCost-manage/carRepairCostManage.vue |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/src/views/your/carRepairCost-manage/carRepairCostManage.vue b/src/views/your/carRepairCost-manage/carRepairCostManage.vue
index 7326078..6b257d8 100644
--- a/src/views/your/carRepairCost-manage/carRepairCostManage.vue
+++ b/src/views/your/carRepairCost-manage/carRepairCostManage.vue
@@ -39,6 +39,7 @@
               @on-sort-change="changeSort"
               @on-selection-change="changeSelect"
       ></Table>
+      <!--
       <Row type="flex" justify="end" class="page">
         <Page
                 :current="searchForm.pageNumber"
@@ -52,7 +53,9 @@
                 show-elevator
                 show-sizer
         ></Page>
+
       </Row>
+      -->
     </Card>
 
     <!-- 缂栬緫 -->
@@ -492,23 +495,24 @@
       },
       getDataList() {
         this.loading = true;
-        if (this.value[0]!="" && this.value[1]!=""){
+        if (this.value.length > 0){
           this.searchForm.beginTime = this.selectDate(this.value[0]);
           this.searchForm.endTime = this.selectDate(this.value[1]);
           this.page=false;
-        }else{
-          var date = new Date();
-          this.searchForm.endTime = this.selectDate(date);
-          this.value[1] = this.searchForm.endTime;
-          date.setDate(1);
-          this.value[0] = date;
-          this.searchForm.beginTime = this.selectDate(date);
         }
+        // else{
+        //   var date = new Date();
+        //   this.searchForm.endTime = this.selectDate(date);
+        //   this.value[1] = this.searchForm.endTime;
+        //   date.setDate(1);
+        //   this.value[0] = date;
+        //   this.searchForm.beginTime = this.selectDate(date);
+        // }
         getInfo(this.searchForm).then((res) => {
           this.loading = false;
           if (res.success) {
             this.data = res.result;
-            this.total = res.result.total;
+            this.total = res.result.length;
           }
         });
       },
@@ -929,4 +933,4 @@
       this.init();
     },
   };
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.1