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

status4Flag

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