diff --git a/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue b/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue index 7287080..c38681f 100644 --- a/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue +++ b/imt-ui/src/views/system/maintenance/maintenanceInfo/index.vue @@ -521,7 +521,11 @@ export default { }; }, created() { - this.getList(); + if (this.$route.query.orderId) { + this.getQueryData(); + } else { + this.getList(); + } this.initSelection(); }, methods: { @@ -637,6 +641,16 @@ export default { 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() { this.queryParams.pageNo = 1;