EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-05a3b661.e68e79bf.js.map

1 line
14 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/views/layout/components/SidebarItem.vue?47ab","webpack:///src/views/layout/components/SidebarItem.vue","webpack:///./src/views/layout/components/SidebarItem.vue?ac24","webpack:///./src/views/layout/components/SidebarItem.vue","webpack:///./src/views/layout/components/leftBar.vue?1f0f","webpack:///src/views/layout/components/leftBar.vue","webpack:///./src/views/layout/components/leftBar.vue?6db8","webpack:///./src/views/layout/components/leftBar.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","item","attrs","meta","name","slot","staticClass","class","_e","isCollapse","_v","_s","$t","_l","i","key","permissionId","staticRenderFns","props","type","required","computed","get","$store","state","app","component","$route","on","btn","route","changeCollapse","components","SidebarItem","data","paths","routes","isAdmin","routeName","routeChange","Permission_routes","mapGetters","mounted","matched","getRoutes","watch","permission_routes","methods","reload","isRouterAlive","$nextTick","dispatch","console","admin_routes","filter","e","children","length","hidden","map","index","$router","push","handleOpen","keyPath","handleClose"],"mappings":"0IAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAAEJ,EAAIM,KAAoB,gBAAEF,EAAG,aAAa,CAACG,MAAM,CAAC,MAAQP,EAAIM,KAAKE,KAAKC,KAAK,MAAQT,EAAIM,OAAO,CAACF,EAAG,WAAW,CAACM,KAAK,SAAS,CAAEV,EAAIM,KAAKE,KAAS,KAAEJ,EAAG,IAAI,CAACO,YAAY,gBAAgBC,MAAO,QAAWZ,EAAIM,KAAKE,KAAS,OAAKR,EAAIa,KAAOb,EAAIc,WAAkFd,EAAIa,KAA1ET,EAAG,OAAO,CAACJ,EAAIe,GAAGf,EAAIgB,GAAGhB,EAAIiB,GAAI,QAAWjB,EAAIM,KAAKE,KAAS,YAAmBJ,EAAG,qBAAqBJ,EA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F,EAAEA,iBAAkBA,EAEpBA,EAAEA,iBAAkBA,EAEfA,MAvBT3D,KAAK4C,kBAAoB5C,KAAKkD,kBAAkBQ,QAAO,SAA/D,GACU,OAAIC,EAAEG,QAAyB,SAAfH,EAAEpD,KAAKC,QAMzBR,KAAK4C,kBAAoB5C,KAAK4C,kBAAkBmB,KAAI,SAA5D,GAOU,OANIJ,EAAEC,UAAYD,EAAEC,SAASC,OAAS,EACpCF,EAAEA,iBAAkBA,GAEpBA,EAAIA,EAAhBA,2BACYA,EAAEA,iBAAkBA,GAEfA,OAab1B,IAvDJ,SAuDA+B,EAAAL,EAAAzC,GACMlB,KAAKuC,MAAQyB,EACbR,QAAQA,IAAIA,EAAOA,EAAGA,EAAGA,EAAEA,OAC3BxD,KAAKiE,QAAQC,KAAK,CAAxB1D,UAEI2D,WA5DJ,SA4DAhD,EAAAiD,GACMZ,QAAQA,IAAIA,EAAKA,EAASA,iCAE5Ba,YA/DJ,SA+DAlD,EAAAiD,GACMZ,QAAQA,IAAIA,EAAKA,EAASA,mCCrI+U,I,YCO3W1B,EAAY,eACd,EACAhC,EACAuB,GACA,EACA,KACA,KACA,MAIa,aAAAS,E","file":"js/chunk-05a3b661.e68e79bf.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.item.showingChildren)?_c('el-submenu',{attrs:{\"index\":_vm.item.meta.name,\"route\":_vm.item}},[_c('template',{slot:\"title\"},[(_vm.item.meta.icon)?_c('i',{staticClass:\"iconfont icon\",class:(\"icon-\" + (_vm.item.meta.icon))}):_vm._e(),(!_vm.isCollapse)?_c('span',[_vm._v(_vm._s(_vm.$t((\"home.\" + (_vm.item.meta.name)))))]):_vm._e()]),_c('el-menu-item-group',_vm._l((_vm.item.children),function(i){return _c('SidebarItem',{key:i.permissionId,attrs:{\"index\":i.meta.name,\"item\":i}})}),1)],2):[_c('el-menu-item',{attrs:{\"index\":_vm.item.meta.name,\"route\":_vm.item}},[(_vm.item.meta.icon)?_c('i',{staticClass:\"iconfont icon\",class:(\"icon-\" + (_vm.item.meta.icon))}):_vm._e(),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(_vm.$t((\"home.\" + (_vm.item.meta.name)))))])])]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <el-submenu\r\n :index=\"item.meta.name\"\r\n v-if=\"item.showingChildren\"\r\n :route=\"item\"\r\n >\r\n <template slot=\"title\">\r\n <i\r\n class=\"iconfont icon\"\r\n :class=\"`icon-${item.meta.icon}`\"\r\n v-if=\"item.meta.icon\"\r\n />\r\n <span v-if=\"!isCollapse\">{{ $t(`home.${item.meta.name}`) }}</span>\r\n </template>\r\n <el-menu-item-group>\r\n <SidebarItem\r\n v-for=\"i in item.children\"\r\n :key=\"i.permissionId\"\r\n :index=\"i.meta.name\"\r\n :item=\"i\"\r\n />\r\n </el-menu-item-group>\r\n </el-submenu>\r\n <template v-else>\r\n <el-menu-item :index=\"item.meta.name\" :route=\"item\">\r\n <i\r\n class=\"iconfont icon\"\r\n :class=\"`icon-${item.meta.icon}`\"\r\n v-if=\"item.meta.icon\"\r\n />\r\n <span slot=\"title\">{{ $t(`home.${item.meta.name}`) }}</span>\r\n </el-menu-item>\r\n </template>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'SidebarItem',\r\n props: {\r\n // route object\r\n item: {\r\n type: Object,\r\n required: true\r\n }\r\n },\r\n computed: {\r\n isCollapse: {\r\n get() {\r\n return this.$store.state.app.isCollapse\r\n }\r\n }\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SidebarItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SidebarItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SidebarItem.vue?vue&type=template&id=9e190ac4&\"\nimport script from \"./SidebarItem.vue?vue&type=script&lang=js&\"\nexport * from \"./SidebarItem.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"leftbar\"},[_c('div',{staticClass:\"bar\"},[_c('el-menu',{staticClass:\"leftbar-menu\",attrs:{\"default-active\":_vm.$route.meta.name,\"collapse\":_vm.isCollapse,\"collapse-transition\":false,\"unique-opened\":\"\"},on:{\"select\":_vm.btn}},_vm._l((this.Permission_routes),function(route){return _c('SidebarItem',{key:route.permissionId,attrs:{\"item\":route,\"isCollapse\":_vm.isCollapse}})}),1)],1),_c('div',{staticClass:\"collapse\",on:{\"click\":_vm.changeCollapse}},[_c('i',{staticClass:\"iconfont icon-daohangsuofang navbg\"}),_c('i',{staticClass:\"iconfont icon-xia arrow\"})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"leftbar\">\r\n <div class=\"bar\">\r\n <el-menu\r\n class=\"leftbar-menu\"\r\n :default-active=\"$route.meta.name\"\r\n @select=\"btn\"\r\n :collapse=\"isCollapse\"\r\n :collapse-transition=\"false\"\r\n unique-opened\r\n >\r\n <SidebarItem\r\n v-for=\"route in this.Permission_routes\"\r\n :key=\"route.permissionId\"\r\n :item=\"route\"\r\n :isCollapse=\"isCollapse\"\r\n />\r\n </el-menu>\r\n </div>\r\n <div @click=\"changeCollapse\" class=\"collapse\">\r\n <i class=\"iconfont icon-daohangsuofang navbg\" />\r\n <i class=\"iconfont icon-xia arrow\" />\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n// import path from \"path\"\r\nimport { mapGetters } from \"vuex\"\r\nimport SidebarItem from \"./SidebarItem\"\r\nexport default {\r\n name: \"NavbarList\",\r\n components: { SidebarItem },\r\n data() {\r\n return {\r\n paths: \"\",\r\n routes: [],\r\n isAdmin: false,\r\n routeName: \"\",\r\n routeChange: true,\r\n Permission_routes: []\r\n }\r\n },\r\n computed: {\r\n ...mapGetters([\"permission_routes\", \"admin_routes\"]),\r\n isCollapse: {\r\n get() {\r\n return this.$store.state.app.isCollapse\r\n }\r\n }\r\n },\r\n mounted() {\r\n this.routeName = this.$route.matched[0].meta.name\r\n this.isAdmin = this.$route.matched[0].meta.name == \"admin\"\r\n this.getRoutes()\r\n },\r\n watch: {\r\n $route() {\r\n if (this.routeName != this.$route.matched[0].meta.name) {\r\n this.routeName = this.$route.matched[0].meta.name\r\n this.isAdmin = this.$route.matched[0].meta.name == \"admin\"\r\n this.getRoutes()\r\n }\r\n },\r\n isCollapse() {},\r\n permission_routes() {\r\n this.getRoutes()\r\n }\r\n },\r\n methods: {\r\n reload() {\r\n this.isRouterAlive = false\r\n this.$nextTick(() => (this.isRouterAlive = true))\r\n },\r\n changeCollapse() {\r\n this.$store.dispatch(\"toggleSideBar\")\r\n },\r\n // hasOneShowingChild(children = [], parent) {\r\n // const showingChildren = children.filter((item) => {\r\n // if (item.hidden) {\r\n // return false\r\n // } else {\r\n // this.onlyOneChild = item\r\n // return true\r\n // }\r\n // })\r\n\r\n // if (showingChildren.length === 0) {\r\n // this.onlyOneChild = { ...parent, path: \"\", noShowingChildren: true }\r\n // return true\r\n // }\r\n\r\n // return false\r\n // },\r\n getRoutes() {\r\n console.log(this.isAdmin, \" this.$store.state.app.isCollapse\")\r\n if (!this.isAdmin) {\r\n this.Permission_routes = this.permission_routes.filter((e) => {\r\n if (e.hidden || e.meta.name == \"admin\") {\r\n return false\r\n } else {\r\n return true\r\n }\r\n })\r\n this.Permission_routes = this.Permission_routes.map((e) => {\r\n if (e.children && e.children.length > 1) {\r\n e.showingChildren = true\r\n } else {\r\n e = (e.children && e.children[0]) || e\r\n e.showingChildren = false\r\n }\r\n return e\r\n })\r\n } else {\r\n this.Permission_routes = this.admin_routes.filter((e) => {\r\n if (e.children && e.children.length > 1) {\r\n e.showingChildren = true\r\n } else {\r\n e.showingChildren = false\r\n }\r\n return e\r\n })\r\n }\r\n },\r\n btn(index, e, i) {\r\n this.paths = index\r\n console.log(index, e, i, i.route)\r\n this.$router.push({ name: index })\r\n },\r\n handleOpen(key, keyPath) {\r\n console.log(key, keyPath, \"----------------1-----------\")\r\n },\r\n handleClose(key, keyPath) {\r\n console.log(key, keyPath, \"----------------3-----------\")\r\n }\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./leftBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./leftBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./leftBar.vue?vue&type=template&id=5a0670c0&\"\nimport script from \"./leftBar.vue?vue&type=script&lang=js&\"\nexport * from \"./leftBar.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}