Commit 6854d405 authored by lixy's avatar lixy

检索记录

parent a2020039
...@@ -135,13 +135,15 @@ export default { ...@@ -135,13 +135,15 @@ export default {
: (this.listQuery.startTime = null) : (this.listQuery.startTime = null)
!!this.listQuery.time[1] !!this.listQuery.time[1]
? (this.listQuery.endTime = this.listQuery.time[1].getTime()) ? (this.listQuery.endTime = this.listQuery.time[1].getTime())
: (this.listQuery.endTime = null) : (this.listQuery.endTime = null);
this.listQuery.page = 1;
this.getList() this.getList()
}, },
//统计方式筛选 //统计方式筛选
changeWay(val) { changeWay(val) {
this.isactive = val.label this.isactive = val.label
this.listQuery.type = val.id this.listQuery.type = val.id;
this.listQuery.page = 1;
this.getList() this.getList()
}, },
//导出 //导出
...@@ -223,4 +225,4 @@ export default { ...@@ -223,4 +225,4 @@ export default {
color: #409eff; color: #409eff;
font-weight: bold; font-weight: bold;
} }
</style> </style>
\ No newline at end of file
...@@ -449,6 +449,7 @@ export default { ...@@ -449,6 +449,7 @@ export default {
}, },
//搜索 //搜索
handleFilter() { handleFilter() {
this.listQuery.page = 1;
if(this.listQuery){ if(this.listQuery){
localStorage.setItem("employeesInput", JSON.stringify(this.listQuery)); localStorage.setItem("employeesInput", JSON.stringify(this.listQuery));
} }
......
...@@ -495,6 +495,7 @@ ...@@ -495,6 +495,7 @@
* 搜索 * 搜索
*/ */
handleFilter() { handleFilter() {
this.listQuery.page = 1;
this.getList(); this.getList();
}, },
handleSizeChange(val) { handleSizeChange(val) {
......
...@@ -820,7 +820,6 @@ ...@@ -820,7 +820,6 @@
if(queryJson.limit){ if(queryJson.limit){
t.listQuery.limit = queryJson.limit; t.listQuery.limit = queryJson.limit;
} }
if(queryJson.mobileList){ if(queryJson.mobileList){
t.listQuery.mobileList = queryJson.mobileList; t.listQuery.mobileList = queryJson.mobileList;
} }
...@@ -1062,6 +1061,7 @@ ...@@ -1062,6 +1061,7 @@
*查询 *查询
*/ */
handleFilter() { handleFilter() {
this.listQuery.page = 1;
if(this.listQuery){ if(this.listQuery){
localStorage.setItem("userList", JSON.stringify(this.listQuery)); localStorage.setItem("userList", JSON.stringify(this.listQuery));
} }
......
...@@ -345,6 +345,7 @@ ...@@ -345,6 +345,7 @@
this.handleFilter(); this.handleFilter();
}, },
handleFilter() { handleFilter() {
this.listQuery.page = 1
if(this.listQuery){ if(this.listQuery){
localStorage.setItem("vehicleDepartureLog", JSON.stringify(this.listQuery)); localStorage.setItem("vehicleDepartureLog", JSON.stringify(this.listQuery));
} }
......
...@@ -2072,10 +2072,7 @@ ...@@ -2072,10 +2072,7 @@
}, },
handleFilter() { handleFilter() {
let t = this; let t = this;
let query = localStorage.getItem("vehicleInfo"); this.listQuery.page = 1;
if(query =="null" || !query){
this.listQuery.page = 1;
}
this.$refs.queryForm.validate(valid => { this.$refs.queryForm.validate(valid => {
if (valid) { if (valid) {
if(t.listQuery){ if(t.listQuery){
......
...@@ -31,7 +31,8 @@ ...@@ -31,7 +31,8 @@
<span>{{currentItem.ii.vehicleBookRecord.remark}}</span> <span>{{currentItem.ii.vehicleBookRecord.remark}}</span>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" v-if='currentItem.ii.vehicleBookRecord.status==2&&bookRecord_btn_unbook&&currentItem.ii.vehicleBookRecord.vehicleDepartureLogVo!=undefined' class="dialog-footer"> <!--客户租车-已审核过-取消按钮权限-未出行-->
<div slot="footer" v-if='currentItem.ii.vehicleBookRecord.status==2 && currentItem.ii.bookType==9 &&bookRecord_btn_unbook && !currentItem.ii.vehicleBookRecord.vehicleDepartureLogVo' class="dialog-footer">
<el-button @click="cancel()">取消用车</el-button> <el-button @click="cancel()">取消用车</el-button>
</div> </div>
<div slot="footer" v-if='currentItem.ii.vehicleBookRecord.status==1' class="dialog-footer"> <div slot="footer" v-if='currentItem.ii.vehicleBookRecord.status==1' class="dialog-footer">
...@@ -91,21 +92,28 @@ ...@@ -91,21 +92,28 @@
* 弹框-取消 * 弹框-取消
* */ * */
cancel() { cancel() {
console.log("展览取消用车");
var obj = { var obj = {
vehicleBookRecordId:this.currentItem.ii.vehicleBookRecord.id vehicleBookRecordId:this.currentItem.ii.vehicleBookRecord.id
} };
cancleBook(obj).then(response => { this.$confirm('确定取消吗?', '提示', {
if(response.code==1){ confirmButtonText: '确定',
this.$emit("zhanlanDialogEvent", true); cancelButtonText: '取消',
}else{ type: 'warning'
this.$notify({ }).then(() => {
title: '失败', cancleBook(obj).then(response => {
message: response.message, if(response.code==1){
type: 'error', this.$emit("zhanlanDialogEvent", true);
duration: 2000 }else{
}); this.$notify({
} title: '失败',
message: response.message,
type: 'error',
duration: 2000
});
}
});
}).catch(() => {
console.log("cancel");
}); });
}, },
/** /**
......
...@@ -224,6 +224,7 @@ ...@@ -224,6 +224,7 @@
this.getList(); this.getList();
}, },
handleFilter() { handleFilter() {
this.listQuery.page = 1;
if(this.listQuery){ if(this.listQuery){
localStorage.setItem("vehicleRecords", JSON.stringify(this.listQuery)); localStorage.setItem("vehicleRecords", JSON.stringify(this.listQuery));
} }
......
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
this.handleFilter(); this.handleFilter();
}, },
handleFilter() { handleFilter() {
this.listQuery.page = 1;
if(this.listQuery){ if(this.listQuery){
localStorage.setItem("vehicleUpkeepLog", JSON.stringify(this.listQuery)); localStorage.setItem("vehicleUpkeepLog", JSON.stringify(this.listQuery));
} }
......
...@@ -300,6 +300,7 @@ ...@@ -300,6 +300,7 @@
}, },
handleFilter() { handleFilter() {
let t = this; let t = this;
this.listQuery.page = 1
this.$refs.queryForm.validate(valid => { this.$refs.queryForm.validate(valid => {
if (valid) { if (valid) {
if(t.listQuery){ if(t.listQuery){
......
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