|
|
@@ -288,11 +288,6 @@ const mutations = {
|
|
|
let arrFlag = {};
|
|
|
ress.data.data.forEach((i) => {
|
|
|
if (i.name == "房态管理") {
|
|
|
- roleList.push({
|
|
|
- name: "房态管理",
|
|
|
- path: "roomStatus",
|
|
|
- route: "/hotel/roomStatus",
|
|
|
- });
|
|
|
let roomStatus = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "预定") {
|
|
|
@@ -317,16 +312,28 @@ const mutations = {
|
|
|
roomStatus.huanfang = j.status;
|
|
|
} else if (j.functionPoint == "开房") {
|
|
|
roomStatus.kaifang = j.status;
|
|
|
+ } else if (j.functionPoint == "开电") {
|
|
|
+ roomStatus.kaidian = j.status;
|
|
|
+ } else if (j.functionPoint == "关电") {
|
|
|
+ roomStatus.guandian = j.status;
|
|
|
+ } else if (j.functionPoint == "取消预定") {
|
|
|
+ roomStatus.quxiaoyuding = j.status;
|
|
|
+ } else if (j.functionPoint == "取消维修") {
|
|
|
+ roomStatus.quxiaoweixiu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ roomStatus.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "房态管理",
|
|
|
+ path: "roomStatus",
|
|
|
+ route: "/hotel/roomStatus",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.roomStatus = roomStatus;
|
|
|
// sessionStorage.setItem("roomStatus", JSON.stringify(roomStatus));
|
|
|
} else if (i.name == "房型管理") {
|
|
|
- roleList.push({
|
|
|
- name: "房型管理",
|
|
|
- path: "roomType",
|
|
|
- route: "/hotel/roomType",
|
|
|
- });
|
|
|
let roomType = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -339,32 +346,40 @@ const mutations = {
|
|
|
roomType.pilianggaijia = j.status;
|
|
|
} else if (j.functionPoint == "改价记录") {
|
|
|
roomType.gaijiajilu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ roomType.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "房型管理",
|
|
|
+ path: "roomType",
|
|
|
+ route: "/hotel/roomType",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.roomType = roomType;
|
|
|
// sessionStorage.setItem("roomType", JSON.stringify(roomType));
|
|
|
} else if (i.name == "房价管理") {
|
|
|
- roleList.push({
|
|
|
- name: "房价管理",
|
|
|
- path: "roomPrice",
|
|
|
- route: "/hotel/roomPrice",
|
|
|
- });
|
|
|
let roomPrice = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "批量改价") {
|
|
|
roomPrice.pilianggaijia = j.status;
|
|
|
} else if (j.functionPoint == "改价记录") {
|
|
|
roomPrice.gaijiajilu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ roomPrice.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "房价管理",
|
|
|
+ path: "roomPrice",
|
|
|
+ route: "/hotel/roomPrice",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.roomPrice = roomPrice;
|
|
|
// sessionStorage.setItem("roomPrice", JSON.stringify(roomPrice));
|
|
|
} else if (i.name == "订单管理") {
|
|
|
- roleList.push({
|
|
|
- name: "订单管理",
|
|
|
- path: "order",
|
|
|
- route: "/hotel/order",
|
|
|
- });
|
|
|
let order = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "取消") {
|
|
|
@@ -381,32 +396,40 @@ const mutations = {
|
|
|
order.huanfang = j.status;
|
|
|
} else if (j.functionPoint == "导出") {
|
|
|
order.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ order.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "订单管理",
|
|
|
+ path: "order",
|
|
|
+ route: "/hotel/order",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.order = order;
|
|
|
// sessionStorage.setItem("order", JSON.stringify(order));
|
|
|
} else if (i.name == "课表管理") {
|
|
|
- roleList.push({
|
|
|
- name: "课表管理",
|
|
|
- path: "class",
|
|
|
- route: "/hotel/class",
|
|
|
- });
|
|
|
let classs = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导入值班") {
|
|
|
classs.daoruzhiban = j.status;
|
|
|
} else if (j.functionPoint == "导出") {
|
|
|
classs.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ classs.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "课表管理",
|
|
|
+ path: "class",
|
|
|
+ route: "/hotel/class",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.classs = classs;
|
|
|
// sessionStorage.setItem("classs", JSON.stringify(classs));
|
|
|
} else if (i.name == "流程管理") {
|
|
|
- roleList.push({
|
|
|
- name: "流程管理",
|
|
|
- path: "process",
|
|
|
- route: "/hotel/process",
|
|
|
- });
|
|
|
let process = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "同意") {
|
|
|
@@ -415,30 +438,40 @@ const mutations = {
|
|
|
process.bohui = j.status;
|
|
|
} else if (j.functionPoint == "规则设置") {
|
|
|
process.guizeshezhi = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ process.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "流程管理",
|
|
|
+ path: "process",
|
|
|
+ route: "/hotel/process",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.process = process;
|
|
|
// sessionStorage.setItem("process", JSON.stringify(process));
|
|
|
} else if (i.name == "统计报表") {
|
|
|
- roleList.push({
|
|
|
- name: "统计报表",
|
|
|
- path: "statement",
|
|
|
- route: "/hotel/statement",
|
|
|
- });
|
|
|
let statement = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导出") {
|
|
|
statement.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "详情") {
|
|
|
+ statement.xiangqing = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ statement.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "统计报表",
|
|
|
+ path: "statement",
|
|
|
+ route: "/hotel/statement",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.statement = statement;
|
|
|
// sessionStorage.setItem("statement", JSON.stringify(statement));
|
|
|
} else if (i.name == "门锁管理") {
|
|
|
- roleList.push({
|
|
|
- name: "门锁管理",
|
|
|
- path: "doorLock",
|
|
|
- route: "/hotel/doorLock",
|
|
|
- });
|
|
|
let doorLock = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导入") {
|
|
|
@@ -453,32 +486,46 @@ const mutations = {
|
|
|
doorLock.jiesuoshebei = j.status;
|
|
|
} else if (j.functionPoint == "NFC设置") {
|
|
|
doorLock.nfcshezhi = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ doorLock.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "门锁管理",
|
|
|
+ path: "doorLock",
|
|
|
+ route: "/hotel/doorLock",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.doorLock = doorLock;
|
|
|
// sessionStorage.setItem("doorLock", JSON.stringify(doorLock));
|
|
|
} else if (i.name == "水电表管理") {
|
|
|
- roleList.push({
|
|
|
- name: "水电表管理",
|
|
|
- path: "meter",
|
|
|
- route: "/hotel/meter",
|
|
|
- });
|
|
|
let meter = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导出") {
|
|
|
meter.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "添加") {
|
|
|
+ meter.tianjia = j.status;
|
|
|
+ } else if (j.functionPoint == "编辑") {
|
|
|
+ meter.bianji = j.status;
|
|
|
+ } else if (j.functionPoint == "删除") {
|
|
|
+ meter.shanchu = j.status;
|
|
|
} else if (j.functionPoint == "导入") {
|
|
|
meter.daoru = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ meter.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "水电表管理",
|
|
|
+ path: "meter",
|
|
|
+ route: "/hotel/meter",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.meter = meter;
|
|
|
// sessionStorage.setItem("meter", JSON.stringify(meter));
|
|
|
} else if (i.name == "用户管理") {
|
|
|
- roleList.push({
|
|
|
- name: "用户管理",
|
|
|
- path: "user",
|
|
|
- route: "/hotel/user",
|
|
|
- });
|
|
|
let user = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -487,16 +534,20 @@ const mutations = {
|
|
|
user.bianji = j.status;
|
|
|
} else if (j.functionPoint == "删除") {
|
|
|
user.shanchu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ user.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "用户管理",
|
|
|
+ path: "user",
|
|
|
+ route: "/hotel/user",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.user = user;
|
|
|
// sessionStorage.setItem("user", JSON.stringify(user));
|
|
|
} else if (i.name == "角色管理") {
|
|
|
- roleList.push({
|
|
|
- name: "角色管理",
|
|
|
- path: "userRoles",
|
|
|
- route: "/hotel/userRoles",
|
|
|
- });
|
|
|
let userRoles = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -505,16 +556,20 @@ const mutations = {
|
|
|
userRoles.bianji = j.status;
|
|
|
} else if (j.functionPoint == "删除") {
|
|
|
userRoles.shanchu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ userRoles.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "角色管理",
|
|
|
+ path: "userRoles",
|
|
|
+ route: "/hotel/userRoles",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.userRoles = userRoles;
|
|
|
// sessionStorage.setItem("userRoles", JSON.stringify(userRoles));
|
|
|
} else if (i.name == "账号管理") {
|
|
|
- roleList.push({
|
|
|
- name: "账号管理",
|
|
|
- path: "account",
|
|
|
- route: "/hotel/account",
|
|
|
- });
|
|
|
let account = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -523,16 +578,20 @@ const mutations = {
|
|
|
account.bianji = j.status;
|
|
|
} else if (j.functionPoint == "删除") {
|
|
|
account.shanchu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ account.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "账号管理",
|
|
|
+ path: "account",
|
|
|
+ route: "/hotel/account",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.account = account;
|
|
|
// sessionStorage.setItem("account", JSON.stringify(account));
|
|
|
} else if (i.name == "系统管理") {
|
|
|
- roleList.push({
|
|
|
- name: "系统管理",
|
|
|
- path: "system",
|
|
|
- route: "/hotel/system",
|
|
|
- });
|
|
|
let system = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "退房设置") {
|
|
|
@@ -545,14 +604,23 @@ const mutations = {
|
|
|
system.cuijiaoshezhi = j.status;
|
|
|
} else if (j.functionPoint == "设施服务设置") {
|
|
|
system.sheshifuwushezhi = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ system.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "系统管理",
|
|
|
+ path: "system",
|
|
|
+ route: "/hotel/system",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.system = system;
|
|
|
// sessionStorage.setItem("system", JSON.stringify(system));
|
|
|
}
|
|
|
});
|
|
|
- console.log(arrFlag,"按钮权限");
|
|
|
-
|
|
|
+ console.log(arrFlag, "按钮权限");
|
|
|
+
|
|
|
sessionStorage.setItem("roleList", JSON.stringify(roleList));
|
|
|
sessionStorage.setItem("btnflag", JSON.stringify(arrFlag));
|
|
|
// window.location.reload();
|
|
|
@@ -610,11 +678,6 @@ const actions = {
|
|
|
let arrFlag = {};
|
|
|
ress.data.data.forEach((i) => {
|
|
|
if (i.name == "房态管理") {
|
|
|
- roleList.push({
|
|
|
- name: "房态管理",
|
|
|
- path: "roomStatus",
|
|
|
- route: "/hotel/roomStatus",
|
|
|
- });
|
|
|
let roomStatus = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "预定") {
|
|
|
@@ -639,16 +702,28 @@ const actions = {
|
|
|
roomStatus.huanfang = j.status;
|
|
|
} else if (j.functionPoint == "开房") {
|
|
|
roomStatus.kaifang = j.status;
|
|
|
+ } else if (j.functionPoint == "开电") {
|
|
|
+ roomStatus.kaidian = j.status;
|
|
|
+ } else if (j.functionPoint == "关电") {
|
|
|
+ roomStatus.guandian = j.status;
|
|
|
+ } else if (j.functionPoint == "取消预定") {
|
|
|
+ roomStatus.quxiaoyuding = j.status;
|
|
|
+ } else if (j.functionPoint == "取消维修") {
|
|
|
+ roomStatus.quxiaoweixiu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ roomStatus.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "房态管理",
|
|
|
+ path: "roomStatus",
|
|
|
+ route: "/hotel/roomStatus",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.roomStatus = roomStatus;
|
|
|
// sessionStorage.setItem("roomStatus", JSON.stringify(roomStatus));
|
|
|
} else if (i.name == "房型管理") {
|
|
|
- roleList.push({
|
|
|
- name: "房型管理",
|
|
|
- path: "roomType",
|
|
|
- route: "/hotel/roomType",
|
|
|
- });
|
|
|
let roomType = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -661,32 +736,40 @@ const actions = {
|
|
|
roomType.pilianggaijia = j.status;
|
|
|
} else if (j.functionPoint == "改价记录") {
|
|
|
roomType.gaijiajilu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ roomType.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "房型管理",
|
|
|
+ path: "roomType",
|
|
|
+ route: "/hotel/roomType",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.roomType = roomType;
|
|
|
// sessionStorage.setItem("roomType", JSON.stringify(roomType));
|
|
|
} else if (i.name == "房价管理") {
|
|
|
- roleList.push({
|
|
|
- name: "房价管理",
|
|
|
- path: "roomPrice",
|
|
|
- route: "/hotel/roomPrice",
|
|
|
- });
|
|
|
let roomPrice = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "批量改价") {
|
|
|
roomPrice.pilianggaijia = j.status;
|
|
|
} else if (j.functionPoint == "改价记录") {
|
|
|
roomPrice.gaijiajilu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ roomPrice.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "房价管理",
|
|
|
+ path: "roomPrice",
|
|
|
+ route: "/hotel/roomPrice",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.roomPrice = roomPrice;
|
|
|
// sessionStorage.setItem("roomPrice", JSON.stringify(roomPrice));
|
|
|
} else if (i.name == "订单管理") {
|
|
|
- roleList.push({
|
|
|
- name: "订单管理",
|
|
|
- path: "order",
|
|
|
- route: "/hotel/order",
|
|
|
- });
|
|
|
let order = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "取消") {
|
|
|
@@ -703,32 +786,40 @@ const actions = {
|
|
|
order.huanfang = j.status;
|
|
|
} else if (j.functionPoint == "导出") {
|
|
|
order.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ order.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "订单管理",
|
|
|
+ path: "order",
|
|
|
+ route: "/hotel/order",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.order = order;
|
|
|
// sessionStorage.setItem("order", JSON.stringify(order));
|
|
|
} else if (i.name == "课表管理") {
|
|
|
- roleList.push({
|
|
|
- name: "课表管理",
|
|
|
- path: "class",
|
|
|
- route: "/hotel/class",
|
|
|
- });
|
|
|
let classs = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导入值班") {
|
|
|
classs.daoruzhiban = j.status;
|
|
|
} else if (j.functionPoint == "导出") {
|
|
|
classs.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ classs.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "课表管理",
|
|
|
+ path: "class",
|
|
|
+ route: "/hotel/class",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.classs = classs;
|
|
|
// sessionStorage.setItem("classs", JSON.stringify(classs));
|
|
|
} else if (i.name == "流程管理") {
|
|
|
- roleList.push({
|
|
|
- name: "流程管理",
|
|
|
- path: "process",
|
|
|
- route: "/hotel/process",
|
|
|
- });
|
|
|
let process = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "同意") {
|
|
|
@@ -737,36 +828,44 @@ const actions = {
|
|
|
process.bohui = j.status;
|
|
|
} else if (j.functionPoint == "规则设置") {
|
|
|
process.guizeshezhi = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ process.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "流程管理",
|
|
|
+ path: "process",
|
|
|
+ route: "/hotel/process",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.process = process;
|
|
|
// sessionStorage.setItem("process", JSON.stringify(process));
|
|
|
} else if (i.name == "统计报表") {
|
|
|
- roleList.push({
|
|
|
- name: "统计报表",
|
|
|
- path: "statement",
|
|
|
- route: "/hotel/statement",
|
|
|
- });
|
|
|
let statement = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导出") {
|
|
|
statement.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "详情") {
|
|
|
+ statement.xiangqing = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ statement.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "统计报表",
|
|
|
+ path: "statement",
|
|
|
+ route: "/hotel/statement",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.statement = statement;
|
|
|
// sessionStorage.setItem("statement", JSON.stringify(statement));
|
|
|
} else if (i.name == "门锁管理") {
|
|
|
- roleList.push({
|
|
|
- name: "门锁管理",
|
|
|
- path: "doorLock",
|
|
|
- route: "/hotel/doorLock",
|
|
|
- });
|
|
|
let doorLock = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导入") {
|
|
|
doorLock.daoru = j.status;
|
|
|
- } else if (j.functionPoint == "禁用门锁") {
|
|
|
- doorLock.jinyongmensuo = j.status;
|
|
|
} else if (j.functionPoint == "钥匙管理") {
|
|
|
doorLock.yaoshiguanli = j.status;
|
|
|
} else if (j.functionPoint == "消息列表") {
|
|
|
@@ -777,32 +876,46 @@ const actions = {
|
|
|
doorLock.jiesuoshebei = j.status;
|
|
|
} else if (j.functionPoint == "NFC设置") {
|
|
|
doorLock.nfcshezhi = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ doorLock.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "门锁管理",
|
|
|
+ path: "doorLock",
|
|
|
+ route: "/hotel/doorLock",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.doorLock = doorLock;
|
|
|
// sessionStorage.setItem("doorLock", JSON.stringify(doorLock));
|
|
|
} else if (i.name == "水电表管理") {
|
|
|
- roleList.push({
|
|
|
- name: "水电表管理",
|
|
|
- path: "meter",
|
|
|
- route: "/hotel/meter",
|
|
|
- });
|
|
|
let meter = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "导出") {
|
|
|
meter.daochu = j.status;
|
|
|
+ } else if (j.functionPoint == "添加") {
|
|
|
+ meter.tianjia = j.status;
|
|
|
+ } else if (j.functionPoint == "编辑") {
|
|
|
+ meter.bianji = j.status;
|
|
|
+ } else if (j.functionPoint == "删除") {
|
|
|
+ meter.shanchu = j.status;
|
|
|
} else if (j.functionPoint == "导入") {
|
|
|
meter.daoru = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ meter.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "水电表管理",
|
|
|
+ path: "meter",
|
|
|
+ route: "/hotel/meter",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.meter = meter;
|
|
|
// sessionStorage.setItem("meter", JSON.stringify(meter));
|
|
|
} else if (i.name == "用户管理") {
|
|
|
- roleList.push({
|
|
|
- name: "用户管理",
|
|
|
- path: "user",
|
|
|
- route: "/hotel/user",
|
|
|
- });
|
|
|
let user = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -811,16 +924,20 @@ const actions = {
|
|
|
user.bianji = j.status;
|
|
|
} else if (j.functionPoint == "删除") {
|
|
|
user.shanchu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ user.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "用户管理",
|
|
|
+ path: "user",
|
|
|
+ route: "/hotel/user",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.user = user;
|
|
|
// sessionStorage.setItem("user", JSON.stringify(user));
|
|
|
} else if (i.name == "角色管理") {
|
|
|
- roleList.push({
|
|
|
- name: "角色管理",
|
|
|
- path: "userRoles",
|
|
|
- route: "/hotel/userRoles",
|
|
|
- });
|
|
|
let userRoles = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -829,16 +946,20 @@ const actions = {
|
|
|
userRoles.bianji = j.status;
|
|
|
} else if (j.functionPoint == "删除") {
|
|
|
userRoles.shanchu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ userRoles.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "角色管理",
|
|
|
+ path: "userRoles",
|
|
|
+ route: "/hotel/userRoles",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.userRoles = userRoles;
|
|
|
// sessionStorage.setItem("userRoles", JSON.stringify(userRoles));
|
|
|
} else if (i.name == "账号管理") {
|
|
|
- roleList.push({
|
|
|
- name: "账号管理",
|
|
|
- path: "account",
|
|
|
- route: "/hotel/account",
|
|
|
- });
|
|
|
let account = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "添加") {
|
|
|
@@ -847,16 +968,20 @@ const actions = {
|
|
|
account.bianji = j.status;
|
|
|
} else if (j.functionPoint == "删除") {
|
|
|
account.shanchu = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ account.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "账号管理",
|
|
|
+ path: "account",
|
|
|
+ route: "/hotel/account",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.account = account;
|
|
|
// sessionStorage.setItem("account", JSON.stringify(account));
|
|
|
} else if (i.name == "系统管理") {
|
|
|
- roleList.push({
|
|
|
- name: "系统管理",
|
|
|
- path: "system",
|
|
|
- route: "/hotel/system",
|
|
|
- });
|
|
|
let system = {};
|
|
|
i.functionPoints.forEach((j) => {
|
|
|
if (j.functionPoint == "退房设置") {
|
|
|
@@ -869,6 +994,15 @@ const actions = {
|
|
|
system.cuijiaoshezhi = j.status;
|
|
|
} else if (j.functionPoint == "设施服务设置") {
|
|
|
system.sheshifuwushezhi = j.status;
|
|
|
+ } else if (j.functionPoint == "查看界面") {
|
|
|
+ system.chakanjiemian = j.status;
|
|
|
+ if (j.status == 1) {
|
|
|
+ roleList.push({
|
|
|
+ name: "系统管理",
|
|
|
+ path: "system",
|
|
|
+ route: "/hotel/system",
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
arrFlag.system = system;
|