mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 21:06:44 +08:00
fix:修改创建单层项目type类型错误
This commit is contained in:
@@ -389,7 +389,7 @@ export default {
|
|||||||
|
|
||||||
const errorMsgs = {
|
const errorMsgs = {
|
||||||
"name": "请输入项目名称",
|
"name": "请输入项目名称",
|
||||||
"type": "请选择项目分类",
|
"category": "请选择项目分类",
|
||||||
"picUrl": "请上传项目封面图",
|
"picUrl": "请上传项目封面图",
|
||||||
"beginTime": "请选择项目开始时间",
|
"beginTime": "请选择项目开始时间",
|
||||||
"endTime": "请选择项目结束时间",
|
"endTime": "请选择项目结束时间",
|
||||||
@@ -405,7 +405,7 @@ export default {
|
|||||||
const createProject = () => {
|
const createProject = () => {
|
||||||
let obj = {
|
let obj = {
|
||||||
"name": projectName["value"],
|
"name": projectName["value"],
|
||||||
"type": projectType,
|
"category": projectType,
|
||||||
"picUrl": picUrl,
|
"picUrl": picUrl,
|
||||||
"beginTime": beginTime,
|
"beginTime": beginTime,
|
||||||
"endTime": endTime,
|
"endTime": endTime,
|
||||||
@@ -418,9 +418,9 @@ export default {
|
|||||||
"systemId": 4,
|
"systemId": 4,
|
||||||
"boeFlag": boeFlag,
|
"boeFlag": boeFlag,
|
||||||
"attach": attach,
|
"attach": attach,
|
||||||
|
"type": 3,
|
||||||
"templateId": 10,
|
"templateId": 10,
|
||||||
"parentId": 0,
|
"parentId": 0,
|
||||||
"category": 0,
|
|
||||||
"notice": "",
|
"notice": "",
|
||||||
"noticeFlag": 0,
|
"noticeFlag": 0,
|
||||||
"status": 0
|
"status": 0
|
||||||
@@ -428,7 +428,7 @@ export default {
|
|||||||
console.log('提交的数据格式 %o', obj)
|
console.log('提交的数据格式 %o', obj)
|
||||||
for (let i in errorMsgs) {
|
for (let i in errorMsgs) {
|
||||||
console.log(obj[i])
|
console.log(obj[i])
|
||||||
if (obj[i] === "") {
|
if (obj[i] === "" || obj[i] === undefined) {
|
||||||
message.destroy()
|
message.destroy()
|
||||||
message.warning(errorMsgs[i])
|
message.warning(errorMsgs[i])
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user