From 2689f0cde1c11cfd9329deec69fe5bb2a5aefa13 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Tue, 15 Jul 2025 13:36:24 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lease/apply/component/queryToolsApply.vue | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/views/material/lease/apply/component/queryToolsApply.vue b/src/views/material/lease/apply/component/queryToolsApply.vue index 76821dd9..a0d1470d 100644 --- a/src/views/material/lease/apply/component/queryToolsApply.vue +++ b/src/views/material/lease/apply/component/queryToolsApply.vue @@ -188,23 +188,22 @@ export default { mounted() { this.taskId = this.queryTaskId; this.id = this.queryId; - this.projectInfoList(); - this.getTaskInfo(); + this.projectInfoList().then(() => { + this.getTaskInfo(); + }); }, methods: { /** 租赁单位和工程-下拉选 */ - projectInfoList() { - getListUnite({ id: null }).then((response) => { - this.uniteList = response.data; - }); - getListProject({ id: null }).then((response) => { - this.projectList = response.data; - }); + async projectInfoList() { + const uniteResponse = await getListUnite({ id: null }); + this.uniteList = uniteResponse.data; + const projectResponse = await getListProject({ unitId: null }); + this.projectList = projectResponse.data; }, //获取任务详情-列表数据 - getTaskInfo() { + async getTaskInfo() { this.loading = true; - getApplyInfo(this.id).then((response) => { + await getApplyInfo(this.id).then((response) => { this.maForm = response.data.leaseApplyInfo; this.maForm.unitId = response.data.leaseApplyInfo.leaseUnitId; this.maForm.projectId = response.data.leaseApplyInfo.leaseProjectId;