From 1edca208be9052dd6932fb8453bbea187425f316 Mon Sep 17 00:00:00 2001 From: zhangjunwen Date: Thu, 31 Oct 2024 14:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=B4=E4=BF=AE=E5=B7=A5=E5=8D=95=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E8=B7=B3=E8=BD=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/maintenance/maintenanceInfo/index.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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;