提交 ed6cef3f 编写于 作者: zhentian.jia's avatar zhentian.jia

新增 草稿 才有暂存

上级 da462b8e
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</el-steps> </el-steps>
</el-col> </el-col>
<el-col :span="5" :offset="5"> <el-col :span="5" :offset="5">
<el-button size="small" @click="storage">暂存</el-button> <el-button v-if="showStorage" size="small" @click="storage">暂存</el-button>
<el-button v-if="active<2" size="small" class="button-green" @click="nextStep">下一步</el-button> <el-button v-if="active<2" size="small" class="button-green" @click="nextStep">下一步</el-button>
<el-button v-if="active>=2" size="small" class="button-white" @click="complete">完成</el-button> <el-button v-if="active>=2" size="small" class="button-white" @click="complete">完成</el-button>
</el-col> </el-col>
...@@ -630,6 +630,7 @@ export default { ...@@ -630,6 +630,7 @@ export default {
}, },
tagsComponent: [], tagsComponent: [],
projectStatus: "", projectStatus: "",
showStorage: false,
//校验工具 数据 //校验工具 数据
rulesComponent: { rulesComponent: {
component: [ component: [
...@@ -801,12 +802,17 @@ export default { ...@@ -801,12 +802,17 @@ export default {
let editData = res.data; let editData = res.data;
this.setEditData(editData); this.setEditData(editData);
this.projectStatus = res.data.projectData.projectStatus; this.projectStatus = res.data.projectData.projectStatus;
//console.log('projectStatus:',this.projectStatus) if(this.projectStatus == 1) {
this.showStorage = true;
}
console.log('projectStatus:',this.projectStatus);
} else { } else {
console.log(res); console.log(res);
} }
} }
); );
} else {
this.showStorage = true;
} }
}, },
//编辑/更新 基础信息 //编辑/更新 基础信息
...@@ -879,7 +885,6 @@ export default { ...@@ -879,7 +885,6 @@ export default {
this.active++; this.active++;
this.stepData = [false, true, false]; this.stepData = [false, true, false];
// this.projectId = res.data.id; // this.projectId = res.data.id;
// this.projectStatus = res.data.projectStatus;
this.initRange(); this.initRange();
this.getDepartment(); this.getDepartment();
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册