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

暂存问题

上级 413818a2
...@@ -955,7 +955,9 @@ export default { ...@@ -955,7 +955,9 @@ export default {
attachmentPDFModel: JSON.stringify(attachmentPDFModel) attachmentPDFModel: JSON.stringify(attachmentPDFModel)
}; };
//console.log(postData); //console.log(postData);
openLoading(vm);
vm.POST("portal/portalInfo/insertOrUpdate", postData).then(res => { vm.POST("portal/portalInfo/insertOrUpdate", postData).then(res => {
closeLoading(vm);
if(option == "storage" || option == "storageEdit") { if(option == "storage" || option == "storageEdit") {
vm.$message.info(res.message); vm.$message.info(res.message);
} }
...@@ -1094,6 +1096,13 @@ export default { ...@@ -1094,6 +1096,13 @@ export default {
} }
} else if (this.active == 1) { } else if (this.active == 1) {
//暂存步骤2 //暂存步骤2
if(this.tagsRegion.length == 0) {
vm.$message({
type: "info",
message: '成功',
});
return;
}
let req = { let req = {
projectId: this.projectId, projectId: this.projectId,
setKindOfAdministrative: this.getKind("administrativeScope"), setKindOfAdministrative: this.getKind("administrativeScope"),
...@@ -1140,7 +1149,7 @@ export default { ...@@ -1140,7 +1149,7 @@ export default {
complete() { complete() {
//type 1:暂存 2:完成 //type 1:暂存 2:完成
if (this.projectStatus == 4) { if (this.projectStatus == 4) {
vm.$message.info("已上架状态只能编辑基础信息"); vm.$message.info("完成");
vm.$router.push({ path: "item-manager" }); vm.$router.push({ path: "item-manager" });
return; return;
} }
...@@ -1721,8 +1730,10 @@ export default { ...@@ -1721,8 +1730,10 @@ export default {
//删除label节点 同步树结构 //删除label节点 同步树结构
handleCloseTree(tag) { handleCloseTree(tag) {
this.tagsRegion.splice(this.tagsRegion.indexOf(tag), 1); if (this.projectStatus != 4) {
this.setCheckedKeys(this.tagsRegion); this.tagsRegion.splice(this.tagsRegion.indexOf(tag), 1);
this.setCheckedKeys(this.tagsRegion);
}
}, },
//获取反选数据 //获取反选数据
getDifference(a, b) { getDifference(a, b) {
...@@ -1779,6 +1790,7 @@ export default { ...@@ -1779,6 +1790,7 @@ export default {
"没", "没",
this.changedOrganization2 this.changedOrganization2
); );
this.updatePerson();
}, },
//改变机构 table 的check状态 //改变机构 table 的check状态
selectionChangeDepartment(val) { selectionChangeDepartment(val) {
...@@ -2492,13 +2504,18 @@ export default { ...@@ -2492,13 +2504,18 @@ export default {
updateOrganizationAndPerson(allSelectedKeys) { updateOrganizationAndPerson(allSelectedKeys) {
this.tableOrganization = []; this.tableOrganization = [];
this.tablePerson = []; this.tablePerson = [];
// this.lookedOrganization = [];
// this.changedOrganization = [];
// this.changedOrganization2 = [];
// this.lookedPerson = [];
// this.changedPerson = [];
// this.changedPerson2 = [];
}, },
//设定机构改变更新设定人员 //设定机构改变更新设定人员
updatePerson(organization) { updatePerson() {
if (this.hasOrganizationInit === true) { // this.lookedPerson = [];
this.tablePerson = []; // this.changedPerson = [];
} // this.changedPerson2 = [];
this.hasOrganizationInit = true;
}, },
//scope的不同status操作 //scope的不同status操作
scopeStatus(data) { scopeStatus(data) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册