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
9.3 KiB
1 line
9.3 KiB
{"version":3,"sources":["webpack:///src/components/src/components/butlerAside.vue"],"names":[],"mappings":"AAgOA,+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,CACA,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-caf14e46.22ba5d16.css","sourcesContent":["<template>\n <div>\n <el-container>\n <el-aside :width=\"isCollapse ? '64px' : '200px'\">\n <el-menu :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 <div class=\"asideMenu\">\n <i class=\"el-icon-s-unfold\"\n @click=\"toggleCollapse\"> </i>\n </div>\n <div v-for=\"item in asideMenu\"\n :key=\"item.path\">\n <template v-if=\"item.isChildren === 0\">\n <el-menu-item :index=\"item.path\">\n <img v-if=\"activeIndex === item.path\"\n :src=\"item.iconisactive\"\n class=\"icon_img\"\n alt=\"\" />\n <img v-else\n :src=\"item.iconurl\"\n class=\"icon_img\"\n alt=\"\" />\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 :src=\"item.iconurl\"\n class=\"icon_img\"\n alt=\"\" />\n <span>{{ item.label }} </span>\n </template>\n <el-menu-item-group>\n <el-menu-item :index=\"subItem.path\"\n v-for=\"subItem in item.children\"\n :key=\"subItem.path\">\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.$route.path,\n asideMenu: [\n {\n // Items out\n path: '/butler/itemsOut',\n label: '物品出门',\n iconurl: require('@/assets/images/butler/icon_service01_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service01_sel.png'),\n isChildren: 0\n },\n // {\n // // Decoration management\n // path: '/butler/decorationManagement',\n // label: '装修管理',\n // iconurl: require('@/assets/images/butler/icon_service02_nor.png'),\n // iconisactive: require('@/assets/images/butler/icon_service02_sel.png'),\n // isChildren: 0\n // },\n {\n // Voting management\n path: '/butler/votingManagement',\n label: '投票管理',\n iconurl: require('@/assets/images/butler/icon_service03_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service03_sel.png'),\n isChildren: 0\n },\n {\n // Convenience phone\n path: '/butler/conveniencePhone',\n label: '便民电话',\n iconurl: require('@/assets/images/butler/icon_service04_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service04_sel.png'),\n isChildren: 0\n },\n {\n // Suggest Consultation\n path: '/butler/suggestConsultation',\n label: '建议咨询',\n iconurl: require('@/assets/images/butler/icon_service05_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service05_sel.png'),\n isChildren: 0\n },\n {\n // Visitor management\n path: '/butler/visitorManagement',\n label: '访客管理',\n iconurl: require('@/assets/images/butler/icon_service06_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service06_sel.png'),\n isChildren: 0\n },\n {\n // 门禁\n path: '/butler/doorQrCode',\n label: '门禁二维码',\n iconurl: require('@/assets/images/butler/icon_service06_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service06_sel.png'),\n isChildren: 0\n },\n {\n // Complaint and praise\n path: '/butler/complainPraise',\n label: '投诉表扬',\n iconurl: require('@/assets/images/butler/icon_service07_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service07_sel.png'),\n isChildren: 0\n },\n {\n path: '/butler/loanManagement',\n // Loan management\n label: '借还管理',\n iconurl: require('@/assets/images/butler/icon_service12_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service12_sel.png'),\n isChildren: 1,\n children: [\n {\n path: '/butler/loanManagement',\n label: '物品借还'\n },\n {\n // Item management\n path: '/butler/itemManagemsent',\n label: '物品管理'\n }\n ]\n },\n {\n // Questionnaire\n path: '/butler/Questionnaire',\n label: '问卷调查',\n iconurl: require('@/assets/images/butler/icon_service09_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service09_sel.png'),\n isChildren: 0\n },\n {\n // Community topic\n path: '/butler/communityTopic',\n label: '小区话题',\n iconurl: require('@/assets/images/butler/icon_service10_nor.png'),\n iconisactive: require('@/assets/images/butler/icon_service10_sel.png'),\n isChildren: 1,\n children: [\n {\n path: '/butler/topiManagement',\n label: '话题管理'\n },\n {\n path: '/butler/subjectManagement',\n label: '动态管理'\n }\n ]\n },\n // {\n // // Work order management\n // // Work order management\n // path: '/butler/workManagement',\n // label: '工单管理',\n // iconurl: require('@/assets/images/butler/icon_service11_nor.png'),\n // iconisactive: require('@/assets/images/butler/icon_service11_sel.png'),\n // isChildren: 1,\n // children: [\n // {\n // path: '/butler/orderManagement',\n // label: '派工单管理'\n // },\n // {\n // path: '/butler/managementSet',\n // label: '工单设置'\n // }\n // ]\n // },\n \n \n // {\n // // /Voice Butler\n // path: '/butler/voiceButler',\n // label: '语音管家',\n // iconurl: require('@/assets/images/butler/icon_service14_nor.png'),\n // iconisactive: require('@/assets/images/butler/icon_service14_sel.png'),\n // isChildren: 0\n // }\n //housekeepingServices\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.$route.path\n }\n }\n}\n</script>\n\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 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"]} |