维修工单消息跳转功能
This commit is contained in:
parent
7a44b8351f
commit
1edca208be
@ -521,7 +521,11 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
if (this.$route.query.orderId) {
|
||||||
|
this.getQueryData();
|
||||||
|
} else {
|
||||||
this.getList();
|
this.getList();
|
||||||
|
}
|
||||||
this.initSelection();
|
this.initSelection();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -637,6 +641,16 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**跳转查询 */
|
||||||
|
async getQueryData() {
|
||||||
|
this.loading = true;
|
||||||
|
const res = await RemoteMaintenanceOrderApi.getRemoteMaintenanceOrder(
|
||||||
|
this.$route.query.orderId
|
||||||
|
);
|
||||||
|
this.list = [res.data];
|
||||||
|
this.total = this.list.length;
|
||||||
|
this.loading = false;
|
||||||
|
},
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
handleQuery() {
|
handleQuery() {
|
||||||
this.queryParams.pageNo = 1;
|
this.queryParams.pageNo = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user