From 8560c8517964e0ea2b5fb02811f4a43e1974d973 Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期四, 06 一月 2022 09:58:59 +0800
Subject: [PATCH] 优化

---
 src/views/your/carRepairCost-manage/carRepairCostManage.vue |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/src/views/your/carRepairCost-manage/carRepairCostManage.vue b/src/views/your/carRepairCost-manage/carRepairCostManage.vue
index fdefd04..7326078 100644
--- a/src/views/your/carRepairCost-manage/carRepairCostManage.vue
+++ b/src/views/your/carRepairCost-manage/carRepairCostManage.vue
@@ -51,7 +51,6 @@
                 show-total
                 show-elevator
                 show-sizer
-                v-show="this.page"
         ></Page>
       </Row>
     </Card>
@@ -242,21 +241,19 @@
           {
             title: "杞︾墝鍙�",
             key: "carNo",
-            width: 100,
+            width: 110,
             align: "center",
           },
           {
             title: "寮�濮嬩娇鐢ㄦ棩鏈�",
             key: "buyYear",
             width: 150,
-            sortable: true,
             align: "center",
           },
           {
             title: "浣跨敤骞撮檺",
             key: "usefulLife",
             width: 140,
-            sortable: true,
             align: "center",
             render: (h, params) => {
               return h("div",1);
@@ -266,14 +263,12 @@
             title: "鏈湡琛屼娇閲岀▼(KM)",
             key: "mileage",
             width: 180,
-            sortable: true,
             align: "center",
           },
           {
             title: "绱琛屼娇閲岀▼(KM)",
             key: "allMileage",
             width: 180,
-            sortable: true,
             align: "center",
           },
           {
@@ -502,14 +497,18 @@
           this.searchForm.endTime = this.selectDate(this.value[1]);
           this.page=false;
         }else{
-          this.searchForm.beginTime = "";
-          this.searchForm.endTime = "";
+          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.length;
+            this.total = res.result.total;
           }
         });
       },

--
Gitblit v1.9.1