From c21bf35f523ee1430fc5fa02ab1b4171492009b6 Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期五, 12 一月 2024 17:12:30 +0800 Subject: [PATCH] 项目表 --- web/src/views/modules/project/Project-AddOrUpdate.vue | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/web/src/views/modules/project/Project-AddOrUpdate.vue b/web/src/views/modules/project/Project-AddOrUpdate.vue index 8cbbc2c..557d240 100644 --- a/web/src/views/modules/project/Project-AddOrUpdate.vue +++ b/web/src/views/modules/project/Project-AddOrUpdate.vue @@ -104,7 +104,7 @@ <div class="DSTOld-1-Form"> <zt-form-item class="marginTopAndMarginBottom" label-width="120px" label="鎵�灞為儴闂�" prop="bizDeptId" style="width: 48%"> - <zt-select v-model="dataForm.bizDeptId" :datas="bizDeptList" placeholder="鎵�灞為儴闂�"/> + <zt-select @input="changeDept" v-model="dataForm.bizDeptId" :datas="bizDeptList" placeholder="鎵�灞為儴闂�"/> </zt-form-item> <!-- 鏄惁绛剧讲鍚堝悓 --> <zt-form-item label-width="120px" label="鏄惁绛剧讲鍚堝悓" prop="isContract" style="width: 48%"> @@ -176,11 +176,11 @@ bizDeptIdList: [], } }, - watch: { - "dataForm.bizDeptId"(){ - this.getUserList() - } - }, + // watch: { + // "dataForm.bizDeptId"(){ + // this.getUserList() + // } + // }, methods: { init() { this.getInfo() @@ -202,6 +202,14 @@ } console.log(this.dataForm, "async getInfo() dataForm") }, + changeDept(selected){ + console.log(selected,'selected') + this.dataForm.projectLeader='' + this.dataForm.projectTesters=[] + this.dataForm.projectReviewer=[] + this.dataForm.projectConfiger=[] + this.getUserList() + }, async getUserList() { let res = await this.$http.get(`/project/Project/getUsersLists?deptId=${this.dataForm.bizDeptId}`) if (res.success) { -- Gitblit v1.9.1