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

status4Flag

上级 37d28fb9
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
<el-radio-group <el-radio-group
size="small" size="small"
v-model="formData.scopeType" v-model="formData.scopeType"
:disabled="peopleLevel == 'L3' || projectStatus != 1" :disabled="showScopeType()"
> >
<el-radio :label="0">使用地区范围</el-radio> <el-radio :label="0">使用地区范围</el-radio>
<el-radio :label="1">使用小生态范围</el-radio> <el-radio :label="1">使用小生态范围</el-radio>
...@@ -464,6 +464,7 @@ ...@@ -464,6 +464,7 @@
placeholder="选择小生态" placeholder="选择小生态"
v-if="idType != 2" v-if="idType != 2"
@change="selectChangeEcology" @change="selectChangeEcology"
:disabled="status4Flag == 1"
> >
<el-option <el-option
v-for="item in ecologySelect" v-for="item in ecologySelect"
...@@ -800,6 +801,7 @@ export default { ...@@ -800,6 +801,7 @@ export default {
}, },
tagsComponent: [], tagsComponent: [],
projectStatus: "", projectStatus: "",
status4Flag: "",
showStorage: false, showStorage: false,
//校验工具 数据 //校验工具 数据
rulesComponent: { rulesComponent: {
...@@ -989,6 +991,7 @@ export default { ...@@ -989,6 +991,7 @@ export default {
this.setEditData(editData); this.setEditData(editData);
this.idTypeProject = res.data.projectData.idType; this.idTypeProject = res.data.projectData.idType;
this.projectStatus = res.data.projectData.projectStatus; this.projectStatus = res.data.projectData.projectStatus;
this.status4Flag = res.data.projectData.status4Flag;
if (this.projectStatus == 1) { if (this.projectStatus == 1) {
this.showStorage = true; this.showStorage = true;
} }
...@@ -1090,6 +1093,8 @@ export default { ...@@ -1090,6 +1093,8 @@ export default {
this.initRange(); this.initRange();
this.getDepartment(); this.getDepartment();
} }
} else {
vm.$message.info(res.message);
} }
}); });
}, },
...@@ -1212,6 +1217,23 @@ export default { ...@@ -1212,6 +1217,23 @@ export default {
} }
} else if (this.active == 1) { } else if (this.active == 1) {
//暂存步骤2 //暂存步骤2
if(this.formData.scopeType == 1) {
//小生态暂存
if(this.formEcology.ecology == '') {
vm.$message.info('完成');
} else {
let req = {};
req.ecology = [];
req.ecology[0] = this.formEcology.ecology;
vm.POST("portal/scope/v1/"+this.projectId+"/organization", req).then(
res => {
//console.log('设定小生态范围',res);
vm.$message.info(res.message);
}
);
}
return;
}
if(this.tagsRegion.length == 0) { if(this.tagsRegion.length == 0) {
vm.$message({ vm.$message({
type: "info", type: "info",
...@@ -1264,7 +1286,7 @@ export default { ...@@ -1264,7 +1286,7 @@ export default {
//点击完成 //点击完成
complete() { complete() {
//type 1:暂存 2:完成 //type 1:暂存 2:完成
if (this.projectStatus == 4) { if (this.status4Flag == 1) {
vm.$message.info("完成"); vm.$message.info("完成");
vm.$router.push({ path: "item-manager" }); vm.$router.push({ path: "item-manager" });
return; return;
...@@ -1871,7 +1893,7 @@ export default { ...@@ -1871,7 +1893,7 @@ export default {
//删除label节点 同步树结构 //删除label节点 同步树结构
handleCloseTree(tag) { handleCloseTree(tag) {
if (this.projectStatus != 4) { if (this.status4Flag != 1) {
this.tagsRegion.splice(this.tagsRegion.indexOf(tag), 1); this.tagsRegion.splice(this.tagsRegion.indexOf(tag), 1);
this.setCheckedKeys(this.tagsRegion); this.setCheckedKeys(this.tagsRegion);
} }
...@@ -1901,7 +1923,7 @@ export default { ...@@ -1901,7 +1923,7 @@ export default {
}); });
}, },
selectableTableList(row, index) { selectableTableList(row, index) {
if (this.projectStatus == 4) { if (this.status4Flag == 1) {
if (row.status == 1) { if (row.status == 1) {
//console.log("scopeReq",this.scopeReq); //console.log("scopeReq",this.scopeReq);
return false; return false;
...@@ -2686,6 +2708,15 @@ export default { ...@@ -2686,6 +2708,15 @@ export default {
} }
return list; return list;
}, },
//判断项目范围选择
showScopeType() {
if(this.projectStatus == '' || this.projectStatus == 1) {
if(this.peopleLevel != 'L3') {
return false;
}
}
return true;
},
//选择小生态 //选择小生态
selectChangeEcology(value) { selectChangeEcology(value) {
this.formEcology.pageNum = 1; this.formEcology.pageNum = 1;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册