From 107b065311263a08b8a99c2c491b0121be16569a Mon Sep 17 00:00:00 2001
From: zzyuan <781948537@qq.com>
Date: Mon, 30 Dec 2024 11:02:17 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E5=8D=95=E4=BD=8D=E5=B7=A5?=
=?UTF-8?q?=E7=A8=8B=E6=A0=91=E7=8A=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../lease/apply/component/addToolsApply.vue | 83 ++++++++++++-------
1 file changed, 54 insertions(+), 29 deletions(-)
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) => {