bug修复
This commit is contained in:
parent
d8f3ae3424
commit
2689f0cde1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue