diff --git a/src/views/material/lease/apply/component/addToolsApply.vue b/src/views/material/lease/apply/component/addToolsApply.vue index 6221976a..a95fdc2c 100644 --- a/src/views/material/lease/apply/component/addToolsApply.vue +++ b/src/views/material/lease/apply/component/addToolsApply.vue @@ -27,7 +27,14 @@ --> - + - + 0) { - this.maForm.unitId = this.unitId[this.unitId.length - 1]; - } else if (val && val.length == 0) { - this.maForm.unitId = ""; - } - getListProject({ unitId: this.maForm.unitId }).then((response) => { - this.projectList = response.data; - }); - // this.unitTemp = this.unitid; + // if (val && val.length > 0) { + // this.maForm.unitId = this.unitId[this.unitId.length - 1]; + // } else if (val && val.length == 0) { + // this.maForm.unitId = ""; + // } + setTimeout(()=>{ + getListProject({ unitId: this.maForm.unitId }).then((response) => { + this.projectList = response.data; + this.maForm.projectId=null + }); + },500) }, projectChange(val) { - if (val && val.length > 0) { - this.maForm.projectId = this.projectId[this.projectId.length - 1]; - } else if (val && val.length == 0) { - this.maForm.projectId = ""; - } - getListUnite({ projectId: this.maForm.projectId }).then((response) => { - this.uniteList = response.data; - }); - // this.projectTemp = this.projectId; + // if (val && val.length > 0) { + // this.maForm.projectId = this.projectId[this.projectId.length - 1]; + // } else if (val && val.length == 0) { + // this.maForm.projectId = ""; + // } + setTimeout(()=>{ + // projectId: this.maForm.projectId + getListUnite({ }).then((response) => { + this.uniteList = response.data; + }); + },500) }, /** 租赁单位和工程-下拉选 */ projectInfoList() { @@ -394,9 +422,6 @@ export default { this.projectList = response.data; }); } - // getListProject({ id: null }).then((response) => { - // this.projectList = response.data; - // }); }, // filterTree(nodes) { // return nodes.map((node) => {