From 7ebd84a4ad1f6561f450d5e92d987d22924d59ec Mon Sep 17 00:00:00 2001
From: zhangzeli <123456>
Date: 星期二, 04 一月 2022 13:35:12 +0800
Subject: [PATCH] 回复
---
src/views/your/carInfo-manage/carInfoManage.vue | 51 ++++++++++++++++++++++-----------------------------
1 files changed, 22 insertions(+), 29 deletions(-)
diff --git a/src/views/your/carInfo-manage/carInfoManage.vue b/src/views/your/carInfo-manage/carInfoManage.vue
index 217e4b9..6328033 100644
--- a/src/views/your/carInfo-manage/carInfoManage.vue
+++ b/src/views/your/carInfo-manage/carInfoManage.vue
@@ -290,9 +290,24 @@
}
},
{
+ title: "閫佽揣鎴锋暟",
+ key: "oilWear",
+ width: 130,
+ },
+ {
+ title: "閫佽揣閲�(浠�)",
+ key: "oilWear",
+ width: 130,
+ },
+ {
title: "鏈堟补鑰�(鍗�)",
key: "oilWear",
width: 130,
+ },
+ {
+ title: "鏈堢噧娌硅垂(鍏�)",
+ key: "money",
+ width: 140,
},
{
title: "鐧惧叕閲屾补鑰�",
@@ -314,32 +329,6 @@
render: (h, params) => {
return h("div",params.row.car.nickName);
}
- },
- {
- title: "鏈堝姞娌归噾棰�(鍏�)",
- key: "money",
- width: 140,
- },
- {
- title: "鎿嶄綔",
- key: "action",
- align: "center",
- width: 120,
- render: (h, params) => {
- return h("div", [
- h(
- "a",
- {
- on: {
- click: () => {
- this.remove(params.row);
- },
- },
- },
- "鍒犻櫎"
- ),
- ]);
- },
},
],
data: [],
@@ -454,14 +443,18 @@
this.searchForm.beginTime = this.selectDate(this.value[0]);
this.searchForm.endTime = this.selectDate(this.value[1]);
}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);
}
getCar(this.searchForm).then((res) => {
this.loading = false;
if (res.success) {
this.data = res.result;
- this.total = res.result.length;
+ this.total = res.result[0].total;
}
});
},
--
Gitblit v1.9.1