From 818d4458d77505b25ea057b49b409b1868ea8cff Mon Sep 17 00:00:00 2001
From: wang-hao-jie <1550036656@qq.com>
Date: 星期一, 06 六月 2022 15:34:11 +0800
Subject: [PATCH] 默认更改列表

---
 src/views/your/carCost-manage/carCostManage.vue |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/views/your/carCost-manage/carCostManage.vue b/src/views/your/carCost-manage/carCostManage.vue
index c483b3f..c098e31 100644
--- a/src/views/your/carCost-manage/carCostManage.vue
+++ b/src/views/your/carCost-manage/carCostManage.vue
@@ -247,21 +247,18 @@
             title: "鍔犳补鍗″彿",
             key: "addOilCode",
             width: 120,
-            sortable: true,
             align: "center",
           },
           {
             title: "鍔犳补鏃ユ湡",
             key: "addDate",
             width: 120,
-            sortable: true,
             align: "center",
           },
           {
             title: "鍔犳补閲�(鍗�)",
             key: "amount",
             width: 130,
-            sortable: true,
             align: "center",
             render: (h, params) => {
               return h("div",params.row.amount==0 ? '':params.row.amount);
@@ -271,7 +268,6 @@
             title: "鍚◣閲戦(鍏�)",
             key: "money",
             width: 140,
-            sortable: true,
             align: "center",
             render: (h, params) => {
               return h("div",params.row.money==0 ? '':params.row.money);
@@ -281,28 +277,24 @@
             title: "杩囪矾杩囨ˉ璐�(鍏�)",
             key: "",
             width: 150,
-            sortable: true,
             align: "center",
           },
           {
             title: "骞村璐�(鍏�)",
             key: "",
             width: 130,
-            sortable: true,
             align: "center",
           },
           {
             title: "娲楄溅鍋滆溅璐�(鍏�)",
             key: "",
             width: 150,
-            sortable: true,
             align: "center",
           },
           {
             title: "淇濋櫓璐瑰惈(杞﹁埞绋�)",
             key: "",
             width: 170,
-            sortable: true,
             align: "center",
           },
         ],
@@ -473,8 +465,12 @@
           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);
         }
         getOilExcel(this.searchForm).then((res) => {
           this.loading = false;

--
Gitblit v1.9.1