提交 1f2c0ff8 authored 作者: zax's avatar zax

项目管理问题修改

上级 d7e1275d
......@@ -509,17 +509,16 @@ export default {
};
console.log(data)
if (this.supervisor && this.endTime && this.startTime && this.develop && this.integrate && this.build) {
// this.$server.postProjectAdd(data).then(res => {
// console.log(res)
// if (res.data.code === 200) {
// this.$message.success('项目新增成功!');
// this.$router.push({name: 'projectManagement'});
// } else {
// this.$message.error('项目新增失败!');
// }
// }).catch(err => {
// this.$message.error('项目新增失败!');
// })
this.$server.postProjectAdd(data).then(res => {
if (res.data.code === 200) {
this.$message.success('项目新增成功!');
this.$router.push({name: 'projectManagement'});
} else {
this.$message.error('项目新增失败!');
}
}).catch(err => {
this.$message.error('项目新增失败!');
})
} else {
this.$message.error('基本信息项不可为空!');
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论