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.8 KiB
1 line
8.8 KiB
{"version":3,"sources":["webpack:///src/components/src/components/basicAside.vue"],"names":[],"mappings":"AA6KA,+BACA,WAAA,CACA,WAAA,CACA,eACA,CACA,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-05038966.5778277a.css","sourcesContent":["<template>\n <div>\n <el-container>\n <el-aside\n :width=\"isCollapse ? '58px' : '200px'\"\n :style=\"{ backgroundColor: $store.state.bgColor }\"\n >\n <el-menu\n :default-active=\"activeIndex\"\n class=\"el-menu-vertical-demo\"\n :style=\"{ backgroundColor: $store.state.bgColor }\"\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.$route.path,\n asideMenu: [\n {\n path: '/basic/RealManagement',\n label: '房产管理',\n iconurl: require('@/assets/images/baisc/icon_archives01_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives01_sel.png'),\n isChildren: 1,\n children: [\n {\n path: '/basic/buildingManagement',\n label: '楼栋管理'\n },\n {\n path: '/basic/unitInfo',\n label: '单元信息'\n },\n {\n path: '/basic/houseManagement',\n label: '房产管理'\n }\n ]\n },\n {\n path: '/basic/parkingInfo',\n label: '车位信息',\n iconurl: require('@/assets/images/baisc/icon_archives02_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives02_sel.png'),\n isChildren: 0\n },\n {\n path: '/basic/vehicleFile',\n label: '车辆档案',\n iconurl: require('@/assets/images/baisc/icon_archives03_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives03_sel.png'),\n isChildren: 0\n },\n {\n path: '/basic/ownersFile',\n label: '业主档案',\n iconurl: require('@/assets/images/baisc/icon_archives04_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives04_sel.png'),\n isChildren: 0\n },\n\n // {\n // path: '/basic/formDate',\n // label: 'form组件',\n // iconurl: require('@/assets/images/baisc/icon_archives01_nor.png'),\n // iconisactive: require('@/assets/images/baisc/icon_archives01_sel.png'),\n // isChildren: 0\n // }auditManagement\n {\n path: '/basic/auditManagement',\n label: '审核管理',\n iconurl: require('@/assets/images/baisc/icon_archives06_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives06_sel.png'),\n isChildren: 0\n },\n {\n path: '/basic/tenantFile',\n label: '租户档案',\n iconurl: require('@/assets/images/baisc/icon_archives05_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives05_sel.png'),\n isChildren: 0\n },\n {\n path: '/basic/lease',\n label: '租赁管理',\n iconurl: require('@/assets/images/baisc/icon_archives06_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives06_sel.png'),\n isChildren: 0\n },\n {\n path: '/basic/contractManage',\n label: '合同管理',\n iconurl: require('@/assets/images/baisc/icon_archives06_nor.png'),\n iconisactive: require('@/assets/images/baisc/icon_archives06_sel.png'),\n isChildren: 0\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.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"]} |