| | |
| | | }, |
| | | // 表单提交 |
| | | async formSubmit() { |
| | | console.log(localStorage.getItem('userSecretClass'),"formSubmit") |
| | | 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) { |