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

角色圈定范围 tree构建

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