From f3fe55f98c59dffc647a6440b2d236bea4440676 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期五, 10 二月 2023 17:03:32 +0800 Subject: [PATCH] 提交更新 --- src/views/your/carCost-manage/carCostManage.vue | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/views/your/carCost-manage/carCostManage.vue b/src/views/your/carCost-manage/carCostManage.vue index c483b3f..1c3d606 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", }, ], @@ -468,13 +460,17 @@ }, 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{ - 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; @@ -901,4 +897,4 @@ this.init(); }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.1