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

角色管理替换v2

上级 c31f2c68
...@@ -10,7 +10,7 @@ export const uploadExcel = (data,projectId) => { ...@@ -10,7 +10,7 @@ export const uploadExcel = (data,projectId) => {
sysCode: 12, sysCode: 12,
token: localStorage.getItem('storageToken'), token: localStorage.getItem('storageToken'),
}, },
url: getBaseUrl('portal/portalProjectOrRole/importRoleFile?projectId='+projectId), url: getBaseUrl('portal/v2/role/importRoleFile?projectId='+projectId),
method: 'post', method: 'post',
data: data, data: data,
description: '上传excel文件', description: '上传excel文件',
......
...@@ -385,7 +385,7 @@ export default { ...@@ -385,7 +385,7 @@ export default {
attachRegionId: "", attachRegionId: "",
creator: false, creator: false,
hospitalMasterAdmin: false, hospitalMasterAdmin: false
}; };
}, },
created() { created() {
...@@ -529,7 +529,7 @@ export default { ...@@ -529,7 +529,7 @@ export default {
type: "success" type: "success"
}); });
} else { } else {
this.$message.error(res.message); this.$message.error(res.code);
} }
}); });
}, },
...@@ -688,7 +688,8 @@ export default { ...@@ -688,7 +688,8 @@ export default {
doctorId: row.userId doctorId: row.userId
}; };
openLoading(vm); openLoading(vm);
vm.GET("portal/portalProjectOrRole/getAttachRegion", req).then(res => { // vm.GET("portal/portalProjectOrRole/getAttachRegion", req).then(res => {
vm.GET("portal/v2/role/getAttachRegion", 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;
...@@ -927,10 +928,7 @@ export default { ...@@ -927,10 +928,7 @@ export default {
scopeOfAdministrative: vm.getScope() scopeOfAdministrative: vm.getScope()
}; };
console.log("req", req); console.log("req", req);
vm.POST( vm.POST("portal/v2/role/insertOrUpdateAttachRegion", req).then(res => {
"portal/portalProjectOrRole/insertOrUpdateAttachRegion",
req
).then(res => {
if (res.code == "000000") { if (res.code == "000000") {
vm.$message({ vm.$message({
message: "设置成功", message: "设置成功",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册