Browse Source

增加商务角色,可查看价格单

master
zhouhongjun 12 months ago
parent
commit
d4e879f3bc
  1. 6
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js

6
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/index.js

@ -96,12 +96,16 @@ const refreshRouter = async () => {
const serverRoutes = Object.assign([], remoteRoutes);
if (appStore.user.roles.some((o) => o === "物流")) {
const baseDataRoutes = serverRoutes.find((o) => o.path === "base-data");
baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian" && o.path !== "xiao-shou" && o.path !== "yin-du-jian");
baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian" && o.path !== "xiao-shou" && o.path !== "yin-du-jian" && o.path !== "bei-jian-show" && o.path !== "xiao-shou-show" && o.path !== "yin-du-jian-show");
}
if (appStore.user.roles.some((o) => o === "admin")) {
const baseDataRoutes = serverRoutes.find((o) => o.path === "base-data");
baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian-show" && o.path !== "xiao-shou-show" && o.path !== "yin-du-jian-show");
}
if (appStore.user.roles.some((o) => o === "商务")) {
const baseDataRoutes = serverRoutes.find((o) => o.path === "base-data");
baseDataRoutes.children = baseDataRoutes.children.filter((o) => o.path !== "bei-jian" && o.path !== "xiao-shou" && o.path !== "yin-du-jian");
}
const setPermission = (list, parent = null) => {
list.forEach((o) => {
// full path

Loading…
Cancel
Save