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() {
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;