Commit d070575b authored by lixy's avatar lixy

车辆信息管理

parent a7844bf8
...@@ -166,6 +166,7 @@ ...@@ -166,6 +166,7 @@
@click="showMoreMoreCol=!showMoreMoreCol"> @click="showMoreMoreCol=!showMoreMoreCol">
更多列 更多列
</el-button> </el-button>
<el-button class="filter-item" type="primary" v-waves @click="reloadPage">刷新</el-button>
</div> </div>
...@@ -1258,6 +1259,38 @@ ...@@ -1258,6 +1259,38 @@
getValue(e){ getValue(e){
this.listQuery.addrCity = undefined; this.listQuery.addrCity = undefined;
}, },
/**
* 刷新
* */
reloadPage(){
this.listQuery = {
page: 1,
limit: 20,
zoneId: undefined,
addrProvince: undefined,
addrCity: undefined,
addrTown: undefined,
vin: undefined,
insuranceCompany: undefined,
mileageRangeStart: undefined,
mileageRangeEnd: undefined,
insuranceDateRange: undefined,
mRange: undefined,
aVRange: undefined,
subordinateBranch: undefined,
numberPlate: undefined,
status: undefined,
bookedStartDate: undefined,
bookedEndDate: undefined,
notBookedStartDate: undefined,
notBookedEndDate: undefined,
code: undefined
};
this.getList();
// this.reload();
// window.reload();
// this.$router.go(0)
},
querySearch(queryString, cb) { querySearch(queryString, cb) {
let selectArry = []; let selectArry = [];
let iitem = { let iitem = {
...@@ -1434,6 +1467,7 @@ ...@@ -1434,6 +1467,7 @@
type: 'success', type: 'success',
duration: 2000 duration: 2000
}); });
this.getList();
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: '失败',
...@@ -1517,6 +1551,7 @@ ...@@ -1517,6 +1551,7 @@
type: 'success', type: 'success',
duration: 2000 duration: 2000
}); });
this.getList();
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: '失败',
...@@ -1693,6 +1728,7 @@ ...@@ -1693,6 +1728,7 @@
return regions[0].name + ' ' + regions[1].name + ' ' + regions[2].name + ' '; return regions[0].name + ' ' + regions[1].name + ' ' + regions[2].name + ' ';
}, },
handleFilter() { handleFilter() {
this.listQuery.page = 1;
this.$refs.queryForm.validate(valid => { this.$refs.queryForm.validate(valid => {
if (valid) { if (valid) {
this.getList(); this.getList();
...@@ -1783,6 +1819,7 @@ ...@@ -1783,6 +1819,7 @@
type: 'success', type: 'success',
duration: 2000 duration: 2000
}); });
this.getList();
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: '失败',
...@@ -1832,6 +1869,7 @@ ...@@ -1832,6 +1869,7 @@
type: 'success', type: 'success',
duration: 2000 duration: 2000
}); });
this.getList();
} else { } else {
this.$notify({ this.$notify({
title: '失败', title: '失败',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment