添加回车搜索

yanshishuju
yewj 7 months ago
parent dce1da43cf
commit b30a92b8c2

@ -125,7 +125,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -622,8 +622,6 @@ export default {
.catch() .catch()
}, },
// //
orderTop(_this, row) { orderTop(_this, row) {
@ -700,9 +698,12 @@ export default {
this.bindWorkPlaceVisible = false; this.bindWorkPlaceVisible = false;
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1; debugger
this.getList(); if (_this == null)
_this = this
_this.filterQuery.page = 1;
_this.getList();
}, },
getList() { getList() {

@ -115,7 +115,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -636,10 +636,12 @@ export default {
this.getErrorList(this); this.getErrorList(this);
} }
, ,
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1; if (_this == null)
this.getList(); _this = this
this.getErrorList(this); _this.filterQuery.page = 1;
_this.getList();
_this.getErrorList(_this);
} }
, ,

@ -115,7 +115,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -907,16 +907,18 @@ export default {
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
if (this.actDateRange !== null) { if (_this == null)
this.filterQuery.startTime = this.actDateRange[0]; _this = this
this.filterQuery.endTime = this.actDateRange[1]; if (_this.actDateRange !== null) {
_this.filterQuery.startTime = _this.actDateRange[0];
_this.filterQuery.endTime = _this.actDateRange[1];
} else { } else {
this.filterQuery.startTime = null; _this.filterQuery.startTime = null;
this.filterQuery.endTime = null; _this.filterQuery.endTime = null;
} }
this.filterQuery.page = 1; _this.filterQuery.page = 1;
this.getList(); _this.getList();
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;

@ -113,7 +113,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -409,16 +409,18 @@ export default {
this.actDateRange = []; this.actDateRange = [];
// this.getList(); // this.getList();
}, },
onSubmit() { onSubmit(_this) {
if (this.actDateRange !== null) { if (_this == null)
this.filterQuery.startTime = this.actDateRange[0]; _this = this
this.filterQuery.endTime = this.actDateRange[1]; if (_this.actDateRange !== null) {
_this.filterQuery.startTime = _this.actDateRange[0];
_this.filterQuery.endTime = _this.actDateRange[1];
} else { } else {
this.filterQuery.startTime = null; _this.filterQuery.startTime = null;
this.filterQuery.endTime = null; _this.filterQuery.endTime = null;
} }
this.filterQuery.page = 1; _this.filterQuery.page = 1;
this.getList(); _this.getList();
}, },
getList() { getList() {
getSplitCode(this.filterQuery).then(res => { getSplitCode(this.filterQuery).then(res => {

@ -139,7 +139,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -860,9 +860,11 @@ export default {
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1; if (_this == null)
this.getList(); _this = this
_this.filterQuery.page = 1;
_this.getList();
}, },
getList() { getList() {

@ -114,7 +114,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -384,9 +384,11 @@ export default {
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1; if (_this == null)
this.getList(); _this = this
_this.filterQuery.page = 1;
_this.getList();
}, },
getList() { getList() {

@ -113,7 +113,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -939,16 +939,18 @@ export default {
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
if (this.actDateRange !== null) { if (_this == null)
this.filterQuery.startTime = this.actDateRange[0]; _this = this
this.filterQuery.endTime = this.actDateRange[1]; if (_this.actDateRange !== null) {
_this.filterQuery.startTime = _this.actDateRange[0];
_this.filterQuery.endTime = _this.actDateRange[1];
} else { } else {
this.filterQuery.startTime = null; _this.filterQuery.startTime = null;
this.filterQuery.endTime = null; _this.filterQuery.endTime = null;
} }
this.filterQuery.page = 1; _this.filterQuery.page = 1;
this.getList(); _this.getList();
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;

@ -119,7 +119,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -956,16 +956,18 @@ export default {
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
if (this.actDateRange !== null) { if (_this == null)
this.filterQuery.startTime = this.actDateRange[0]; _this = this
this.filterQuery.endTime = this.actDateRange[1]; if (_this.actDateRange !== null) {
_this.filterQuery.startTime = _this.actDateRange[0];
_this.filterQuery.endTime = _this.actDateRange[1];
} else { } else {
this.filterQuery.startTime = null; _this.filterQuery.startTime = null;
this.filterQuery.endTime = null; _this.filterQuery.endTime = null;
} }
this.filterQuery.page = 1; _this.filterQuery.page = 1;
this.getList(); _this.getList();
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;

@ -112,7 +112,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -430,7 +430,13 @@ export default {
}); });
}, },
onReset() { onReset() {
this.filterQuery = {}; this.filterQuery = {
busType: null,
billNo: null,
tagStatusList: [-1, 2],
page: 1,
limit: 10,
};
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
@ -450,9 +456,11 @@ export default {
this.bindWorkPlaceVisible = false; this.bindWorkPlaceVisible = false;
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1; if (_this == null)
this.getList(); _this = this
_this.filterQuery.page = 1;
_this.getList();
}, },
getList() { getList() {

@ -120,7 +120,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -426,13 +426,22 @@ export default {
}); });
}, },
onReset() { onReset() {
this.filterQuery = {} this.filterQuery = {
busType: null,
tagStatus: 3,
billNo: null,
workPlaceCode: null,
page: 1,
limit: 10
}
this.actDateRange = [] this.actDateRange = []
this.getList() this.getList()
}, },
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1 if (_this == null)
this.getList() _this = this
_this.filterQuery.page = 1
_this.getList()
}, },
getList() { getList() {

@ -119,7 +119,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -439,13 +439,22 @@ export default {
}); });
}, },
onReset() { onReset() {
this.filterQuery = {} this.filterQuery = {
busType: null,
tagStatus: null,
billNo: null,
workPlaceCode: null,
page: 1,
limit: 10
}
this.actDateRange = [] this.actDateRange = []
this.getList() this.getList()
}, },
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1 if (_this == null)
this.getList() _this = this
_this.filterQuery.page = 1
_this.getList()
}, },
getList() { getList() {

@ -113,7 +113,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -913,16 +913,18 @@ export default {
this.actDateRange = []; this.actDateRange = [];
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
if (this.actDateRange !== null) { if (_this == null)
this.filterQuery.startTime = this.actDateRange[0]; _this = this
this.filterQuery.endTime = this.actDateRange[1]; if (_this.actDateRange !== null) {
_this.filterQuery.startTime = _this.actDateRange[0];
_this.filterQuery.endTime = _this.actDateRange[1];
} else { } else {
this.filterQuery.startTime = null; _this.filterQuery.startTime = null;
this.filterQuery.endTime = null; _this.filterQuery.endTime = null;
} }
this.filterQuery.page = 1; _this.filterQuery.page = 1;
this.getList(); _this.getList();
}, },
hideSearch() { hideSearch() {
this.showSearch = !this.showSearch; this.showSearch = !this.showSearch;

@ -112,7 +112,7 @@
@click="onReset" @click="onReset"
>重置 >重置
</el-button> </el-button>
<el-button type="primary" icon="el-icon-search" @click="onSubmit" <el-button type="primary" icon="el-icon-search" @click="onSubmit(this)"
>查询 >查询
</el-button </el-button
> >
@ -615,11 +615,13 @@ export default {
closeDialog() { closeDialog() {
this.getList(); this.getList();
}, },
onSubmit() { onSubmit(_this) {
this.filterQuery.page = 1; if (_this == null)
this.getList(); _this = this
this.getDraftList(); _this.filterQuery.page = 1;
this.getOtherList(); _this.getList();
_this.getDraftList();
_this.getOtherList();
}, },

Loading…
Cancel
Save