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

角色圈定范围 tree构建

上级 c16a571b
......@@ -346,7 +346,8 @@ export default {
dialogArea: false,
tagsRegion: [],
doctorId: "",
allSelectedKeys: []
allSelectedKeys: [],
attachRegionId: "",
};
},
created() {
......@@ -534,8 +535,8 @@ export default {
projectId: vm.formInline.portalProjectId
};
openLoading(vm);
vm.GET("portal/scope/v1/administrative", req).then(res => {
closeLoading(vm);
// vm.GET("portal/scope/v1/administrative", req).then(res => {
// closeLoading(vm);
// if (res.code == "000000") {
// let administrativeAll = res.data.administrativeAll;
// let administrative = res.data.administrative;
......@@ -543,7 +544,7 @@ export default {
// this.treeData[0] = administrativeAll;
// this.setTreeData(administrative);
// }
});
// });
let req2 = {
projectId: vm.formInline.portalProjectId,
doctorId: row.userId
......@@ -555,6 +556,7 @@ export default {
this.treeData = [];
this.treeData[0] = administrativeAll;
this.setTreeData(administrative);
vm.attachRegionId = res.data.attachRegionId;
}
});
},
......@@ -737,13 +739,12 @@ export default {
},
updateAttachRegion() {
let req = {
attachRegionId: 0,
attachRegionId: vm.attachRegionId,
doctorId: vm.doctorId,
projectId: vm.formInline.portalProjectId,
scopeOfAdministrative: vm.getScope(),
};
console.log("req", req);
debugger;
vm.POST("portal/portalProjectOrRole/insertOrUpdateAttachRegion", req).then(
res => {
if (res.code == "000000") {
......@@ -751,8 +752,9 @@ export default {
message: '设置成功',
type: 'success'
});
vm.dialogArea = false;
} else {
this.$message.error(res.message);
vm.$message.error(res.message);
}
}
);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册