chunk-4515ebc5.34f4c1d0.js.map 8.9 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/Home.vue?9def","webpack:///./src/views/Home.vue?87bd","webpack:///src/views/Home.vue","webpack:///./src/views/Home.vue?b6ff","webpack:///./src/views/Home.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","on","logout","_v","attrs","$route","path","split","_l","$router","options","item","index","show","isLeaf","key","class","icon","slot","_s","name","_e","child","idx","directives","rawName","value","hide","expression","staticRenderFns","component"],"mappings":"kHAAA,W,gECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAACA,EAAG,YAAY,CAACA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,OAAO,CAACE,YAAY,SAASC,GAAG,CAAC,MAAQP,EAAIQ,SAAS,CAACR,EAAIS,GAAG,UAAUL,EAAG,MAAM,CAACE,YAAY,aAAa,CAACN,EAAIS,GAAG,mBAAmBL,EAAG,eAAe,CAACE,YAAY,QAAQ,CAACF,EAAG,WAAW,CAACE,YAAY,aAAaI,MAAM,CAAC,MAAQ,UAAU,CAACN,EAAG,UAAU,CAACE,YAAY,aAAaI,MAAM,CAAC,mBAAmB,UAAU,aAAa,UAAU,iBAAgB,EAAM,iBAAiB,IAAKV,EAAIW,OAAOC,KAAKC,MAAM,KAAK,GAAG,OAAS,GAAG,oBAAoB,YAAY,CAACb,EAAIc,GAAId,EAAIe,QAAQC,QAAc,QAAE,SAASC,EAAKC,GAAO,MAAO,CAAED,EAAKE,MAAMF,EAAKG,OAAQhB,EAAG,eAAe,CAACiB,IAAIH,EAAMR,MAAM,CAAC,MAAQO,EAAKL,OAAO,CAACR,EAAG,IAAI,CAACkB,MAAML,EAAKM,OAAOnB,EAAG,OAAO,CAACM,MAAM,CAAC,KAAO,SAASc,KAAK,SAAS,CAACxB,EAAIS,GAAGT,EAAIyB,GAAGR,EAAKS,WAAW1B,EAAI2B,KAAMV,EAAKE,OAAOF,EAAKG,OAAQhB,EAAG,aAAa,CAACiB,IAAIH,EAAMR,MAAM,CAAC,MAAQ,SAASQ,IAAQ,CAACd,EAAG,WAAW,CAACoB,KAAK,SAAS,CAACpB,EAAG,IAAI,CAACkB,MAAML,EAAKM,OAAOnB,EAAG,OAAO,CAACJ,EAAIS,GAAGT,EAAIyB,GAAGR,EAAKS,WAAWtB,EAAG,qBAAqBJ,EAAIc,GAAIG,EAAa,UAAE,SAASW,EAAMC,GAAK,OAAOzB,EAAG,eAAe,CAAC0B,WAAW,CAAC,CAACJ,KAAK,OAAOK,QAAQ,SAASC,OAAQJ,EAAMK,KAAMC,WAAW,gBAAgBb,IAAIH,EAAM,IAAIW,EAAIvB,YAAY,QAAQI,MAAM,CAAC,MAAQkB,EAAMhB,OAAO,CAACZ,EAAIS,GAAG,qBAAqBT,EAAIyB,GAAGG,EAAMF,MAAM,2BAA0B,IAAI,GAAG1B,EAAI2B,UAAS,IAAI,GAAGvB,EAAG,eAAe,CAACA,EAAG,UAAU,CAACA,EAAG,aAAa,CAACM,MAAM,CAAC,KAAO,OAAO,KAAO,WAAW,CAACN,EAAG,gBAAgB,IAAI,IAAI,IAAI,IAAI,IAClgD+B,EAAkB,GCuDtB,GACA,YAEA,KAHA,WAIA,UAIA,SAEA,OAFA,WAEA,WACA,qCAEA,+BAeA,QApBA,WAoBA,WACA,6CACA,SACA,yBAOA,QAtCA,WAuCA,iBC/Fkb,I,wBCQ9aC,EAAY,eACd,EACArC,EACAoC,GACA,EACA,KACA,KACA,MAIa,aAAAC,E","file":"js/chunk-4515ebc5.34f4c1d0.js","sourcesContent":["export * from \"-!../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/_vue-loader@15.9.7@vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/_sass-loader@7.3.1@sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.7@vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',[_c('el-header',[_c('div',{staticClass:\"header\"},[_c('span',{staticClass:\"logout\",on:{\"click\":_vm.logout}},[_vm._v(\"退出登陆\")]),_c('div',{staticClass:\"siteTitle\"},[_vm._v(\"顽主杯实盘大赛后台\")])])]),_c('el-container',{staticClass:\"main\"},[_c('el-aside',{staticClass:\"left-aside\",attrs:{\"width\":\"210px\"}},[_c('el-menu',{staticClass:\"left-menue\",attrs:{\"background-color\":\"#151932\",\"text-color\":\"#ffffff\",\"unique-opened\":false,\"default-active\":'/'+ _vm.$route.path.split('/')[1],\"router\":\"\",\"active-text-color\":\"#ffffff\"}},[_vm._l((_vm.$router.options.routes),function(item,index){return [(item.show&&item.isLeaf)?_c('el-menu-item',{key:index,attrs:{\"index\":item.path}},[_c('i',{class:item.icon}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(item.name))])]):_vm._e(),(item.show&&!item.isLeaf)?_c('el-submenu',{key:index,attrs:{\"index\":'index_'+index}},[_c('template',{slot:\"title\"},[_c('i',{class:item.icon}),_c('span',[_vm._v(_vm._s(item.name))])]),_c('el-menu-item-group',_vm._l((item.children),function(child,idx){return _c('el-menu-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(!child.hide),expression:\"!child.hide\"}],key:index+'_'+idx,staticClass:\"child\",attrs:{\"index\":child.path}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(child.name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\")])}),1)],2):_vm._e()]})],2)],1),_c('el-container',[_c('el-main',[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view')],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n@import '../style/home.scss';\r\n.siteTitle{\r\n\tfont-size: 20px;\r\n\tfont-weight: 400;\r\n}\r\n</style>\r\n\r\n<template>\r\n\t<el-container>\r\n\t\t<el-header>\r\n\t\t\t<div class=\"header\">\r\n\t\t\t\t<span class=\"logout\" @click=\"logout\">退出登陆</span>\r\n\t\t\t\t<div class=\"siteTitle\">顽主杯实盘大赛后台</div>\r\n\t\t\t\t\r\n\t\t\t</div>\t\r\n\t\t</el-header>\r\n\t\t<el-container class=\"main\">\r\n\t\t\t<!-- 左侧菜单 -->\r\n\t\t\t<el-aside class=\"left-aside\" width=\"210px\">\r\n\t\t\t\t<el-menu background-color='#151932'\ttext-color='#ffffff' :unique-opened='false' :default-active=\"'/'+ $route.path.split('/')[1]\" router class=\"left-menue\" active-text-color=\"#ffffff\">\r\n\t\t\t\t\t<template v-for=\"(item, index) in $router.options.routes\" >\r\n\t\t\t\t\t\t\t<el-menu-item v-if='item.show&&item.isLeaf' :index=\"item.path\" :key='index'>\r\n\t\t\t\t\t\t\t\t<i :class=\"item.icon\"></i>\r\n\t\t\t\t\t\t\t\t<span slot=\"title\">{{item.name}}</span>\r\n\t\t\t\t\t\t\t</el-menu-item>\r\n\t\t\t\t\t\t\t<el-submenu v-if='item.show&&!item.isLeaf' :index=\"'index_'+index\" :key='index'>\r\n\t\t\t\t\t\t\t\t<template slot=\"title\" >\r\n\t\t\t\t\t\t\t\t<i :class=\"item.icon\"></i>\r\n\t\t\t\t\t\t\t\t<span>{{item.name}}</span>\r\n\t\t\t\t\t\t\t\t</template>\r\n\t\t\t\t\t\t\t\t<el-menu-item-group>\r\n\t\t\t\t\t\t\t\t\t<el-menu-item class=\"child\" v-for=\"(child,idx) in item.children\" :key=\"index+'_'+idx\" :index=\"child.path\" v-show='!child.hide'>\r\n\t\t\t\t\t\t\t\t\t{{child.name}}\r\n\t\t\t\t\t\t\t\t\t</el-menu-item>\r\n\t\t\t\t\t\t\t\t</el-menu-item-group>\r\n\t\t\t\t\t\t\t</el-submenu>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t</el-menu>\r\n\t\t\t</el-aside>\r\n\t\t\t<!-- 右侧内容 -->\r\n\t\t\t<el-container>\r\n\t\t\t\t<el-main>\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t<transition name=\"fade\" mode=\"out-in\">\r\n\t\t\t\t\t\t\t<router-view ></router-view>\r\n\t\t\t\t\t\t</transition>\r\n\t\t\t\t</el-main>\r\n\t\t\t\t<!-- <el-footer>Footer</el-footer> -->\r\n\t\t\t</el-container>\r\n\t\t</el-container>\r\n\t</el-container>\r\n</template>\r\n\r\n<script>\r\nimport Router from 'vue-router'\r\nexport default {\r\n\tname: 'home',\r\n\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\r\n\t\t};\r\n\t},\r\n\tmethods: {\r\n\t\r\n\t\tlogout(){\r\n\t\t\tthis.$api.logout().then(res=>{\r\n\t\t\t\t// this.$router.push({path:'/login'})\r\n\t\t\t\tthis.$router.push({path:'/'})\r\n\t\t\t})\r\n\t\t},\r\n\t\t// permission(name){\r\n\t\t// \tlet permissions=this.info.permissions||[];\r\n\t\t// \tlet list=[];\r\n\t\t// \tfor(let i=0;i<permissions.length;i++){\r\n\t\t// \t\tlist.push(permissions[i].name)\r\n\t\t// \t}\r\n\t\t// \tif(list.indexOf(name)<0){\r\n\t\t// \t\treturn false;\r\n\t\t// \t}else{\r\n\t\t// \t\treturn true;\r\n\t\t// \t}\t\r\n\t\t// },\r\n\t\tgetData(){\r\n\t\t\tthis.$api.getAccountInfo().then(res=>{\r\n\t\t\t\tif(!res.code){\r\n\t\t\t\t\tthis.info = res.data.data\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\r\n\t},\r\n\t\r\n\tcreated(){\r\n\t\tthis.getData()\r\n\t}\r\n};\r\n</script>\r\n","import mod from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.7@vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../node_modules/_babel-loader@8.2.2@babel-loader/lib/index.js!../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../node_modules/_vue-loader@15.9.7@vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Home.vue?vue&type=template&id=3ce99f38&\"\nimport script from \"./Home.vue?vue&type=script&lang=js&\"\nexport * from \"./Home.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Home.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.9.7@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":""}