jinlin
2024-01-12 bb3bc1c8508dc28d1780c2b0e068595baedb5100
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" onchange="getUserList()" placeholder="所属部门"/>
              <zt-select v-model="dataForm.bizDeptId" :datas="bizDeptList" placeholder="所属部门"/>
            </zt-form-item>
            <!-- 是否签署合同 -->
            <zt-form-item label-width="120px" label="是否签署合同" prop="isContract" style="width: 48%">
@@ -167,7 +167,6 @@
          projectConfiger: '',
          bizDeptId: '',
          isContract: '',
          usersecretClass: ''
        },
        projectLeaderList: [],
        projectTestersList: [],
@@ -178,10 +177,9 @@
      }
    },
    watch: {
      /*      bizDeptId(val, oldval) {
              alert(1)
      "dataForm.bizDeptId"(){
              this.getUserList()
            },*/
      }
    },
    methods: {
      init() {
@@ -202,6 +200,7 @@
          }
          await this.getUserList()
        }
        console.log(this.dataForm, "async getInfo() dataForm")
      },
      async getUserList() {
        let res = await this.$http.get(`/project/Project/getUsersLists?deptId=${this.dataForm.bizDeptId}`)
@@ -222,7 +221,8 @@
      },
      // 表单提交
      async formSubmit() {
        if (this.dataForm.secretClass>this.dataForm.usersecretClass){
        console.log(localStorage.getItem('userSecretClass'),"formSubmit")
        if (this.dataForm.secretClass>localStorage.getItem('userSecretClass')){
          this.$alert("当前项目设置的密级高于当前用户的密级,请重新设置")
          return
        }