| | |
| | | // 表单提交 |
| | | async formSubmit(submitType) { |
| | | let isFiles = true; |
| | | let flag = true; |
| | | console.log(this.dataForm, "this.dataForm11111") |
| | | this.dataForm.configItemList.forEach(item => { |
| | | console.log(item, "his.dataForm.technicalList.forEach") |
| | | item.files.groups.forEach(groups => { |
| | | groups.fields.forEach(files => { |
| | | if (files.files.length === 0) { |
| | | this.$alert("当前存在未上传附件的技术资料,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | }) |
| | | }) |
| | | if (parseInt(item.secretClass) > localStorage.getItem('userSecretClass')) { |
| | | this.$alert("当前项目设置的密级高于当前用户的密级,请重新设置") |
| | | flag =false |
| | | } |
| | | }) |
| | | if (this.showColumn && submitType == 'bl') { |
| | | if (!flag){ |
| | | return |
| | | } |
| | | if (this.showColumn && submitType === 'bl') { |
| | | for (let item of this.dataForm.configItemList) { |
| | | if (item) { |
| | | if (this.pageNameCode[item.itemName] && !item.checkId) { |
| | |
| | | } |
| | | } |
| | | if (submitType === 'tj' || submitType === 'bl') { |
| | | this.dataForm.configItemList.forEach(item => { |
| | | console.log(item, "his.dataForm.technicalList.forEach") |
| | | item.files.groups.forEach(groups => { |
| | | groups.fields.forEach(files => { |
| | | if (files.files.length === 0) { |
| | | this.$alert("当前存在未上传附件的配置项,请重新上传") |
| | | isFiles = false |
| | | return isFiles |
| | | } |
| | | }) |
| | | }) |
| | | }) |
| | | if (!isFiles){ |
| | | return |
| | | } |