chunk-440ece21.c98712dd.js.map 14 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/Home.vue?17fa","webpack:///./src/views/Home.vue?146a","webpack:///src/views/Home.vue","webpack:///./src/views/Home.vue?58ec","webpack:///./src/views/Home.vue","webpack:///./node_modules/_core-js@2.6.11@core-js/modules/es6.function.name.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","info","name","on","logout","attrs","$route","path","_l","$router","options","item","index","show","isLeaf","directives","rawName","value","permission","expression","key","class","icon","slot","_f","_e","child","idx","hide","sub","id","community","staticRenderFns","component","dP","f","FProto","Function","prototype","nameRE","NAME","configurable","get","match","e"],"mappings":"2IAAA,yBAA0pB,EAAG,G,yCCA7pB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,eAAe,CAACA,EAAG,YAAY,CAACE,YAAY,UAAU,CAACF,EAAG,KAAK,CAACJ,EAAIO,GAAG,cAAcH,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,OAAO,CAACJ,EAAIO,GAAG,eAAeP,EAAIQ,GAAGR,EAAIS,KAAKC,SAASN,EAAG,OAAO,CAACO,GAAG,CAAC,MAAQX,EAAIY,SAAS,CAACZ,EAAIO,GAAG,cAAcH,EAAG,eAAe,CAACE,YAAY,QAAQ,CAAEN,EAAIS,KAAO,GAAEL,EAAG,WAAW,CAACE,YAAY,aAAaO,MAAM,CAAC,MAAQ,UAAU,CAACT,EAAG,UAAU,CAACE,YAAY,aAAaO,MAAM,CAAC,iBAAgB,EAAK,iBAAiBb,EAAIc,OAAOC,KAAK,OAAS,GAAG,oBAAoB,YAAY,CAACf,EAAIgB,GAAIhB,EAAIiB,QAAQC,QAAc,QAAE,SAASC,EAAKC,GAAO,MAAO,CAAW,GAATA,EAAY,CAAED,EAAKE,MAAMF,EAAKG,OAAQlB,EAAG,eAAe,CAACmB,WAAW,CAAC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ASC,UAClBC,EAAS,wBACTC,EAAO,OAGXA,KAAQJ,GAAU,EAAQ,SAAqBF,EAAGE,EAAQI,EAAM,CAC9DC,cAAc,EACdC,IAAK,WACH,IACE,OAAQ,GAAKjD,MAAMkD,MAAMJ,GAAQ,GACjC,MAAOK,GACP,MAAO","file":"js/chunk-440ece21.c98712dd.js","sourcesContent":["import mod 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.2@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.2@vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=style&index=0&lang=scss&\"; export default mod; 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.2@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.2@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',{staticClass:\"header\"},[_c('h1',[_vm._v(\"巴中逸沣安全培训\")]),_c('div',{staticClass:\"settings\"},[_c('span',[_vm._v(\"\\n\\t\\t\\t\\t\\t\"+_vm._s(_vm.info.name))]),_c('span',{on:{\"click\":_vm.logout}},[_vm._v(\"退出登录\")])])]),_c('el-container',{staticClass:\"main\"},[(_vm.info.id)?_c('el-aside',{staticClass:\"left-aside\",attrs:{\"width\":\"220px\"}},[_c('el-menu',{staticClass:\"left-menue\",attrs:{\"unique-opened\":true,\"default-active\":_vm.$route.path,\"router\":\"\",\"active-text-color\":\"#ffffff\"}},[_vm._l((_vm.$router.options.routes),function(item,index){return [(index != 3)?[(item.show&&item.isLeaf)?_c('el-menu-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.permission(item.name)),expression:\"permission(item.name)\"}],key:index,attrs:{\"index\":item.path}},[_c('i',{class:item.icon}),_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(_vm._f(\"ellipsis\")(item.name)))])]):_vm._e(),(item.show&&!item.isLeaf)?_c('el-submenu',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.permission(item.name)),expression:\"permission(item.name)\"}],key:index,attrs:{\"index\":'index_'+index}},[_c('template',{slot:\"title\"},[_c('i',{class:item.icon}),_c('span',[_vm._v(_vm._s(_vm._f(\"ellipsis\")(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\\t\"+_vm._s(child.name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\")])}),1)],2):_vm._e()]:_vm._l((_vm.menu),function(sub,id){return _c('el-submenu',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.permission(sub.name)),expression:\"permission(sub.name)\"}],key:index+\"_\"+id,attrs:{\"index\":'index_'+index+'_'+id}},[_c('template',{slot:\"title\"},[_c('i',{class:sub.icon}),_c('span',[_vm._v(_vm._s(_vm._f(\"ellipsis\")(sub.name)))])]),_c('el-menu-item-group',_vm._l((sub.children),function(child,idx){return _c('el-menu-item',{key:index+'_'+idx,staticClass:\"child\",attrs:{\"index\":child.path}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\"+_vm._s(child.name)+\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\")])}),1)],2)})]})],2)],1):_vm._e(),_c('el-container',[_c('el-main',[_c('transition',{attrs:{\"name\":\"fade\",\"mode\":\"out-in\"}},[_c('router-view',{attrs:{\"info\":_vm.info,\"community\":_vm.community}})],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<style lang=\"scss\">\r\n@import '../style/home.scss';\r\n.head{\r\n\twidth:30px;\r\n\theight:30px;\r\n\tborder-radius:50%;\r\n\tfloat:left;\r\n\tmargin:10px;\r\n}\r\n</style>\r\n\r\n<template>\r\n\t<el-container>\r\n\t\t<el-header class=\"header\">\r\n\t\t\t<h1>巴中逸沣安全培训</h1>\r\n\t\t\t<!-- <img class=\"logo\" src=\"../images/logo.png\" alt=\"\"> -->\r\n\t\t\t<div class=\"settings\">\r\n\t\t\t\t<span>\r\n\t\t\t\t\t<!-- <img width=\"16\" src=\"../images/msg.png\" alt=\"\"> -->\r\n\t\t\t\t\t{{info.name}}</span>\r\n <span @click=\"logout\">退出登录</span>\r\n\t\t\t</div>\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=\"220px\" v-if='info.id'>\r\n\t\t\t\t<el-menu :unique-opened='true' :default-active=\"$route.path\" 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<template v-if=\"index != 3\">\r\n\t\t\t\t\t\t\t<el-menu-item v-if='item.show&&item.isLeaf' :index=\"item.path\" :key='index' v-show=\"permission(item.name)\">\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|ellipsis}}</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' v-show=\"permission(item.name)\" :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|ellipsis}}</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\t</template>\r\n\t\t\t\t\t\t<template v-else>\r\n\t\t\t\t\t\t\t<el-submenu v-for=\"(sub,id) in menu\" v-show=\"permission(sub.name)\" :index=\"'index_'+index+'_'+id\" :key='index+\"_\"+id'>\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=\"sub.icon\"></i>\r\n\t\t\t\t\t\t\t\t<span>{{sub.name|ellipsis}}</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 sub.children\" :key=\"index+'_'+idx\" :index=\"child.path\">\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\t</template>\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<transition name=\"fade\" mode=\"out-in\"><router-view :info='info' :community='community'></router-view></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\nexport default {\r\n\tfilters: {\r\n \tellipsis (value) {\r\n\t\tif (!value) return ''\r\n\t\tif (value.length > 8) {\r\n\t\t\treturn value.slice(0,8) + '...'\r\n\t\t}\r\n\t\treturn value\r\n\t\t}\r\n\t},\r\n\tname: 'home',\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tmenuList:[],\r\n\t\t\tpath:'',\r\n\t\t\tinfo:{},\r\n\t\t\tcommunity_list:[],\r\n\t\t\tcommunity:{},\r\n\t\t\tmenu:[]\r\n\t\t};\r\n\t},\r\n\tmethods: {\r\n\t\tlogout(){\r\n\t\t\tthis.$api.logout().then(res=>{\r\n\t\t\t\tthis.$router.push({path:'/login'})\r\n\t\t\t})\r\n\t\t},\r\n\t\tpermission(name){\r\n\t\t\tlet permissions=this.info.permissions||''\r\n\t\t\tif(permissions.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.getInfo().then(res=>{\r\n\t\t\t\tthis.info=res.data.data\r\n\t\t\t})\r\n\t\t\tthis.$api.getSubList().then(res=>{\r\n\t\t\t let data=res.data.data\r\n\t\t\t let routes=this.$route\r\n\t\t\t let path=[]\r\n\t\t\t for(let i=0;i<data.length;i++){\r\n\t\t\t\t path.push({\r\n\t\t\t\t\t \tpath: '/',\r\n\t\t\t\t\t\tname: data[i].name,\r\n\t\t\t\t\t\ticon:'el-icon-s-custom',\r\n\t\t\t\t\t\tchildren:[\r\n\t\t\t\t\t\t\t{ path: '/new/'+data[i].id, name: '新办'},\r\n\t\t\t\t\t\t\t{ path: '/update/'+data[i].id, name: '复审'},\r\n\t\t\t\t\t\t\t{ path: '/change/'+data[i].id, name: '换证'},\r\n\t\t\t\t\t\t]\r\n\t\t\t\t })\r\n\t\t\t }\r\n\t\t\t this.menu=path\r\n \t})\r\n\t\t}\r\n\t},\r\n\tcreated(){\r\n\t\t// console.log(this.$route)\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.1.0@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.2@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.1.0@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.2@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=5c3d5fe5&\"\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.2@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 dP = require('./_object-dp').f;\nvar FProto = Function.prototype;\nvar nameRE = /^\\s*function ([^ (]*)/;\nvar NAME = 'name';\n\n// 19.2.4.2 name\nNAME in FProto || require('./_descriptors') && dP(FProto, NAME, {\n configurable: true,\n get: function () {\n try {\n return ('' + this).match(nameRE)[1];\n } catch (e) {\n return '';\n }\n }\n});\n"],"sourceRoot":""}