From a6ed23b018343a68f9fd276647cc4af817398d1b Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期四, 01 二月 2024 15:21:26 +0800 Subject: [PATCH] feat:修改部分问题 --- src/views/your/carInfo-manage/carInfoManage.vue | 46 ++++++++++++++++++++++++---------------------- 1 files changed, 24 insertions(+), 22 deletions(-) diff --git a/src/views/your/carInfo-manage/carInfoManage.vue b/src/views/your/carInfo-manage/carInfoManage.vue index efcbf1f..17ca841 100644 --- a/src/views/your/carInfo-manage/carInfoManage.vue +++ b/src/views/your/carInfo-manage/carInfoManage.vue @@ -191,6 +191,7 @@ import util from "@/libs/util.js"; import excel from "@/libs/excel.js"; import {exportColumn} from "./exportColumn"; + import {getSessionStore} from "../../../libs/storage"; export default { name: "car-manage", data() { @@ -288,19 +289,19 @@ return h("div",params.row.endMileage-params.row.beginMileage); } }, - { - title: "閫佽揣鎴锋暟", - key: "oilWear", - width: 130, - }, - { - title: "閫佽揣閲�(浠�)", - key: "oilWear", - width: 130, - render: (h, params) => { - return h("div",0); - } - }, + // { + // title: "閫佽揣鎴锋暟", + // // key: "oilWear", + // width: 130, + // }, + // { + // title: "閫佽揣閲�(浠�)", + // // key: "oilWear", + // width: 130, + // render: (h, params) => { + // return h("div",0); + // } + // }, { title: "鏈堟补鑰�(鍗�)", key: "oilWear", @@ -444,17 +445,18 @@ }, 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]); - }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); + // } getCar(this.searchForm).then((res) => { this.loading = false; if (res.success) { @@ -958,4 +960,4 @@ this.init(); }, }; -</script> \ No newline at end of file +</script> -- Gitblit v1.9.1