zuozhengqing
2023-12-14 9e007f676d0e55c4bf0cc2a78bc7dc96be188d50
隐藏生成计划和服务收费管理模块
5个文件已修改
24 ■■■■ 已修改文件
src/common/untils/request.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/layout/components/appHeader/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/layout/components/appsidebar/index.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/sales/salesDetails/index.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/common/untils/request.js
@@ -71,7 +71,7 @@
    } else if([2012,2013,2014,2015].includes(res.data.code)){
      if (isDev){
        alert("JWT失效")
        window.location = getApsPage()+'/'
        // window.location = getApsPage()+'/'
      }else {
        //   JWT鉴权失效 跳转到登录页
        window.location = getApsPage()+'/login'
@@ -90,7 +90,7 @@
    if (error.response.status === 401){
      if (isDev){
        alert("JWT失效")
        window.location = getApsPage()+'/'
        // window.location = getApsPage()+'/'
      }else {
        //   JWT鉴权失效 跳转到登录页
        window.location = getApsPage()+'/login'
src/components/layout/components/appHeader/index.vue
@@ -47,7 +47,7 @@
        prod: `//${window.location.hostname}:9080`,
        test: `//192.168.20.119:9080`,
        // 想跳到本地启动的登录页的话需要把dev改成你本地项目路径
        dev: `//192.168.8.112:8081`
        dev: `//192.168.8.113:8080`
      }
      return loginPathMap[this.environmentType()]
    },
src/components/layout/components/appsidebar/index.vue
@@ -66,7 +66,21 @@
        console.log(res.data.list,"crm菜单")
        res.data.list.map((item)=>{
          if(item.systemType===2){
            this.menus=item.menus
            let newList= JSON.parse(JSON.stringify([...item.menus]))
            // 隐藏了 生成计划 和 服务收费管理模块
            if(newList[1]){
              const found = newList[1].children.find(obj => obj.title === "生成计划")
              if(found){
                newList[1].children=[...newList[1].children.slice(0, -1)];
              }
            }
            if(newList[2]){
              const found1 = newList[2].children.find(obj => obj.title === "服务收费管理")
              if(found1){
                newList[2].children=[...newList[2].children.slice(0, -1)];
              }
            }
            this.menus=newList
          }
        }) 
      })
src/router/index.js
@@ -136,7 +136,6 @@
  }
}
router.beforeEach(async (to, from, next) => {
  console.log(to,from,"看看")
  try {
    const result = await hasPermission(to.path);
    console.log(result,"result")
src/views/sales/salesDetails/index.vue
@@ -495,7 +495,6 @@
          ...row,
          status: 2
        }
        console.log(params,"看看params")
        await sendSalesDetailsToOtherSystem(params).then((res)=>{
          if (res.code == 200) {
            this.$message.success("成功推送至aps系统")