liuyg
2022-03-08 24327e8eb3dccfa7c6c750004e97e5a003166e33
pages/alarm_list/alarm_list.vue
@@ -15,14 +15,70 @@
<script>
   import pageNav from '@/components/page-nav/page-nav.vue';
   import list from "./demo.config.js";
   // import list from "./demo.config.js";
   export default {
      components: {
         pageNav
      },
      data() {
         let list = [{
               groupName: '基础功能',
               list: [{
                  path: '/pages/alarm_list/integral/integral',
                  icon: 'cell',
                  title: '查积分',
               }, {
                  path: '/pages/grabOrders/taskCount/taskCount/grabOrders',
                  icon: 'sticky',
                  title: '查任务',
               }]
            },
            {
               groupName: '业务功能',
               list: [{
                     path: 'pages/alarm_list/organ/organ',
                     icon: 'layout',
                     title: '组织申请',
                  }, {
                     path: 'pages/alarm_list/industry/industry',
                     icon: 'tabbar',
                     title: '行业政策',
                  },
                  {
                     path: 'pages/grabOrders/personnelCount/personnelCount',
                     icon: 'tabbar',
                     title: '人员统计',
                  },
               ]
            }
         ];
         let who = this.$store.state.roleid == "1417092295132561409" ?
            "民警" :
            (this.$store.state.roleid == "1430798487303671810" ?
               '管理员' :
               this.$store.state.roleid == "1123598816738675201" ?
               '超级管理员' :
               "其他")
         // console.log(this.$store.state.roleid)
         // console.log(who)
         let lists = [];
         for (let k in list) {
            let listin = list[k].list;
            lists.push(list[k]);
            lists[k].list = [];
            for (let kin in listin) {
               if (who == "其他") {
                  if (listin[kin].title == "人员统计") {
                     continue;
                  }
               }
               lists[k].list.push(listin[kin])
            }
         }
         // console.log(lists)
         return {
            list: list,
            list: lists,
            title: '基础功能示例合集',
            desc: '众多示例覆盖开发过程的各个需求,正在不断完善中。可让您快速集成,开箱即用。'
         }
@@ -35,7 +91,7 @@
         },
      },
      onShow() {
      },
      created() {