1 |
- {"version":3,"sources":["webpack:///./src/views/Home.vue?1c4f","webpack:///./src/views/Home.vue","webpack:///src/views/Home.vue","webpack:///./src/views/Home.vue?cd6c","webpack:///./src/views/Home.vue?f2da"],"names":["render","_vm","this","_c","_self","staticClass","on","logout","_v","info","name","staticStyle","_s","attrs","slot","nativeOn","$event","changePsw","apply","arguments","_e","$route","path","split","_l","$router","options","routes","item","index","show","isLeaf","key","class","icon","children","child","idx","directives","rawName","value","hide","expression","open","ref","form","model","password","callback","$$v","$set","repassword","submitForm","staticRenderFns","data","methods","_this","$api","reset","then","res","code","push","msgError","message","_this2","getData","_this3","getAccountInfo","created","component"],"mappings":"kHAAA,W,iECAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,eAAe,CAACA,EAAG,YAAY,CAACA,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,OAAO,CAACE,YAAY,SAASC,GAAG,CAAC,MAAQL,EAAIM,SAAS,CAACN,EAAIO,GAAG,UAAWP,EAAIQ,KAAKC,KAAMP,EAAG,cAAc,CAACE,YAAY,SAASM,YAAY,CAAC,eAAe,SAAS,CAACR,EAAG,OAAO,CAACE,YAAY,mBAAmBM,YAAY,CAAC,MAAQ,OAAO,YAAY,SAAS,CAACV,EAAIO,GAAG,iBAAiBP,EAAIW,GAAGX,EAAIQ,KAAKC,OAAOP,EAAG,IAAI,CAACE,YAAY,wCAAwCF,EAAG,mBAAmB,CAACU,MAAM,CAAC,KAAO,YAAYC,KAAK,YAAY,CAACX,EAAG,mBAAmB,CAACY,SAAS,CAAC,MAAQ,SAASC,GAAQ,OAAOf,EAAIgB,UAAUC,MAAM,KAAMC,cAAc,CAAClB,EAAIO,GAAG,WAAW,IAAI,GAAGP,EAAImB,KAAKjB,EAAG,MAAM,CAACE,YAAY,aAAa,CAACJ,EAAIO,GAAG,kBAAkB,KAAKL,EAAG,eAAe,CAACE,YAAY,QAAQ,CAACF,EAA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AU,QAAA,CACAtC,UAAA,WACA,KAAA0B,MAAA,GAGAS,WAAA,eAAAI,EAAA,KACA,KAAAX,KAAAE,SAIA,KAAAF,KAAAM,WAIA,KAAAM,KAAAC,MAAA,KAAAb,MAAAc,MAAA,SAAAC,GACA,GAAAA,EAAAN,KAAAO,KACAL,EAAA/B,QAAAqC,KAAA,CAAAxC,KAAA,MAEAkC,EAAAO,SAAAH,EAAAN,KAAAU,YAPA,KAAAD,SAAA,SAJA,KAAAA,SAAA,WAgBAxD,OAAA,eAAA0D,EAAA,KACA,KAAAR,KAAAlD,SAAAoD,MAAA,SAAAC,GAEAK,EAAAxC,QAAAqC,KAAA,CAAAxC,KAAA,UAeA4C,QAAA,eAAAC,EAAA,KACA,KAAAV,KAAAW,iBAAAT,MAAA,SAAAC,GACAA,EAAAC,OACAM,EAAA1D,KAAAmD,EAAAN,gBAOAe,QAAA,WACA,KAAAH,YChJmb,I,wBCQ/aI,EAAY,eACd,EACAtE,EACAqD,GACA,EACA,KACA,KACA,MAIa,aAAAiB,E","file":"js/chunk-0983e76f.c6394906.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.10.1@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.10.1@vue-loader/lib/index.js??vue-loader-options!./Home.vue?vue&type=style&index=0&id=b78b2f52&prod&lang=scss&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('el-container',[_c('el-header',[_c('div',{staticClass:\"header\"},[_c('span',{staticClass:\"logout\",on:{\"click\":_vm.logout}},[_vm._v(\"退出登陆\")]),(_vm.info.name)?_c('el-dropdown',{staticClass:\"logout\",staticStyle:{\"margin-right\":\"10px\"}},[_c('span',{staticClass:\"el-dropdown-link\",staticStyle:{\"color\":\"#fff\",\"font-size\":\"16px\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\"+_vm._s(_vm.info.name)),_c('i',{staticClass:\"el-icon-arrow-down el-icon--right\"})]),_c('el-dropdown-menu',{attrs:{\"slot\":\"dropdown\"},slot:\"dropdown\"},[_c('el-dropdown-item',{nativeOn:{\"click\":function($event){return _vm.changePsw.apply(null, arguments)}}},[_vm._v(\"修改密码\")])],1)],1):_vm._e(),_c('div',{staticClass:\"siteTitle\"},[_vm._v(\"贝安欣PK检测管理后台\")])],1)]),_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\\t\"+_vm._s(child.name)+\"\\n\\t\\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),_c('el-dialog',{attrs:{\"title\":\"修改密码\",\"visible\":_vm.open,\"width\":\"500px\",\"append-to-body\":\"\"},on:{\"update:visible\":function($event){_vm.open=$event}}},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"label-width\":\"80px\"}},[_c('el-form-item',{attrs:{\"label\":\"新密码\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"\"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, \"password\", $$v)},expression:\"form.password\"}})],1),_c('el-form-item',{attrs:{\"label\":\"确认密码\"}},[_c('el-input',{attrs:{\"type\":\"password\",\"placeholder\":\"\"},model:{value:(_vm.form.repassword),callback:function ($$v) {_vm.$set(_vm.form, \"repassword\", $$v)},expression:\"form.repassword\"}})],1)],1),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submitForm}},[_vm._v(\"确 定\")]),_c('el-button',{on:{\"click\":function($event){_vm.open=false}}},[_vm._v(\"取 消\")])],1)],1)],1)\n}\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<el-dropdown class=\"logout\" v-if='info.name' style=\"margin-right:10px;\">\r\n\t\t\t\t\t<span class=\"el-dropdown-link\" style=\"color:#fff;font-size:16px;\">\r\n\t\t\t\t\t\t{{info.name}}<i class=\"el-icon-arrow-down el-icon--right\"></i>\r\n\t\t\t\t\t</span>\r\n\t\t\t\t\t<el-dropdown-menu slot=\"dropdown\">\r\n\t\t\t\t\t\t<el-dropdown-item @click.native=\"changePsw\">修改密码</el-dropdown-item>\r\n\t\t\t\t\t</el-dropdown-menu>\r\n\t\t\t\t</el-dropdown>\r\n\t\t\t\t<div class=\"siteTitle\">贝安欣PK检测管理后台</div>\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\r\n\r\n\t\t<el-dialog title=\"修改密码\" :visible.sync=\"open\" width=\"500px\" append-to-body>\r\n <el-form ref=\"form\" :model=\"form\" label-width=\"80px\">\r\n <!-- <el-form-item label=\"旧密码\">\r\n <el-input clearable v-model=\"form.password\" placeholder=\"\"></el-input>\r\n </el-form-item> -->\r\n <el-form-item label=\"新密码\">\r\n <el-input type=\"password\" v-model=\"form.password\" placeholder=\"\"></el-input>\r\n </el-form-item>\r\n\t\t\t\t<el-form-item label=\"确认密码\">\r\n <el-input type=\"password\" v-model=\"form.repassword\" placeholder=\"\"></el-input>\r\n </el-form-item>\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"submitForm\">确 定</el-button>\r\n <el-button @click=\"open=false\">取 消</el-button>\r\n </div>\r\n </el-dialog>\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\tinfo:{},\r\n\t\t\topen:false,\r\n\t\t\tform:{}\r\n\t\t};\r\n\t},\r\n\tmethods: {\r\n\t\tchangePsw(){\r\n\t\t\tthis.open=true;\r\n\r\n\t\t},\r\n\t\tsubmitForm(){\r\n\t\t\tif(!this.form.password){\r\n\t\t\t\tthis.msgError('请输入新密码');\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tif(!this.form.repassword){\r\n\t\t\t\tthis.msgError('请确认密码');\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tthis.$api.reset(this.form).then(res=>{\r\n\t\t\t\tif(res.data.code == 0){\r\n\t\t\t\t\tthis.$router.push({path:'/'})\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthis.msgError(res.data.message);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t})\r\n\t\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.3.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.10.1@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.3.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.10.1@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=b78b2f52&\"\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&id=b78b2f52&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/_vue-loader@15.10.1@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":""}
|