fix:修改创建单层项目type类型错误

This commit is contained in:
wuyx
2022-11-01 17:28:32 +08:00
parent b0fe8b7fa3
commit 250c8c341f

View File

@@ -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