|
@@ -182,11 +182,6 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- if(this.$route.query.ids){
|
|
|
- this.searchForm.ids = this.$route.query.ids
|
|
|
- }else{
|
|
|
- this.searchForm.ids = ''
|
|
|
- }
|
|
|
this.$store.dispatch("setBranchs");
|
|
|
this.getList();
|
|
|
},
|
|
@@ -204,9 +199,12 @@ export default {
|
|
|
},
|
|
|
async getList() {
|
|
|
try {
|
|
|
- this.searchForm.page = this.rules.page;
|
|
|
- this.searchForm.rows = this.rules.limit;
|
|
|
- const res = await getInspectionItem(this.searchForm);
|
|
|
+ const res = await getInspectionItem({
|
|
|
+ ...this.searchForm,
|
|
|
+ page: this.rules.page,
|
|
|
+ rows: this.rules.limit,
|
|
|
+ ids: this.$route.query.ids,
|
|
|
+ });
|
|
|
this.tableList = res.data.rows;
|
|
|
this.rules.total = res.data.total;
|
|
|
} catch (e) {
|