From cb5c9968b763362d399e1c7fce1129ec7434aba8 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期三, 26 四月 2023 14:07:31 +0800
Subject: [PATCH] session保存token
---
src/views/your/carInfo-manage/carInfoManage.vue | 71 +++++++++++++++++------------------
1 files changed, 35 insertions(+), 36 deletions(-)
diff --git a/src/views/your/carInfo-manage/carInfoManage.vue b/src/views/your/carInfo-manage/carInfoManage.vue
index 217e4b9..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() {
@@ -259,16 +260,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 +289,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 +335,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: [],
@@ -450,18 +445,23 @@
},
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{
- this.searchForm.beginTime = "";
- this.searchForm.endTime = "";
}
+ // 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) {
this.data = res.result;
- this.total = res.result.length;
+ this.total = res.result[0].total;
}
});
},
@@ -573,7 +573,6 @@
title.push(e.title);
key.push(e.key);
});
-
console.log(this.exportData)
const params = {
@@ -961,4 +960,4 @@
this.init();
},
};
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.1