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/carInfo-manage/carInfoManage.vue | 55 ++++++++++++++++++++++++-------------------------------
1 files changed, 24 insertions(+), 31 deletions(-)
diff --git a/src/views/your/carInfo-manage/carInfoManage.vue b/src/views/your/carInfo-manage/carInfoManage.vue
index bf40a19..515cd9c 100644
--- a/src/views/your/carInfo-manage/carInfoManage.vue
+++ b/src/views/your/carInfo-manage/carInfoManage.vue
@@ -259,16 +259,15 @@
key: "carNo",
width: 120,
render: (h, params) => {
- return h("div",params.row.car.carNo);
+ return h("div",params.row.car.carNo=="undefined" ? '':params.row.car.carNo);
}
},
{
title: "鍔犳补鍗″彿",
key: "addOilCode",
width: 140,
- sortable: true,
render: (h, params) => {
- return h("div",params.row.car.addOilCode);
+ return h("div",params.row.car.addOilCode=="undefined" ? '':params.row.car.addOilCode);
}
},
{
@@ -289,10 +288,31 @@
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,
+ render: (h, params) => {
+ return h("div",0);
+ }
+ },
+ {
+ title: "鏈堢噧娌硅垂(鍏�)",
+ key: "money",
+ width: 140,
},
{
title: "鐧惧叕閲屾补鑰�",
@@ -314,32 +334,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: [],
@@ -465,7 +459,7 @@
this.loading = false;
if (res.success) {
this.data = res.result;
- this.total = res.result.length;
+ this.total = res.result[0].total;
}
});
},
@@ -577,7 +571,6 @@
title.push(e.title);
key.push(e.key);
});
-
console.log(this.exportData)
const params = {
--
Gitblit v1.9.1