jinlin
2024-01-29 7a0c5479c363a10f573aa15a54dc8130eabd47ff
web/src/views/modules/project/Project-AddOrUpdate.vue
@@ -197,12 +197,12 @@
        }
        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=[]
      changeDept(selected) {
        console.log(selected, 'selected')
        this.dataForm.projectLeader = ''
        this.dataForm.projectTesters = []
        this.dataForm.projectReviewer = []
        this.dataForm.projectConfiger = []
        this.getUserList()
      },
      async getUserList() {
@@ -224,22 +224,18 @@
      },
      // 表单提交
      async formSubmit() {
        console.log(localStorage.getItem('userSecretClass'),"formSubmit")
        if (this.dataForm.secretClass>localStorage.getItem('userSecretClass')){
        if (this.dataForm.secretClass > localStorage.getItem('userSecretClass')) {
          this.$alert("当前项目设置的密级高于当前用户的密级,请重新设置")
          return
        }
        if (this.dataForm && this.dataForm.projectTesters instanceof Array) {
          this.dataForm.projectTesters = this.dataForm.projectTesters.join(',')
          console.log(this.dataForm.projectTesters)
        }
        if (this.dataForm && this.dataForm.projectReviewer instanceof Array) {
          this.dataForm.projectReviewer = this.dataForm.projectReviewer.join(',')
          console.log(this.dataForm.projectReviewer)
        }
        if (this.dataForm && this.dataForm.projectConfiger instanceof Array) {
          this.dataForm.projectConfiger = this.dataForm.projectConfiger.join(',')
          console.log(this.dataForm.projectConfiger)
        }
        let res = await this.$http[!this.dataForm.id ? 'post' : 'put']('/project/Project/', this.dataForm)
        if (res.success) {