diff --git a/src/views/projectcenter/ProjectAdd.vue b/src/views/projectcenter/ProjectAdd.vue index b0cecf07..42af2981 100644 --- a/src/views/projectcenter/ProjectAdd.vue +++ b/src/views/projectcenter/ProjectAdd.vue @@ -389,7 +389,7 @@ export default { const errorMsgs = { "name": "请输入项目名称", - "type": "请选择项目分类", + "category": "请选择项目分类", "picUrl": "请上传项目封面图", "beginTime": "请选择项目开始时间", "endTime": "请选择项目结束时间", @@ -405,7 +405,7 @@ export default { const createProject = () => { let obj = { "name": projectName["value"], - "type": projectType, + "category": projectType, "picUrl": picUrl, "beginTime": beginTime, "endTime": endTime, @@ -418,9 +418,9 @@ export default { "systemId": 4, "boeFlag": boeFlag, "attach": attach, + "type": 3, "templateId": 10, "parentId": 0, - "category": 0, "notice": "", "noticeFlag": 0, "status": 0 @@ -428,7 +428,7 @@ export default { console.log('提交的数据格式 %o', obj) for (let i in errorMsgs) { console.log(obj[i]) - if (obj[i] === "") { + if (obj[i] === "" || obj[i] === undefined) { message.destroy() message.warning(errorMsgs[i]) return