You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
8.9 KiB
1 line
8.9 KiB
{"version":3,"sources":["webpack:///src/components/src/components/operationAside.vue"],"names":[],"mappings":"AAkLA,+BACA,WAAA,CACA,WAAA,CACA,eACA,CAEA,2BACA,wBAAA,CACA,UAAA,CACA,oBAAA,CACA,eAAA,CACA,iBACA,CAEA,mDACA,2BACA,CACA,oCACA,wBACA,CACA,0BACA,iBACA,CACA,0BACA,wBAAA,CACA,UAAA,CAEA,UACA,CACA,mDACA,oBAAA,CACA,iDACA,CACA,4BACA,UAAA,CACA,gBAAA,CACA,WAAA,CACA,gBAAA,CACA,aACA,CACA,8CACA,iBAAA,CACA,iBAAA,CACA,cAAA,CACA,qBACA,CACA,2BACA,oBAAA,CACA,UAAA,CACA,WAAA,CACA,iBAAA,CACA,iBACA","file":"chunk-2e8dc65b.72d4a8d2.css","sourcesContent":["<template>\n <div>\n <el-container>\n <el-aside :width=\"isCollapse ? '58px' : '200px'\">\n <el-menu\n :default-active=\"activeIndex\"\n class=\"el-menu-vertical-demo\"\n background-color=\"#2B2C4B\"\n text-color=\"#999999\"\n :collapse-transition=\"false\"\n active-text-color=\"#ffd04b\"\n :collapse=\"isCollapse\"\n unique-opened\n router\n >\n <div class=\"asideMenu\">\n <i class=\"el-icon-s-unfold\" @click=\"toggleCollapse\">\n </i>\n </div>\n <div v-for=\"item in asideMenu\" :key=\"item.path\">\n <template v-if=\"item.isChildren === 0\">\n <el-menu-item :index=\"item.path\">\n <img\n v-if=\"activeIndex === item.path\"\n :src=\"item.iconisactive\"\n class=\"icon_img\"\n alt=\"\"\n />\n <img\n v-else\n :src=\"item.iconurl\"\n class=\"icon_img\"\n alt=\"\"\n />\n <span slot=\"title\">{{ item.label }}</span>\n </el-menu-item>\n </template>\n <template v-if=\"item.isChildren === 1\">\n <el-submenu :index=\"item.path\">\n <template slot=\"title\">\n <img\n :src=\"item.iconurl\"\n class=\"icon_img\"\n alt=\"\"\n />\n <span>{{ item.label }} </span>\n </template>\n <el-menu-item-group>\n <el-menu-item\n :index=\"subItem.path\"\n v-for=\"subItem in item.children\"\n :key=\"subItem.path\"\n >\n <span>{{ subItem.label }}</span>\n </el-menu-item>\n </el-menu-item-group>\n </el-submenu>\n </template>\n </div>\n </el-menu>\n </el-aside>\n <el-main>\n <router-view></router-view>\n </el-main>\n </el-container>\n </div>\n</template>\n<script>\nexport default {\n data() {\n return {\n activeIndex: this.path,\n asideMenu: [\n {\n path: '/operation/announcementManagement',\n label: '通知公告',\n iconurl: require('@/assets/images/operation/icon_operate01_nor.png'),\n iconisactive: require('@/assets/images/operation/icon_operate01_sel.png'),\n isChildren: 0,\n children: [\n {\n // Announcement management\n path: '/operation/announcementManagement',\n label: '公告管理'\n },\n {\n // Notification management\n path: '/operation/notificationManagement',\n label: '通知管理'\n }\n ]\n },\n {\n // community activity\n path: '/operation/communityActivity',\n label: '小区活动',\n iconurl: require('@/assets/images/operation/icon_operate02_nor.png'),\n iconisactive: require('@/assets/images/operation/icon_operate02_sel.png'),\n icon: 'el-icon-message',\n isChildren: 1,\n children: [\n {\n // Announcement management\n path: '/operation/eventManagement',\n label: '活动管理'\n },\n {\n // Notification management\n path: '/operation/sponsorManagement',\n label: '主办方管理'\n }\n ]\n },\n {\n // Voting management\n path: '/operation/votingManagement',\n iconurl: require('@/assets/images/operation/icon_operate03_nor.png'),\n iconisactive: require('@/assets/images/operation/icon_operate03_sel.png'),\n label: '投票管理',\n isChildren: 0\n },\n {\n // zixun\n path: '/operation/consultation',\n label: '资讯管理',\n iconurl: require('@/assets/images/operation/icon_operate04_nor.png'),\n iconisactive: require('@/assets/images/operation/icon_operate04_sel.png'),\n isChildren: 1,\n children: [\n {\n // consultation Release\n path: '/operation/consultationRelease',\n label: '资讯发布'\n },\n {\n // consultation Item\n path: '/operation/consultationItem',\n label: '资讯分类'\n }\n ]\n },\n {\n // zixun\n path: '/operation/shopping',\n label: '电子商务',\n iconurl: require('@/assets/images/operation/icon_operate05_nor.png'),\n iconisactive: require('@/assets/images/operation/icon_operate05_sel.png'),\n isChildren: 1,\n children: [\n {\n path: '/operation/shoppingInfo',\n label: '电商信息'\n },\n {\n // consultation Item\n path: '/operation/shoppingItem',\n label: '电商分类'\n }\n ]\n }\n ],\n isCollapse: false\n }\n },\n methods: {\n toggleCollapse() {\n this.isCollapse = !this.isCollapse\n console.log(12)\n }\n },\n watch: {\n $route(to, from) {\n this.activeIndex = this.path\n }\n }\n}\n</script>\n<style scoped>\n.el-container {\n width: 100vw;\n height: 100%;\n overflow: hidden;\n}\n\n.el-aside {\n background-color: #2b2c4b;\n color: #333;\n padding-bottom: 150px;\n text-align: left;\n overflow-x: hidden;\n}\n/* */\n.el-menu-item-group .el-menu-item {\n padding-left: 58px !important;\n}\n.el-aside .el-menu {\n background-color: #2b2c4b;\n}\n.el-menu {\n border-right: none;\n}\n.el-main {\n background-color: #e8ebf2;\n width: 100%;\n\n color: #333;\n}\n.el-aside .el-menu-item.is-active {\n color: white !important;\n background: linear-gradient(90deg, #fe822f 0%, #e2495f 100%);\n}\n.asideMenu {\n width: 100%;\n line-height: 50px;\n height: 50px;\n text-align: right;\n color: #d8d8d8;\n}\n.asideMenu [class^='el-icon-'] {\n margin-right: 20px;\n text-align: center;\n font-size: 28px;\n vertical-align: middle;\n}\n.icon_img {\n display: inline-block;\n width: 14px;\n height: 14px;\n margin-right: 14px;\n padding-left: 10px;\n}\n</style>\n"]} |