|
@@ -156,18 +156,34 @@ export class AttachmentComponent implements OnInit {
|
|
|
|
|
|
/**判断是否存在未填字段 */
|
|
|
isIgnoreFiledNull() {
|
|
|
+ let selectList = this.eduTextbook?.get('characteristic')
|
|
|
+ let check = false
|
|
|
+ for(let i in selectList){
|
|
|
+ if(selectList[i].label=='通识课'||selectList[i].label=='公共基础课'||selectList[i].label=='专业课'){
|
|
|
+ if(selectList[i].checked) {
|
|
|
+ check=true
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(!check){
|
|
|
+ this.msg.create('warning','请返回选择适用课程性质')
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
let eduColumn = eduTextBook.EduTextbook.fields
|
|
|
let ignoreFiled = [
|
|
|
- 'typeNumber', 'editionNumber', 'importantProjectOther',
|
|
|
+ 'typeNumber', 'code','editionNumber', 'importantProjectOther',
|
|
|
'textbookFiles', 'createdAt', 'updatedAt', 'copyright', 'authorSign',
|
|
|
'CIP', 'isDeleted', 'opinions', 'printNumber', 'printSum', 'render',
|
|
|
'importantProject', 'importantProjectOther', 'complete', 'links', 'recommend',
|
|
|
'printSun', 'discard', 'edition', 'eduProcess', 'authors', 'editor',
|
|
|
- 'copyrightImgUrl', 'CIPImgUrl', 'selfResults', 'expertOpinion', 'evidence',
|
|
|
+ 'copyrightImgUrl', 'CIPImgurl', 'selfResults', 'expertOpinion', 'evidence',
|
|
|
'moreMaterial', 'unitMaterial','approvedImgUrl','department'
|
|
|
] //非必填字段
|
|
|
let textBookJson = this.eduTextbook.toJSON()
|
|
|
+
|
|
|
+
|
|
|
let isVrifly = Object.keys(eduColumn).some((item: string) => {
|
|
|
if (!ignoreFiled.includes(item) && (textBookJson[item] === '' || textBookJson[item] === undefined || textBookJson[item] === null)) {
|
|
|
console.warn('字段未填写:' + item)
|