From 1dfede5acec9f6bb97b8769f55501b67262316e0 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期一, 27 三月 2023 17:19:22 +0800
Subject: [PATCH] 搜索bug
---
src/views/your/carRepairCost-manage/carRepairCostManage.vue | 29 ++++++++++++++---------------
1 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/src/views/your/carRepairCost-manage/carRepairCostManage.vue b/src/views/your/carRepairCost-manage/carRepairCostManage.vue
index 30cd7a9..6b257d8 100644
--- a/src/views/your/carRepairCost-manage/carRepairCostManage.vue
+++ b/src/views/your/carRepairCost-manage/carRepairCostManage.vue
@@ -39,6 +39,7 @@
@on-sort-change="changeSort"
@on-selection-change="changeSelect"
></Table>
+ <!--
<Row type="flex" justify="end" class="page">
<Page
:current="searchForm.pageNumber"
@@ -51,9 +52,10 @@
show-total
show-elevator
show-sizer
- v-show="this.page"
></Page>
+
</Row>
+ -->
</Card>
<!-- 缂栬緫 -->
@@ -242,21 +244,19 @@
{
title: "杞︾墝鍙�",
key: "carNo",
- width: 100,
+ width: 110,
align: "center",
},
{
title: "寮�濮嬩娇鐢ㄦ棩鏈�",
key: "buyYear",
width: 150,
- sortable: true,
align: "center",
},
{
title: "浣跨敤骞撮檺",
key: "usefulLife",
width: 140,
- sortable: true,
align: "center",
render: (h, params) => {
return h("div",1);
@@ -266,14 +266,12 @@
title: "鏈湡琛屼娇閲岀▼(KM)",
key: "mileage",
width: 180,
- sortable: true,
align: "center",
},
{
title: "绱琛屼娇閲岀▼(KM)",
key: "allMileage",
width: 180,
- sortable: true,
align: "center",
},
{
@@ -497,18 +495,19 @@
},
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{
- 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);
+ // }
getInfo(this.searchForm).then((res) => {
this.loading = false;
if (res.success) {
@@ -934,4 +933,4 @@
this.init();
},
};
-</script>
\ No newline at end of file
+</script>
--
Gitblit v1.9.1