wente
2024-01-12 c21bf35f523ee1430fc5fa02ab1b4171492009b6
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) {