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

新建项目 项目类型问题

上级 747977b2
...@@ -438,6 +438,14 @@ ...@@ -438,6 +438,14 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-dialog title :visible.sync="dialogShow" width="40%" center>
<p class="dialog-p">设定范围数据已经被其他管理员修改,是否强制提交进行覆盖</p>
<span slot="footer" class="dialog-footer">
<el-button type="default" size="small" @click="dialogShow = false">取消</el-button>
<el-button type="primary" size="small" @click="coverData()">确定</el-button>
</span>
</el-dialog>
</div> </div>
<div class="third-step" v-else-if="active === 2"> <div class="third-step" v-else-if="active === 2">
<el-form <el-form
...@@ -658,6 +666,7 @@ export default { ...@@ -658,6 +666,7 @@ export default {
changedPerson2: [], changedPerson2: [],
//dialog //dialog
dialogShow: false, dialogShow: false,
flagCover: 0,
//记录上次 //记录上次
scopeOfOrganizationLast: [], scopeOfOrganizationLast: [],
scopeOfPeopleLast: [], scopeOfPeopleLast: [],
...@@ -932,6 +941,7 @@ export default { ...@@ -932,6 +941,7 @@ export default {
//console.log(res); //console.log(res);
this.projectId = res.data.id; this.projectId = res.data.id;
this.projectStatus = res.data.projectStatus; this.projectStatus = res.data.projectStatus;
this.idTypeProject = res.data.idType;
this.operationLast(); this.operationLast();
if (option != "storage" && option != "storageEdit") { if (option != "storage" && option != "storageEdit") {
this.active++; this.active++;
...@@ -1067,7 +1077,8 @@ export default { ...@@ -1067,7 +1077,8 @@ export default {
setKindOfAdministrative: this.getKind("administrativeScope"), setKindOfAdministrative: this.getKind("administrativeScope"),
setKindOfOrganization: this.getKind("organization"), setKindOfOrganization: this.getKind("organization"),
setKindOfDepartment: this.getKind("department"), setKindOfDepartment: this.getKind("department"),
setKindOfPeople: this.getKind("person") setKindOfPeople: this.getKind("person"),
flag: this.flagCover,
}; };
if (req.setKindOfAdministrative == 3) { if (req.setKindOfAdministrative == 3) {
req.scopeOfAdministrative = this.getScope("administrativeUpdate"); req.scopeOfAdministrative = this.getScope("administrativeUpdate");
...@@ -1117,6 +1128,12 @@ export default { ...@@ -1117,6 +1128,12 @@ export default {
this.componentDraft(2); this.componentDraft(2);
} }
}, },
//覆盖数据
coverData() {
this.dialogShow = false;
this.flagCover = 1;
this.nextStep();
},
//点击下一步 //点击下一步
nextStep() { nextStep() {
if (this.active == 0) { if (this.active == 0) {
...@@ -1173,8 +1190,9 @@ export default { ...@@ -1173,8 +1190,9 @@ export default {
//scopeOfOrganization: "2|3|4|5|6|7", //scopeOfOrganization: "2|3|4|5|6|7",
setKindOfDepartment: this.getKind("department"), setKindOfDepartment: this.getKind("department"),
//scopeOfDepartment: "54", //scopeOfDepartment: "54",
setKindOfPeople: this.getKind("person") setKindOfPeople: this.getKind("person"),
//scopeOfPeople: "" //scopeOfPeople: ""
flag: this.flagCover,
}; };
if (req.setKindOfAdministrative == 3) { if (req.setKindOfAdministrative == 3) {
req.scopeOfAdministrative = this.getScope("administrativeUpdate"); req.scopeOfAdministrative = this.getScope("administrativeUpdate");
...@@ -1200,8 +1218,8 @@ export default { ...@@ -1200,8 +1218,8 @@ export default {
if (res.code == "000000") { if (res.code == "000000") {
//移动到选择项目组件 //移动到选择项目组件
//console.log(res); //console.log(res);
this.scopeStatus(res.data.status); let statusMove = this.scopeStatus(res.data.status);
if(res.data.status === 0) { if(statusMove === 0) {
this.active++; this.active++;
this.stepData = [false, false, true]; this.stepData = [false, false, true];
} else { } else {
...@@ -1229,7 +1247,8 @@ export default { ...@@ -1229,7 +1247,8 @@ export default {
setKindOfAdministrative: 0, setKindOfAdministrative: 0,
setKindOfOrganization: this.getKind("organization"), setKindOfOrganization: this.getKind("organization"),
setKindOfDepartment: this.getKind("department"), setKindOfDepartment: this.getKind("department"),
setKindOfPeople: this.getKind("person") setKindOfPeople: this.getKind("person"),
flag: this.flagCover,
}; };
if ( if (
req.setKindOfOrganization == 2 || req.setKindOfOrganization == 2 ||
...@@ -1248,8 +1267,8 @@ export default { ...@@ -1248,8 +1267,8 @@ export default {
vm.POST("portal/scope", req).then(res => { vm.POST("portal/scope", req).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
//移动到选择项目组件 //移动到选择项目组件
this.scopeStatus(res.data.status); let statusMove = this.scopeStatus(res.data.status);
if(res.data.status === 0) { if(statusMove === 0) {
this.active++; this.active++;
this.stepData = [false, false, true]; this.stepData = [false, false, true];
} else { } else {
...@@ -2317,17 +2336,23 @@ export default { ...@@ -2317,17 +2336,23 @@ export default {
}, },
//scope的不同status操作 //scope的不同status操作
scopeStatus(data) { scopeStatus(data) {
console.log(data); //console.log('范围提交status:'+data);
let status = data; let status = data;
if(status === 1) { //console.log('范围提交status:'+status);
if(status === 0) {
this.flagCover = 0;
} else if(status === 1) {
vm.$message({ vm.$message({
type: "info", type: "info",
message: "您已被上级管理员移除项目,暂无权限操作", message: "您已被上级管理员移除项目,暂无权限操作",
}); });
this.$router.push("item-manager"); this.$router.push("item-manager");
} else if(status === 2) { } else if(status === 2) {
console.log('弹框');
this.flagCover = 1;
this.dialogShow = true;
} }
return status;
}, },
//选择项目组件 //选择项目组件
//改变组件选择情况 //改变组件选择情况
...@@ -2506,6 +2531,12 @@ export default { ...@@ -2506,6 +2531,12 @@ export default {
} }
.second-step { .second-step {
margin: 10px 0 0 20px; margin: 10px 0 0 20px;
.dialog-p {
text-align: center;
span {
color: #449284;
}
}
//隐藏树展开 //隐藏树展开
.table-empty { .table-empty {
img { img {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册