bug修复

This commit is contained in:
hongchao 2025-07-15 13:36:24 +08:00
parent d8f3ae3424
commit 2689f0cde1
1 changed files with 10 additions and 11 deletions

View File

@ -188,23 +188,22 @@ export default {
mounted() { mounted() {
this.taskId = this.queryTaskId; this.taskId = this.queryTaskId;
this.id = this.queryId; this.id = this.queryId;
this.projectInfoList(); this.projectInfoList().then(() => {
this.getTaskInfo(); this.getTaskInfo();
});
}, },
methods: { methods: {
/** 租赁单位和工程-下拉选 */ /** 租赁单位和工程-下拉选 */
projectInfoList() { async projectInfoList() {
getListUnite({ id: null }).then((response) => { const uniteResponse = await getListUnite({ id: null });
this.uniteList = response.data; this.uniteList = uniteResponse.data;
}); const projectResponse = await getListProject({ unitId: null });
getListProject({ id: null }).then((response) => { this.projectList = projectResponse.data;
this.projectList = response.data;
});
}, },
//- //-
getTaskInfo() { async getTaskInfo() {
this.loading = true; this.loading = true;
getApplyInfo(this.id).then((response) => { await getApplyInfo(this.id).then((response) => {
this.maForm = response.data.leaseApplyInfo; this.maForm = response.data.leaseApplyInfo;
this.maForm.unitId = response.data.leaseApplyInfo.leaseUnitId; this.maForm.unitId = response.data.leaseApplyInfo.leaseUnitId;
this.maForm.projectId = response.data.leaseApplyInfo.leaseProjectId; this.maForm.projectId = response.data.leaseApplyInfo.leaseProjectId;