diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue
index 4917ad8..09d937d 100644
--- a/src/components/Sidebar.vue
+++ b/src/components/Sidebar.vue
@@ -106,23 +106,10 @@ export default {
index: "/devicePhotoSchedule",
title: "拍照时间表设置",
},
- // {
- // index: "/deviceReport",
- // title: "装置报表",
- // },
{
index: "/waterMark",
title: "水印下发",
},
- // {
- // index: "/deviceUpgrade",
- // title: "装置升级",
- // },
- // {
- // icon: "el-icon-picture-outline",
- // index: "imageSettings",
- // title: "图像采集参数设置",
- // },
],
},
{
@@ -134,10 +121,10 @@ export default {
index: "/userManagement",
title: "用户管理",
},
- {
- index: "/roleManagement",
- title: "角色管理",
- },
+ // {
+ // index: "/roleManagement",
+ // title: "角色管理",
+ // },
{
index: "/globalTools",
title: "全局设置",
@@ -201,100 +188,97 @@ export default {
},
],
},
+ {
+ icon: "el-icon-monitor",
+ index: "/system",
+ title: "系统管理",
+ subs: [
+ {
+ index: "/userManagement",
+ title: "用户管理",
+ },
+ ],
+ },
],
- // items2: [
- // {
- // icon: "el-icon-s-home",
- // index: "stritl",
- // title: "首页",
- // },
- // {
- // icon: "el-icon-camera",
- // index: "/realTimeMonitor",
- // title: "实时监控",
- // },
-
- // {
- // icon: "el-icon-film",
- // index: "/pictureRotation",
- // title: "图片轮巡",
- // },
- // {
- // icon: "el-icon-bell",
- // index: "photoAlarm",
- // title: "告警处理",
- // },
- // {
- // icon: "el-icon-search",
- // index: "/realTimeSearch",
- // title: "历史图片",
- // },
- // {
- // icon: "el-icon-files",
- // index: "/property",
- // title: "资产管理",
- // subs: [
- // {
- // index: "/lineInformation",
- // title: "线路信息管理",
- // },
- // {
- // index: "/towerInformation",
- // title: "杆塔信息管理",
- // },
+ items2: [
+ {
+ icon: "el-icon-s-home",
+ index: "stritl",
+ title: "首页",
+ },
+ {
+ icon: "el-icon-camera",
+ index: "/realTimeMonitor",
+ title: "实时监控",
+ },
- // // {
- // // index: "/cameraChannel",
- // // title: "通道管理",
- // // },
- // {
- // index: "/photographicDevice",
- // title: "拍照装置管理",
- // },
- // {
- // index: "/devicePhotoSchedule",
- // title: "拍照时间表设置",
- // },
- // // {
- // // index: "/deviceUpgrade",
- // // title: "装置升级",
- // // },
- // // {
- // // icon: "el-icon-picture-outline",
- // // index: "imageSettings",
- // // title: "图像采集参数设置",
- // // },
- // ],
- // },
- // ],
- // hnjcitems: [
- // {
- // icon: "el-icon-s-home",
- // index: "stritl",
- // title: "首页",
- // },
- // {
- // icon: "el-icon-camera",
- // index: "/realTimeMonitor",
- // title: "实时监控",
- // },
- // {
- // icon: "el-icon-film",
- // index: "/pictureRotation",
- // title: "图片轮巡",
- // },
- // {
- // icon: "el-icon-bell",
- // index: "photoAlarm",
- // title: "告警处理",
- // },
- // // {
- // // icon: "el-icon-search",
- // // index: "/realTimeSearch",
- // // title: "历史图片",
- // // },
- // ],
+ {
+ icon: "el-icon-film",
+ index: "/pictureRotation",
+ title: "图片轮巡",
+ },
+ {
+ icon: "el-icon-bell",
+ index: "photoAlarm",
+ title: "告警处理",
+ },
+ {
+ icon: "el-icon-search",
+ index: "/realTimeSearch",
+ title: "历史图片",
+ },
+ {
+ icon: "el-icon-files",
+ index: "/property",
+ title: "资产管理",
+ subs: [
+ {
+ index: "/lineInformation",
+ title: "线路信息管理",
+ },
+ {
+ index: "/towerInformation",
+ title: "杆塔信息管理",
+ },
+ {
+ index: "/photographicDevice",
+ title: "拍照装置管理",
+ },
+ {
+ index: "/devicePhotoSchedule",
+ title: "拍照时间表设置",
+ },
+ ],
+ },
+ ],
+ hnjcitems: [
+ {
+ icon: "el-icon-s-home",
+ index: "stritl",
+ title: "首页",
+ },
+ {
+ icon: "el-icon-camera",
+ index: "/realTimeMonitor",
+ title: "实时监控",
+ },
+ {
+ icon: "el-icon-film",
+ index: "/pictureRotation",
+ title: "图片轮巡",
+ },
+ {
+ icon: "el-icon-bell",
+ index: "photoAlarm",
+ title: "告警处理",
+ },
+ {
+ icon: "el-icon-search",
+ index: "/realTimeSearch",
+ title: "历史图片",
+ },
+ ],
role: "",
};
},
@@ -317,18 +301,20 @@ export default {
console.log("用户管理");
console.log(this.role);
+ // if (this.role == 0) {
+ // this.items = this.items;
+ // } else {
+ // this.items = this.items1;
+ // }
if (this.role == 0) {
this.items = this.items;
- } else {
+ } else if (this.role == 1) {
this.items = this.items1;
+ } else if (this.role == 2) {
+ this.items = this.items2;
+ } else if (this.role == 4) {
+ this.items = this.hnjcitems;
}
- // else if (this.role == 1) {
- // this.items = this.items1;
- // } else if (this.role == 2) {
- // this.items = this.items2;
- // } else if (this.role == 4) {
- // this.items = this.hnjcitems;
- // }
console.log(this.items);
console.log(this.activeIndex);
diff --git a/src/utils/api/index.js b/src/utils/api/index.js
index 2545825..cf5486e 100644
--- a/src/utils/api/index.js
+++ b/src/utils/api/index.js
@@ -758,7 +758,7 @@ export function getPermissionTree(data) {
export function getPermission(data) {
return request({
- url: "/xymanager/role/getPermission",
+ url: "/xymanager/user/getPermission",
method: "get",
params: data,
headers: {
@@ -770,7 +770,7 @@ export function getPermission(data) {
//@Api0peration("修改杈限")
export function changePermission(data) {
return request({
- url: "/xymanager/role/changePermission",
+ url: "/xymanager/user/changePermission",
method: "post",
data,
});
diff --git a/src/views/system/roleManagement/components/addRole.vue b/src/views/system/roleManagement/components/addRole.vue
index 1f14258..861142c 100644
--- a/src/views/system/roleManagement/components/addRole.vue
+++ b/src/views/system/roleManagement/components/addRole.vue
@@ -52,7 +52,11 @@ export default {
//判断
getdataform(val) {
console.log(val);
-
+ if (val == null) {
+ return (this.formdata = {
+ name: "",
+ });
+ }
//this.formdata = val;
this.formdata = JSON.parse(JSON.stringify(val));
},
diff --git a/src/views/system/roleManagement/index.vue b/src/views/system/roleManagement/index.vue
index bc13dcf..9787e62 100644
--- a/src/views/system/roleManagement/index.vue
+++ b/src/views/system/roleManagement/index.vue
@@ -47,9 +47,7 @@
type="text"
>修改
- 权限绑定
+
-
-