![]()
',init:function(){var e=this,a=t.defaultImg;if(a)if(Array.isArray(a)){if(0===a.length)return;a.map((function(a,n){var i={name:"name"+n,size:12345,url:a};return e.options.addedfile.call(e,i),e.options.thumbnail.call(e,i,a),i.previewElement.classList.add("dz-success"),i.previewElement.classList.add("dz-complete"),t.initOnce=!1,!0}))}else{var n={name:"name",size:12345,url:a};this.options.addedfile.call(this,n),this.options.thumbnail.call(this,n,a),n.previewElement.classList.add("dz-success"),n.previewElement.classList.add("dz-complete"),t.initOnce=!1}},accept:function(e,t){t()},sending:function(e,a,n){t.initOnce=!1}}),this.couldPaste&&document.addEventListener("paste",this.pasteImg),this.dropzone.on("success",(function(e){t.$emit("dropzone-success",e,t.dropzone.element)})),this.dropzone.on("addedfile",(function(e){t.$emit("dropzone-fileAdded",e)})),this.dropzone.on("removedfile",(function(e){t.$emit("dropzone-removedFile",e)})),this.dropzone.on("error",(function(e,a,n){t.$emit("dropzone-error",e,a,n)})),this.dropzone.on("successmultiple",(function(e,a,n){t.$emit("dropzone-successmultiple",e,a,n)}))},destroyed:function(){document.removeEventListener("paste",this.pasteImg),this.dropzone.destroy()},methods:{removeAllFiles:function(){this.dropzone.removeAllFiles(!0)},processQueue:function(){this.dropzone.processQueue()},pasteImg:function(e){var t=(e.clipboardData||e.originalEvent.clipboardData).items;"file"===t[0].kind&&this.dropzone.addFile(t[0].getAsFile())},initImages:function(e){var t=this;if(e)if(Array.isArray(e))e.map((function(e,a){var n={name:"name"+a,size:12345,url:e};return t.dropzone.options.addedfile.call(t.dropzone,n),t.dropzone.options.thumbnail.call(t.dropzone,n,e),n.previewElement.classList.add("dz-success"),n.previewElement.classList.add("dz-complete"),!0}));else{var a={name:"name",size:12345,url:e};this.dropzone.options.addedfile.call(this.dropzone,a),this.dropzone.options.thumbnail.call(this.dropzone,a,e),a.previewElement.classList.add("dz-success"),a.previewElement.classList.add("dz-complete")}}}},u=c,d=(a("2830"),a("2877")),p=Object(d["a"])(u,o,s,!1,null,"2bb8ff5e",null),m=p.exports,h={name:"DropzoneDemo",components:{Dropzone:m},methods:{dropzoneS:function(e){console.log(e),this.$message({message:"Upload success",type:"success"})},dropzoneR:function(e){console.log(e),this.$message({message:"Delete success",type:"success"})}}},f=h,v=Object(d["a"])(f,n,i,!1,null,null,null);t["default"]=v.exports},"18c2":function(e,t,a){"use strict";a("6bed")},"18f0":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:'
'});s.a.add(r);t["default"]=r},1924:function(e,t,a){},"1aba":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"material-input__component",class:e.computedClasses},[a("div",{class:{iconClass:e.icon}},[e.icon?a("i",{staticClass:"el-input__icon material-input__icon",class:["el-icon-"+e.icon]}):e._e(),"email"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,required:e.required,type:"email"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),"url"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,required:e.required,type:"url"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),"number"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,step:e.step,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,max:e.max,min:e.min,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"number"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),"password"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,max:e.max,min:e.min,required:e.required,type:"password"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),"tel"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,required:e.required,type:"tel"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),"text"===e.type?a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentValue,expression:"currentValue"}],staticClass:"material-input",attrs:{name:e.name,placeholder:e.fillPlaceHolder,readonly:e.readonly,disabled:e.disabled,autocomplete:e.autoComplete,minlength:e.minlength,maxlength:e.maxlength,required:e.required,type:"text"},domProps:{value:e.currentValue},on:{focus:e.handleMdFocus,blur:e.handleMdBlur,input:[function(t){t.target.composing||(e.currentValue=t.target.value)},e.handleModelInput]}}):e._e(),a("span",{staticClass:"material-input-bar"}),a("label",{staticClass:"material-label"},[e._t("default")],2)])])},i=[],o=(a("a9e3"),{name:"MdInput",props:{icon:String,name:String,type:{type:String,default:"text"},value:[String,Number],placeholder:String,readonly:Boolean,disabled:Boolean,min:String,max:String,step:String,minlength:Number,maxlength:Number,required:{type:Boolean,default:!0},autoComplete:{type:String,default:"off"},validateEvent:{type:Boolean,default:!0}},data:function(){return{currentValue:this.value,focus:!1,fillPlaceHolder:null}},computed:{computedClasses:function(){return{"material--active":this.focus,"material--disabled":this.disabled,"material--raised":Boolean(this.focus||this.currentValue)}}},watch:{value:function(e){this.currentValue=e}},methods:{handleModelInput:function(e){var t=e.target.value;this.$emit("input",t),"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.change",[t]),this.$emit("change",t)},handleMdFocus:function(e){this.focus=!0,this.$emit("focus",e),this.placeholder&&""!==this.placeholder&&(this.fillPlaceHolder=this.placeholder)},handleMdBlur:function(e){this.focus=!1,this.$emit("blur",e),this.fillPlaceHolder=null,"ElFormItem"===this.$parent.$options.componentName&&this.validateEvent&&this.$parent.$emit("el.form.blur",[this.currentValue])}}}),s=o,r=(a("de87"),a("2877")),l=Object(r["a"])(s,n,i,!1,null,"9d7baaf6",null);t["a"]=l.exports},"1d3d":function(e,t,a){},"1db4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[e._m(0),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[e._v("OOPS!")]),e._m(1),a("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),a("div",{staticClass:"bullshit__info"},[e._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[e._v("Back to home")])])])])},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pic-404"},[n("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),n("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),n("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),n("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bullshit__info"},[e._v("All rights reserved "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[e._v("wallstreetcn")])])}],o={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},s=o,r=(a("89a2"),a("2877")),l=Object(r["a"])(s,n,i,!1,null,"26fcd89f",null);t["default"]=l.exports},"1e3e":function(e,t,a){},"1ef6":function(e,t,a){},2:function(e,t){},"21ff":function(e,t,a){"use strict";a("4b8e")},2423:function(e,t,a){"use strict";a.d(t,"c",(function(){return i})),a.d(t,"b",(function(){return o})),a.d(t,"d",(function(){return s})),a.d(t,"a",(function(){return r})),a.d(t,"e",(function(){return l}));var n=a("b775");function i(e){return Object(n["a"])({url:"/vue-element-admin/article/list",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/vue-element-admin/article/detail",method:"get",params:{id:e}})}function s(e){return Object(n["a"])({url:"/vue-element-admin/article/pv",method:"get",params:{pv:e}})}function r(e){return Object(n["a"])({url:"/vue-element-admin/article/create",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/vue-element-admin/article/update",method:"post",data:e})}},"24ab":function(e,t,a){e.exports={theme:"#1890ff"}},"24e2":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"errPage-container"},[a("el-button",{staticClass:"pan-back-btn",attrs:{icon:"el-icon-arrow-left"},on:{click:e.back}},[e._v(" 返回 ")]),a("el-row",[a("el-col",{attrs:{span:12}},[a("h1",{staticClass:"text-jumbo text-ginormous"},[e._v(" Oops! ")]),e._v(" gif来源"),a("a",{attrs:{href:"https://zh.airbnb.com/",target:"_blank"}},[e._v("airbnb")]),e._v(" 页面 "),a("h2",[e._v("你没有权限去该页面")]),a("h6",[e._v("如有不满请联系你领导")]),a("ul",{staticClass:"list-unstyled"},[a("li",[e._v("或者你可以去:")]),a("li",{staticClass:"link-type"},[a("router-link",{attrs:{to:"/dashboard"}},[e._v(" 回首页 ")])],1),a("li",{staticClass:"link-type"},[a("a",{attrs:{href:"https://www.taobao.com/"}},[e._v("随便看看")])]),a("li",[a("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault(),e.dialogVisible=!0}}},[e._v("点我看图")])])])]),a("el-col",{attrs:{span:12}},[a("img",{attrs:{src:e.errGif,width:"313",height:"428",alt:"Girl has dropped her ice cream."}})])],1),a("el-dialog",{attrs:{visible:e.dialogVisible,title:"随便看"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("img",{staticClass:"pan-img",attrs:{src:e.ewizardClap}})])],1)},i=[],o=a("cc6c"),s=a.n(o),r={name:"Page401",data:function(){return{errGif:s.a+"?"+ +new Date,ewizardClap:"https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646",dialogVisible:!1}},methods:{back:function(){this.$route.query.noGoBack?this.$router.push({path:"/dashboard"}):this.$router.go(-1)}}},l=r,c=(a("acdd"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,"35ca77fc",null);t["default"]=u.exports},2580:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:'
'});s.a.add(r);t["default"]=r},2641:function(e,t,a){"use strict";a("ee81")},2696:function(e,t,a){"use strict";a("4d10")},"26fc":function(e,t,a){e.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},2830:function(e,t,a){"use strict";a("03c9")},2888:function(e,t,a){"use strict";a("4223")},"28ca":function(e,t,a){"use strict";a("53d9")},"28e8":function(e,t,a){},"2a2d":function(e,t,a){a("b0c0"),a("4de4"),a("d3b7");for(var n=a("96eb"),i=[],o=100,s=0;s
'});s.a.add(r);t["default"]=r},"2ab9":function(e,t,a){},"2af2":function(e,t,a){"use strict";a("3248")},"2c16":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"components-container"},[e._m(0),a("div",[a("tinymce",{attrs:{height:300},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1),a("div",{staticClass:"editor-content",domProps:{innerHTML:e._s(e.content)}})])},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aside",[e._v(" Rich text is a core feature of the management backend, but at the same time it is a place with lots of pits. In the process of selecting rich texts, I also took a lot of detours. The common rich texts on the market have been basically used, and I finally chose Tinymce. See the more detailed rich text comparison and introduction. "),a("a",{staticClass:"link-type",attrs:{target:"_blank",href:"https://panjiachen.github.io/vue-element-admin-site/feature/component/rich-editor.html"}},[e._v("Documentation")])])}],o=a("8256"),s={name:"TinymceDemo",components:{Tinymce:o["a"]},data:function(){return{content:'Welcome to the TinyMCE demo!

'}}},r=s,l=(a("e516"),a("2877")),c=Object(l["a"])(r,n,i,!1,null,"1e7d8f0e",null);t["default"]=c.exports},"2f11":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},3:function(e,t){},3046:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"30c3":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"31c2":function(e,t,a){"use strict";a.r(t),a.d(t,"filterAsyncRoutes",(function(){return s}));var n=a("5530"),i=(a("d3b7"),a("caad"),a("2532"),a("159b"),a("99af"),a("a18c"));function o(e,t){return!t.meta||!t.meta.roles||e.some((function(e){return t.meta.roles.includes(e)}))}function s(e,t){var a=[];return e.forEach((function(e){var i=Object(n["a"])({},e);o(t,i)&&(i.children&&(i.children=s(i.children,t)),a.push(i))})),a}var r={routes:[],addRoutes:[]},l={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=i["b"].concat(t)}},c={generateRoutes:function(e,t){var a=e.commit;return new Promise((function(e){var n;n=t.includes("admin")?i["a"]||[]:s(i["a"],t),a("SET_ROUTES",n),e(n)}))}};t["default"]={namespaced:!0,state:r,mutations:l,actions:c}},3248:function(e,t,a){},3252:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("switch-roles",{on:{change:e.handleRolesChange}})],1)},i=[],o=a("8ee8"),s={name:"PagePermission",components:{SwitchRoles:o["a"]},methods:{handleRolesChange:function(){this.$router.push({path:"/permission/index?"+ +new Date})}}},r=s,l=a("2877"),c=Object(l["a"])(r,n,i,!1,null,null,null);t["default"]=c.exports},3289:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"331a":function(e,t){var a={admin:{token:"admin-token"},editor:{token:"editor-token"}},n={"admin-token":{roles:["admin"],introduction:"I am a super administrator",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Super Admin"},"editor-token":{roles:["editor"],introduction:"I am an editor",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Normal Editor"}};e.exports=[{url:"/vue-element-admin/user/login",type:"post",response:function(e){var t=e.body.username,n=a[t];return n?{code:2e4,data:n}:{code:60204,message:"Account and password are incorrect."}}},{url:"/vue-element-admin/user/info.*",type:"get",response:function(e){var t=e.query.token,a=n[t];return a?{code:2e4,data:a}:{code:50008,message:"Login failed, unable to get user details."}}},{url:"/vue-element-admin/user/logout",type:"post",response:function(e){return{code:2e4,data:"success"}}}]},"333d":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container",class:{hidden:e.hidden}},[a("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},i=[];a("a9e3");Math.easeInOutQuad=function(e,t,a,n){return e/=n/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function s(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,a){var n=r(),i=e-n,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var r=Math.easeInOutQuad(c,n,i,t);s(r),c")])],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aside",[a("a",{attrs:{href:"https://github.com/PanJiaChen/vue-countTo",target:"_blank"}},[e._v("countTo-component")])])}],o=a("ec1b"),s=a.n(o),r={name:"CountToDemo",components:{countTo:s.a},data:function(){return{setStartVal:0,setEndVal:2017,setDuration:4e3,setDecimals:0,setSeparator:",",setSuffix:" rmb",setPrefix:"¥ "}},computed:{_startVal:function(){return this.setStartVal?this.setStartVal:0},_endVal:function(){return this.setEndVal?this.setEndVal:0},_duration:function(){return this.setDuration?this.setDuration:100},_decimals:function(){return this.setDecimals?this.setDecimals<0||this.setDecimals>20?(alert("digits argument must be between 0 and 20"),0):this.setDecimals:0},_separator:function(){return this.setSeparator},_suffix:function(){return this.setSuffix},_prefix:function(){return this.setPrefix}},methods:{start:function(){this.$refs.example.start()},pauseResume:function(){this.$refs.example.pauseResume()}}},l=r,c=(a("052b"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,"21d12dce",null);t["default"]=u.exports},"40d6":function(e,t,a){"use strict";a("b852")},4199:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("aside",{staticStyle:{"margin-top":"15px"}},[e._v(" Here we use window.print() to implement the feature of downloading PDF. ")]),a("router-link",{attrs:{target:"_blank",to:"/pdf/download"}},[a("el-button",{attrs:{type:"primary"}},[e._v(" Click to download PDF ")])],1)],1)},i=[],o=a("2877"),s={},r=Object(o["a"])(s,n,i,!1,null,null,null);t["default"]=r.exports},4223:function(e,t,a){},4360:function(e,t,a){"use strict";a("13d5"),a("d3b7"),a("ddb0"),a("ac1f"),a("5319");var n=a("2b0e"),i=a("2f62"),o=(a("b0c0"),{sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs}}),s=o;n["default"].use(i["a"]);var r=a("c653"),l=r.keys().reduce((function(e,t){var a=t.replace(/^\.\/(.*)\.\w+$/,"$1"),n=r(t);return e[a]=n.default,e}),{}),c=new i["a"].Store({modules:l,getters:s});t["a"]=c},"440b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"components-container"},[e._m(0),a("div",{staticClass:"editor-container"},[a("el-tag",{staticClass:"tag-title"},[e._v(" Basic: ")]),a("markdown-editor",{attrs:{height:"300px"},model:{value:e.content1,callback:function(t){e.content1=t},expression:"content1"}})],1),a("div",{staticClass:"editor-container"},[a("el-tag",{staticClass:"tag-title"},[e._v(" Markdown Mode: ")]),a("markdown-editor",{ref:"markdownEditor",attrs:{options:{hideModeSwitch:!0,previewStyle:"tab"},height:"200px"},model:{value:e.content2,callback:function(t){e.content2=t},expression:"content2"}})],1),a("div",{staticClass:"editor-container"},[a("el-tag",{staticClass:"tag-title"},[e._v(" Customize Toolbar: ")]),a("markdown-editor",{attrs:{options:{toolbarItems:["heading","bold","italic"]}},model:{value:e.content3,callback:function(t){e.content3=t},expression:"content3"}})],1),a("div",{staticClass:"editor-container"},[a("el-tag",{staticClass:"tag-title"},[e._v(" I18n: ")]),a("el-alert",{attrs:{closable:!1,title:"You can change the language of the admin system to see the effect",type:"success"}}),a("markdown-editor",{ref:"markdownEditor",attrs:{language:e.language,height:"300px"},model:{value:e.content4,callback:function(t){e.content4=t},expression:"content4"}})],1),a("el-button",{staticStyle:{"margin-top":"80px"},attrs:{type:"primary",icon:"el-icon-document"},on:{click:e.getHtml}},[e._v(" Get HTML ")]),a("div",{domProps:{innerHTML:e._s(e.html)}})],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aside",[e._v("Markdown is based on "),a("a",{attrs:{href:"https://github.com/nhnent/tui.editor",target:"_blank"}},[e._v("tui.editor")]),e._v(" ,simply wrapped with Vue. "),a("a",{attrs:{target:"_blank",href:"https://panjiachen.github.io/vue-element-admin-site/feature/component/markdown-editor.html"}},[e._v(" Documentation ")])])}],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:e.id}})},s=[],r=a("5530"),l=(a("b680"),a("a7be"),a("44f8"),a("a6e0"),a("547e")),c=a.n(l),u={minHeight:"200px",previewStyle:"vertical",useCommandShortcut:!0,useDefaultHTMLSanitizer:!0,usageStatistics:!1,hideModeSwitch:!1,toolbarItems:["heading","bold","italic","strike","divider","hr","quote","divider","ul","ol","task","indent","outdent","divider","table","image","link","divider","code","codeblock"]},d={name:"MarkdownEditor",props:{value:{type:String,default:""},id:{type:String,required:!1,default:function(){return"markdown-editor-"+ +new Date+(1e3*Math.random()).toFixed(0)}},options:{type:Object,default:function(){return u}},mode:{type:String,default:"markdown"},height:{type:String,required:!1,default:"300px"},language:{type:String,required:!1,default:"en_US"}},data:function(){return{editor:null}},computed:{editorOptions:function(){var e=Object.assign({},u,this.options);return e.initialEditType=this.mode,e.height=this.height,e.language=this.language,e}},watch:{value:function(e,t){e!==t&&e!==this.editor.getValue()&&this.editor.setValue(e)},language:function(e){this.destroyEditor(),this.initEditor()},height:function(e){this.editor.height(e)},mode:function(e){this.editor.changeMode(e)}},mounted:function(){this.initEditor()},destroyed:function(){this.destroyEditor()},methods:{initEditor:function(){var e=this;this.editor=new c.a(Object(r["a"])({el:document.getElementById(this.id)},this.editorOptions)),this.value&&this.editor.setValue(this.value),this.editor.on("change",(function(){e.$emit("input",e.editor.getValue())}))},destroyEditor:function(){this.editor&&(this.editor.off("change"),this.editor.remove())},setValue:function(e){this.editor.setValue(e)},getValue:function(){return this.editor.getValue()},setHtml:function(e){this.editor.setHtml(e)},getHtml:function(){return this.editor.getHtml()}}},p=d,m=a("2877"),h=Object(m["a"])(p,o,s,!1,null,null,null),f=h.exports,v="\n**This is test**\n\n* vue\n* element\n* webpack\n\n",g={name:"MarkdownDemo",components:{MarkdownEditor:f},data:function(){return{content1:v,content2:v,content3:v,content4:v,html:"",languageTypeList:{en:"en_US",zh:"zh_CN",es:"es_ES"}}},computed:{language:function(){return this.languageTypeList["en"]}},methods:{getHtml:function(){this.html=this.$refs.markdownEditor.getHtml(),console.log(this.html)}}},b=g,w=(a("c270"),Object(m["a"])(b,n,i,!1,null,"76fc6684",null));t["default"]=w.exports},4660:function(e,t,a){"use strict";a("d800")},"47f1":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"47ff":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"4b0f":function(e,t,a){var n=a("6374").default,i=a("448a").default;a("99af"),a("b64b"),a("4d63"),a("ac1f"),a("2c3e"),a("25f0");var o=a("96eb"),s=a("8a60"),r=s.param2Obj,l=a("331a"),c=a("f3d6"),u=a("a109"),d=a("2a2d"),p=[].concat(i(l),i(c),i(u),i(d));function m(){function e(e){return function(t){var a=null;if(e instanceof Function){var n=t.body,i=t.type,s=t.url;a=e({method:i,body:JSON.parse(n),query:r(s)})}else a=e;return o.mock(a)}}o.XHR.prototype.proxy_send=o.XHR.prototype.send,o.XHR.prototype.send=function(){this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.proxy_send.apply(this,arguments)};var t,a=n(p);try{for(a.s();!(t=a.n()).done;){var i=t.value;o.mock(new RegExp(i.url),i.type||"get",e(i.response))}}catch(s){a.e(s)}finally{a.f()}}e.exports={mocks:p,mockXHR:m}},"4b8e":function(e,t,a){},"4b9e":function(e,t,a){},"4bf8":function(e,t,a){"use strict";a.r(t),a.d(t,"export_table_to_excel",(function(){return p})),a.d(t,"export_json_to_excel",(function(){return m}));var n=a("2909"),i=(a("d3b7"),a("c19f"),a("ace4"),a("5cc6"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ca91"),a("25a1"),a("cd26"),a("3c5d"),a("2954"),a("649e"),a("219c"),a("170b"),a("b39a"),a("72f7"),a("159b"),a("d81d"),a("25f0"),a("99af"),a("21a6")),o=a("1146"),s=a.n(o);function r(e){for(var t=[],a=e.querySelectorAll("tr"),n=[],i=0;i=e.s.r&&i<=e.e.r&&o.length>=e.s.c&&o.length<=e.e.c)for(var t=0;t<=e.e.c-e.s.c;++t)o.push(null)})),(d||u)&&(d=d||1,u=u||1,n.push({s:{r:i,c:o.length},e:{r:i+d-1,c:o.length+u-1}})),o.push(""!==p?p:null),u)for(var m=0;mi&&(n.s.r=i),n.s.c>o&&(n.s.c=o),n.e.r0&&void 0!==arguments[0]?arguments[0]:{},t=e.multiHeader,a=void 0===t?[]:t,o=e.header,r=e.data,l=e.filename,p=e.merges,m=void 0===p?[]:p,h=e.autoWidth,f=void 0===h||h,v=e.bookType,g=void 0===v?"xlsx":v;l=l||"excel-list",r=Object(n["a"])(r),r.unshift(o);for(var b=a.length-1;b>-1;b--)r.unshift(a[b]);var w="SheetJS",y=new u,_=c(r);if(m.length>0&&(_["!merges"]||(_["!merges"]=[]),m.forEach((function(e){_["!merges"].push(s.a.utils.decode_range(e))}))),f){for(var x=r.map((function(e){return e.map((function(e){return null==e?{wch:10}:e.toString().charCodeAt(0)>255?{wch:2*e.toString().length}:{wch:e.toString().length}}))})),k=x[0],C=1;C'});s.a.add(r);t["default"]=r},"4ed3":function(e,t,a){},"4f5a":function(e,t,a){"use strict";a("1e3e")},5:function(e,t){},"51ff":function(e,t,a){var n={"./404.svg":"a14a","./bug.svg":"1779","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921d","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./user.svg":"b3b5","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(e){var t=o(e);return a(t)}function o(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id="51ff"},"53d9":function(e,t,a){},5473:function(e,t,a){"use strict";a("896c")},"55cd":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2",type:"success"}},[a("router-view")],1)],1)},i=[],o=a("2877"),s={},r=Object(o["a"])(s,n,i,!1,null,null,null);t["default"]=r.exports},5660:function(e,t,a){"use strict";a("7a30")},"56d6":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"56d7":function(e,t,a){"use strict";a.r(t);var n={};a.r(n),a.d(n,"parseTime",(function(){return N["e"]})),a.d(n,"formatTime",(function(){return N["d"]})),a.d(n,"timeAgo",(function(){return U})),a.d(n,"numberFormatter",(function(){return q})),a.d(n,"toThousandFilter",(function(){return W})),a.d(n,"uppercaseFirst",(function(){return J}));a("e260"),a("e6cf"),a("cca6"),a("a79d"),a("d3b7"),a("159b"),a("b64b"),a("4de4");var i=a("2b0e"),o=a("a78e"),s=a.n(o),r=(a("f5df1"),a("5c96")),l=a.n(r),c=(a("24ab"),a("b2d6")),u=a.n(c),d=(a("b20f"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)}),p=[],m={name:"App"},h=m,f=a("2877"),v=Object(f["a"])(h,d,p,!1,null,null,null),g=v.exports,b=a("4360"),w=a("a18c"),y=(a("d81d"),a("ddb0"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.isExternal?a("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):a("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[a("use",{attrs:{"xlink:href":e.iconName}})])}),_=[],x=a("61f7"),k={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(x["b"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},C=k,S=(a("64df"),Object(f["a"])(C,y,_,!1,null,"f9f7fefc",null)),O=S.exports;i["default"].component("svg-icon",O);var E=a("51ff"),T=function(e){return e.keys().map(e)};T(E);var j=a("c7eb"),D=a("5530"),z=a("1da1"),L=a("323e"),$=a.n(L),V=(a("a5d8"),a("5f87")),P=(a("99af"),a("83d6")),I=a.n(P),M=I.a.title||"Vue Element Admin";function A(e){return e?"".concat(e," - ").concat(M):"".concat(M)}$.a.configure({showSpinner:!1});var H=["/login","/auth-redirect"];w["c"].beforeEach(function(){var e=Object(z["a"])(Object(j["a"])().mark((function e(t,a,n){var i,o,s,l,c;return Object(j["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if($.a.start(),document.title=A(t.meta.title),i=Object(V["a"])(),!i){e.next=35;break}if("/login"!==t.path){e.next=9;break}n({path:"/"}),$.a.done(),e.next=33;break;case 9:if(o=b["a"].getters.roles&&b["a"].getters.roles.length>0,!o){e.next=14;break}n(),e.next=33;break;case 14:return e.prev=14,e.next=17,b["a"].dispatch("user/getInfo");case 17:return s=e.sent,l=s.roles,e.next=21,b["a"].dispatch("permission/generateRoutes",l);case 21:c=e.sent,w["c"].addRoutes(c),n(Object(D["a"])(Object(D["a"])({},t),{},{replace:!0})),e.next=33;break;case 26:return e.prev=26,e.t0=e["catch"](14),e.next=30,b["a"].dispatch("user/resetToken");case 30:r["Message"].error(e.t0||"Has Error"),n("/login?redirect=".concat(t.path)),$.a.done();case 33:e.next=36;break;case 35:-1!==H.indexOf(t.path)?n():(n("/login?redirect=".concat(t.path)),$.a.done());case 36:case"end":return e.stop()}}),e,null,[[14,26]])})));return function(t,a,n){return e.apply(this,arguments)}}()),w["c"].afterEach((function(){$.a.done()}));a("caad"),a("2532");var R=I.a.errorLog;function B(){var e="production";return Object(x["c"])(R)?e===R:!!Object(x["a"])(R)&&R.includes(e)}B()&&(i["default"].config.errorHandler=function(e,t,a,n){i["default"].nextTick((function(){b["a"].dispatch("errorLog/addErrorLog",{err:e,vm:t,info:a,url:window.location.href}),console.error(e,a)}))});a("a9e3"),a("ac1f"),a("5319"),a("b680"),a("25f0"),a("fb6a");var N=a("ed08");function F(e,t){return 1===e?e+t:e+t+"s"}function U(e){var t=Date.now()/1e3-Number(e);return t<3600?F(~~(t/60)," minute"):t<86400?F(~~(t/3600)," hour"):F(~~(t/86400)," day")}function q(e,t){for(var a=[{value:1e18,symbol:"E"},{value:1e15,symbol:"P"},{value:1e12,symbol:"T"},{value:1e9,symbol:"G"},{value:1e6,symbol:"M"},{value:1e3,symbol:"k"}],n=0;n=a[n].value)return(e/a[n].value).toFixed(t).replace(/\.0+$|(\.[0-9]*[1-9])0+$/,"$1")+a[n].symbol;return e.toString()}function W(e){return(+e||0).toString().replace(/^-?\d+/g,(function(e){return e.replace(/(?=(?!\b)(\d{3})+$)/g,",")}))}function J(e){return e.charAt(0).toUpperCase()+e.slice(1)}var G=a("4b0f"),Q=G.mockXHR;Q(),i["default"].use(l.a,{size:s.a.get("size")||"medium",locale:u.a}),Object.keys(n).forEach((function(e){i["default"].filter(e,n[e])})),i["default"].config.productionTip=!1,new i["default"]({el:"#app",router:w["c"],store:b["a"],render:function(e){return e(g)}})},"59e2":function(e,t,a){},"5b56":function(e,t,a){},"5ea7":function(e,t,a){},"5f08":function(e,t,a){},"5f87":function(e,t,a){"use strict";a.d(t,"a",(function(){return s})),a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return l}));var n=a("a78e"),i=a.n(n),o="Admin-Token";function s(){return i.a.get(o)}function r(e){return i.a.set(o,e)}function l(){return i.a.remove(o)}},"5fb3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",[a("FilenameOption",{model:{value:e.filename,callback:function(t){e.filename=t},expression:"filename"}}),a("AutoWidthOption",{model:{value:e.autoWidth,callback:function(t){e.autoWidth=t},expression:"autoWidth"}}),a("BookTypeOption",{model:{value:e.bookType,callback:function(t){e.bookType=t},expression:"bookType"}}),a("el-button",{staticStyle:{margin:"0 0 20px 20px"},attrs:{loading:e.downloadLoading,type:"primary",icon:"el-icon-document"},on:{click:e.handleDownload}},[e._v(" Export Excel ")]),a("a",{staticStyle:{"margin-left":"15px"},attrs:{href:"https://panjiachen.github.io/vue-element-admin-site/feature/component/excel.html",target:"_blank"}},[a("el-tag",{attrs:{type:"info"}},[e._v("Documentation")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"Loading...",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"Id",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index)+" ")]}}])}),a("el-table-column",{attrs:{label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.title)+" ")]}}])}),a("el-table-column",{attrs:{label:"Author",width:"110",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",[e._v(e._s(t.row.author))])]}}])}),a("el-table-column",{attrs:{label:"Readings",width:"115",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.pageviews)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Date",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"el-icon-time"}),a("span",[e._v(e._s(e._f("parseTime")(t.row.timestamp,"{y}-{m}-{d} {h}:{i}")))])]}}])})],1)],1)},i=[],o=a("36cd"),s=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("2423")),r=a("ed08"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{display:"inline-block"}},[a("label",{staticClass:"radio-label",staticStyle:{"padding-left":"0"}},[e._v("Filename: ")]),a("el-input",{staticStyle:{width:"345px"},attrs:{placeholder:"Please enter the file name (default excel-list)","prefix-icon":"el-icon-document"},model:{value:e.filename,callback:function(t){e.filename=t},expression:"filename"}})],1)},c=[],u={props:{value:{type:String,default:""}},computed:{filename:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}},d=u,p=a("2877"),m=Object(p["a"])(d,l,c,!1,null,null,null),h=m.exports,f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{display:"inline-block"}},[a("label",{staticClass:"radio-label"},[e._v("Cell Auto-Width: ")]),a("el-radio-group",{model:{value:e.autoWidth,callback:function(t){e.autoWidth=t},expression:"autoWidth"}},[a("el-radio",{attrs:{label:!0,border:""}},[e._v(" True ")]),a("el-radio",{attrs:{label:!1,border:""}},[e._v(" False ")])],1)],1)},v=[],g={props:{value:{type:Boolean,default:!0}},computed:{autoWidth:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}},b=g,w=Object(p["a"])(b,f,v,!1,null,null,null),y=w.exports,_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{display:"inline-block"}},[a("label",{staticClass:"radio-label"},[e._v("Book Type: ")]),a("el-select",{staticStyle:{width:"120px"},model:{value:e.bookType,callback:function(t){e.bookType=t},expression:"bookType"}},e._l(e.options,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1)},x=[],k={props:{value:{type:String,default:"xlsx"}},data:function(){return{options:["xlsx","csv","txt"]}},computed:{bookType:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}}},C=k,S=Object(p["a"])(C,_,x,!1,null,null,null),O=S.exports,E={name:"ExportExcel",components:{FilenameOption:h,AutoWidthOption:y,BookTypeOption:O},data:function(){return{list:null,listLoading:!0,downloadLoading:!1,filename:"",autoWidth:!0,bookType:"xlsx"}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.listLoading=!0,Object(s["c"])().then((function(t){e.list=t.data.items,e.listLoading=!1}))},handleDownload:function(){var e=this;this.downloadLoading=!0,Promise.resolve().then((function(){return Object(o["a"])(a("4bf8"))})).then((function(t){var a=["Id","Title","Author","Readings","Date"],n=["id","title","author","pageviews","display_time"],i=e.list,o=e.formatJson(n,i);t.export_json_to_excel({header:a,data:o,filename:e.filename,autoWidth:e.autoWidth,bookType:e.bookType}),e.downloadLoading=!1}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return"timestamp"===e?Object(r["e"])(t[e]):t[e]}))}))}}},T=E,j=(a("893e"),Object(p["a"])(T,n,i,!1,null,null,null));t["default"]=j.exports},"5fc8":function(e,t,a){},6006:function(e,t,a){"use strict";a("5fc8")},"61a9":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"chart-container"},[a("chart",{attrs:{height:"100%",width:"100%"}})],1)},i=[],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width},attrs:{id:e.id}})},s=[],r=a("313e"),l=a.n(r),c=a("f42c"),u={mixins:[c["a"]],props:{className:{type:String,default:"chart"},id:{type:String,default:"chart"},width:{type:String,default:"200px"},height:{type:String,default:"200px"}},data:function(){return{chart:null}},mounted:function(){this.initChart()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(document.getElementById(this.id)),this.chart.setOption({backgroundColor:"#394056",title:{top:20,text:"Requests",textStyle:{fontWeight:"normal",fontSize:16,color:"#F1F1F3"},left:"1%"},tooltip:{trigger:"axis",axisPointer:{lineStyle:{color:"#57617B"}}},legend:{top:20,icon:"rect",itemWidth:14,itemHeight:5,itemGap:13,data:["CMCC","CTCC","CUCC"],right:"4%",textStyle:{fontSize:12,color:"#F1F1F3"}},grid:{top:100,left:"2%",right:"2%",bottom:"2%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,axisLine:{lineStyle:{color:"#57617B"}},data:["13:00","13:05","13:10","13:15","13:20","13:25","13:30","13:35","13:40","13:45","13:50","13:55"]}],yAxis:[{type:"value",name:"(%)",axisTick:{show:!1},axisLine:{lineStyle:{color:"#57617B"}},axisLabel:{margin:10,textStyle:{fontSize:14}},splitLine:{lineStyle:{color:"#57617B"}}}],series:[{name:"CMCC",type:"line",smooth:!0,symbol:"circle",symbolSize:5,showSymbol:!1,lineStyle:{normal:{width:1}},areaStyle:{normal:{color:new l.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(137, 189, 27, 0.3)"},{offset:.8,color:"rgba(137, 189, 27, 0)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"rgb(137,189,27)",borderColor:"rgba(137,189,2,0.27)",borderWidth:12}},data:[220,182,191,134,150,120,110,125,145,122,165,122]},{name:"CTCC",type:"line",smooth:!0,symbol:"circle",symbolSize:5,showSymbol:!1,lineStyle:{normal:{width:1}},areaStyle:{normal:{color:new l.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0, 136, 212, 0.3)"},{offset:.8,color:"rgba(0, 136, 212, 0)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"rgb(0,136,212)",borderColor:"rgba(0,136,212,0.2)",borderWidth:12}},data:[120,110,125,145,122,165,122,220,182,191,134,150]},{name:"CUCC",type:"line",smooth:!0,symbol:"circle",symbolSize:5,showSymbol:!1,lineStyle:{normal:{width:1}},areaStyle:{normal:{color:new l.a.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(219, 50, 51, 0.3)"},{offset:.8,color:"rgba(219, 50, 51, 0)"}],!1),shadowColor:"rgba(0, 0, 0, 0.1)",shadowBlur:10}},itemStyle:{normal:{color:"rgb(219,50,51)",borderColor:"rgba(219,50,51,0.2)",borderWidth:12}},data:[220,182,125,145,122,191,134,150,120,110,165,122]}]})}}},d=u,p=a("2877"),m=Object(p["a"])(d,o,s,!1,null,null,null),h=m.exports,f={name:"LineChart",components:{Chart:h}},v=f,g=(a("a65d"),Object(p["a"])(v,n,i,!1,null,"47239e0b",null));t["default"]=g.exports},"61f7":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"e",(function(){return i})),a.d(t,"d",(function(){return o})),a.d(t,"c",(function(){return s})),a.d(t,"a",(function(){return r}));a("ac1f"),a("00b4"),a("498a"),a("d3b7"),a("25f0");function n(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){var t=["admin","editor"];return t.indexOf(e.trim())>=0}function o(e){var t=/^(https?|ftp):\/\/([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]?)(\.(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}|([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(\/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$/;return t.test(e)}function s(e){return"string"===typeof e||e instanceof String}function r(e){return"undefined"===typeof Array.isArray?"[object Array]"===Object.prototype.toString.call(e):Array.isArray(e)}},"64c4":function(e,t,a){},"64df":function(e,t,a){"use strict";a("7046")},6534:function(e,t,a){"use strict";a("f6f9")},65825:function(e,t,a){"use strict";a.r(t);var n=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-1",type:"warning"}})],1)},i=[],o=a("2877"),s={},r=Object(o["a"])(s,n,i,!0,null,null,null);t["default"]=r.exports},6599:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},6683:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},6724:function(e,t,a){"use strict";a("8d41");var n="@@wavesContext";function i(e,t){function a(a){var n=Object.assign({},t.value),i=Object.assign({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},n),o=i.ele;if(o){o.style.position="relative",o.style.overflow="hidden";var s=o.getBoundingClientRect(),r=o.querySelector(".waves-ripple");switch(r?r.className="waves-ripple":(r=document.createElement("span"),r.className="waves-ripple",r.style.height=r.style.width=Math.max(s.width,s.height)+"px",o.appendChild(r)),i.type){case"center":r.style.top=s.height/2-r.offsetHeight/2+"px",r.style.left=s.width/2-r.offsetWidth/2+"px";break;default:r.style.top=(a.pageY-s.top-r.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",r.style.left=(a.pageX-s.left-r.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return r.style.backgroundColor=i.color,r.className="waves-ripple z-active",!1}}return e[n]?e[n].removeHandle=a:e[n]={removeHandle:a},a}var o={bind:function(e,t){e.addEventListener("click",i(e,t),!1)},update:function(e,t){e.removeEventListener("click",e[n].removeHandle,!1),e.addEventListener("click",i(e,t),!1)},unbind:function(e){e.removeEventListener("click",e[n].removeHandle,!1),e[n]=null,delete e[n]}},s=function(e){e.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(s)),o.install=s;t["a"]=o},"6bed":function(e,t,a){},"6cfc":function(e,t,a){},"6d1b":function(e,t,a){},7046:function(e,t,a){},7066:function(e,t,a){"use strict";a("1d3d")},"708a":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},7214:function(e,t,a){},7320:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[e._m(0),a("el-button",{attrs:{icon:"el-icon-question",type:"primary"},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.guide(t)}}},[e._v(" Show Guide ")])],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aside",[e._v(" The guide page is useful for some people who entered the project for the first time. You can briefly introduce the features of the project. Demo is based on "),a("a",{attrs:{href:"https://github.com/kamranahmedse/driver.js",target:"_blank"}},[e._v("driver.js.")])])}],o=a("c24c"),s=a.n(o),r=(a("01d7"),[{element:"#hamburger-container",popover:{title:"Hamburger",description:"Open && Close sidebar",position:"bottom"}},{element:"#breadcrumb-container",popover:{title:"Breadcrumb",description:"Indicate the current page location",position:"bottom"}},{element:"#header-search",popover:{title:"Page Search",description:"Page search, quick navigation",position:"left"}},{element:"#screenfull",popover:{title:"Screenfull",description:"Set the page into fullscreen",position:"left"}},{element:"#size-select",popover:{title:"Switch Size",description:"Switch the system size",position:"left"}},{element:"#tags-view-container",popover:{title:"Tags view",description:"The history of the page you visited",position:"bottom"},padding:0}]),l=r,c={name:"Guide",data:function(){return{driver:null}},mounted:function(){this.driver=new s.a},methods:{guide:function(){this.driver.defineSteps(l),this.driver.start()}}},u=c,d=a("2877"),p=Object(d["a"])(u,n,i,!1,null,null,null);t["default"]=p.exports},"74b3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"dragTable",staticStyle:{width:"100%"},attrs:{data:e.list,"row-key":"id",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"ID",width:"65"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.id))])]}}])}),a("el-table-column",{attrs:{width:"180px",align:"center",label:"Date"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(e._f("parseTime")(n.timestamp,"{y}-{m}-{d} {h}:{i}")))])]}}])}),a("el-table-column",{attrs:{"min-width":"300px",label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.title))])]}}])}),a("el-table-column",{attrs:{width:"110px",align:"center",label:"Author"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.author))])]}}])}),a("el-table-column",{attrs:{width:"100px",label:"Importance"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return e._l(+n.importance,(function(e){return a("svg-icon",{key:e,staticClass:"icon-star",attrs:{"icon-class":"star"}})}))}}])}),a("el-table-column",{attrs:{align:"center",label:"Readings",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.pageviews))])]}}])}),a("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(n.status)}},[e._v(" "+e._s(n.status)+" ")])]}}])}),a("el-table-column",{attrs:{align:"center",label:"Drag",width:"80"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("svg-icon",{staticClass:"drag-handler",attrs:{"icon-class":"drag"}})]}}])})],1),a("div",{staticClass:"show-d"},[a("el-tag",[e._v("The default order :")]),e._v(" "+e._s(e.oldList)+" ")],1),a("div",{staticClass:"show-d"},[a("el-tag",[e._v("The after dragging order :")]),e._v(" "+e._s(e.newList)+" ")],1)],1)},i=[],o=a("c7eb"),s=a("1da1"),r=(a("d81d"),a("fb6a"),a("a434"),a("2423")),l=a("53fe"),c=a.n(l),u={name:"DragTable",filters:{statusFilter:function(e){var t={published:"success",draft:"info",deleted:"danger"};return t[e]}},data:function(){return{list:null,total:null,listLoading:!0,listQuery:{page:1,limit:10},sortable:null,oldList:[],newList:[]}},created:function(){this.getList()},methods:{getList:function(){var e=this;return Object(s["a"])(Object(o["a"])().mark((function t(){var a,n;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(r["c"])(e.listQuery);case 3:a=t.sent,n=a.data,e.list=n.items,e.total=n.total,e.listLoading=!1,e.oldList=e.list.map((function(e){return e.id})),e.newList=e.oldList.slice(),e.$nextTick((function(){e.setSort()}));case 11:case"end":return t.stop()}}),t)})))()},setSort:function(){var e=this,t=this.$refs.dragTable.$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0];this.sortable=c.a.create(t,{ghostClass:"sortable-ghost",setData:function(e){e.setData("Text","")},onEnd:function(t){var a=e.list.splice(t.oldIndex,1)[0];e.list.splice(t.newIndex,0,a);var n=e.newList.splice(t.oldIndex,1)[0];e.newList.splice(t.newIndex,0,n)}})}}},d=u,p=(a("40d6"),a("0015"),a("2877")),m=Object(p["a"])(d,n,i,!1,null,"5a77e163",null);t["default"]=m.exports},7509:function(e,t,a){"use strict";a.r(t);var n=a("2909"),i=a("3835"),o=a("b85c"),s=(a("d3b7"),a("caad"),a("2532"),a("b0c0"),a("ddb0"),a("a434"),a("4de4"),a("fb6a"),{visitedViews:[],cachedViews:[]}),r={ADD_VISITED_VIEW:function(e,t){e.visitedViews.some((function(e){return e.path===t.path}))||e.visitedViews.push(Object.assign({},t,{title:t.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,t){e.cachedViews.includes(t.name)||t.meta.noCache||e.cachedViews.push(t.name)},DEL_VISITED_VIEW:function(e,t){var a,n=Object(o["a"])(e.visitedViews.entries());try{for(n.s();!(a=n.n()).done;){var s=Object(i["a"])(a.value,2),r=s[0],l=s[1];if(l.path===t.path){e.visitedViews.splice(r,1);break}}}catch(c){n.e(c)}finally{n.f()}},DEL_CACHED_VIEW:function(e,t){var a=e.cachedViews.indexOf(t.name);a>-1&&e.cachedViews.splice(a,1)},DEL_OTHERS_VISITED_VIEWS:function(e,t){e.visitedViews=e.visitedViews.filter((function(e){return e.meta.affix||e.path===t.path}))},DEL_OTHERS_CACHED_VIEWS:function(e,t){var a=e.cachedViews.indexOf(t.name);e.cachedViews=a>-1?e.cachedViews.slice(a,a+1):[]},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter((function(e){return e.meta.affix}));e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,t){var a,n=Object(o["a"])(e.visitedViews);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i.path===t.path){i=Object.assign(i,t);break}}}catch(s){n.e(s)}finally{n.f()}}},l={addView:function(e,t){var a=e.dispatch;a("addVisitedView",t),a("addCachedView",t)},addVisitedView:function(e,t){var a=e.commit;a("ADD_VISITED_VIEW",t)},addCachedView:function(e,t){var a=e.commit;a("ADD_CACHED_VIEW",t)},delView:function(e,t){var a=e.dispatch,i=e.state;return new Promise((function(e){a("delVisitedView",t),a("delCachedView",t),e({visitedViews:Object(n["a"])(i.visitedViews),cachedViews:Object(n["a"])(i.cachedViews)})}))},delVisitedView:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_VISITED_VIEW",t),e(Object(n["a"])(i.visitedViews))}))},delCachedView:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_CACHED_VIEW",t),e(Object(n["a"])(i.cachedViews))}))},delOthersViews:function(e,t){var a=e.dispatch,i=e.state;return new Promise((function(e){a("delOthersVisitedViews",t),a("delOthersCachedViews",t),e({visitedViews:Object(n["a"])(i.visitedViews),cachedViews:Object(n["a"])(i.cachedViews)})}))},delOthersVisitedViews:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_OTHERS_VISITED_VIEWS",t),e(Object(n["a"])(i.visitedViews))}))},delOthersCachedViews:function(e,t){var a=e.commit,i=e.state;return new Promise((function(e){a("DEL_OTHERS_CACHED_VIEWS",t),e(Object(n["a"])(i.cachedViews))}))},delAllViews:function(e,t){var a=e.dispatch,i=e.state;return new Promise((function(e){a("delAllVisitedViews",t),a("delAllCachedViews",t),e({visitedViews:Object(n["a"])(i.visitedViews),cachedViews:Object(n["a"])(i.cachedViews)})}))},delAllVisitedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(n["a"])(a.visitedViews))}))},delAllCachedViews:function(e){var t=e.commit,a=e.state;return new Promise((function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(n["a"])(a.cachedViews))}))},updateVisitedView:function(e,t){var a=e.commit;a("UPDATE_VISITED_VIEW",t)}};t["default"]={namespaced:!0,state:s,mutations:r,actions:l}},7913:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"components-container"},[e._m(0),a("pan-thumb",{attrs:{image:e.image}}),a("el-button",{staticStyle:{position:"absolute",bottom:"15px","margin-left":"40px"},attrs:{type:"primary",icon:"el-icon-upload"},on:{click:function(t){e.imagecropperShow=!0}}},[e._v(" Change Avatar ")]),a("image-cropper",{directives:[{name:"show",rawName:"v-show",value:e.imagecropperShow,expression:"imagecropperShow"}],key:e.imagecropperKey,attrs:{width:300,height:300,url:"https://httpbin.org/post","lang-type":"en"},on:{close:e.close,"crop-upload-success":e.cropSuccess}})],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aside",[e._v("This is based on "),a("a",{staticClass:"link-type",attrs:{href:"//github.com/dai-siki/vue-image-crop-upload"}},[e._v(" vue-image-crop-upload")]),e._v(". Since I was using only the vue@1 version, and it is not compatible with mockjs at the moment, I modified it myself, and if you are going to use it, it is better to use official version. ")])}],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],staticClass:"vue-image-crop-upload"},[a("div",{staticClass:"vicp-wrap"},[a("div",{staticClass:"vicp-close",on:{click:e.off}},[a("i",{staticClass:"vicp-icon4"})]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.step,expression:"step == 1"}],staticClass:"vicp-step1"},[a("div",{staticClass:"vicp-drop-area",on:{dragleave:e.preventDefault,dragover:e.preventDefault,dragenter:e.preventDefault,click:e.handleClick,drop:e.handleChange}},[a("i",{directives:[{name:"show",rawName:"v-show",value:1!=e.loading,expression:"loading != 1"}],staticClass:"vicp-icon1"},[a("i",{staticClass:"vicp-icon1-arrow"}),a("i",{staticClass:"vicp-icon1-body"}),a("i",{staticClass:"vicp-icon1-bottom"})]),a("span",{directives:[{name:"show",rawName:"v-show",value:1!==e.loading,expression:"loading !== 1"}],staticClass:"vicp-hint"},[e._v(e._s(e.lang.hint))]),a("span",{directives:[{name:"show",rawName:"v-show",value:!e.isSupported,expression:"!isSupported"}],staticClass:"vicp-no-supported-hint"},[e._v(e._s(e.lang.noSupported))]),1==e.step?a("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileinput",attrs:{type:"file"},on:{change:e.handleChange}}):e._e()]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.hasError,expression:"hasError"}],staticClass:"vicp-error"},[a("i",{staticClass:"vicp-icon2"}),e._v(" "+e._s(e.errorMsg)+" ")]),a("div",{staticClass:"vicp-operate"},[a("a",{on:{click:e.off,mousedown:e.ripple}},[e._v(e._s(e.lang.btn.off))])])]),2==e.step?a("div",{staticClass:"vicp-step2"},[a("div",{staticClass:"vicp-crop"},[a("div",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticClass:"vicp-crop-left"},[a("div",{staticClass:"vicp-img-container"},[a("img",{ref:"img",staticClass:"vicp-img",style:e.sourceImgStyle,attrs:{src:e.sourceImgUrl,draggable:"false"},on:{drag:e.preventDefault,dragstart:e.preventDefault,dragend:e.preventDefault,dragleave:e.preventDefault,dragover:e.preventDefault,dragenter:e.preventDefault,drop:e.preventDefault,touchstart:e.imgStartMove,touchmove:e.imgMove,touchend:e.createImg,touchcancel:e.createImg,mousedown:e.imgStartMove,mousemove:e.imgMove,mouseup:e.createImg,mouseout:e.createImg}}),a("div",{staticClass:"vicp-img-shade vicp-img-shade-1",style:e.sourceImgShadeStyle}),a("div",{staticClass:"vicp-img-shade vicp-img-shade-2",style:e.sourceImgShadeStyle})]),a("div",{staticClass:"vicp-range"},[a("input",{attrs:{type:"range",step:"1",min:"0",max:"100"},domProps:{value:e.scale.range},on:{input:e.zoomChange}}),a("i",{staticClass:"vicp-icon5",on:{mousedown:e.startZoomSub,mouseout:e.endZoomSub,mouseup:e.endZoomSub}}),a("i",{staticClass:"vicp-icon6",on:{mousedown:e.startZoomAdd,mouseout:e.endZoomAdd,mouseup:e.endZoomAdd}})]),e.noRotate?e._e():a("div",{staticClass:"vicp-rotate"},[a("i",{on:{mousedown:e.startRotateLeft,mouseout:e.endRotate,mouseup:e.endRotate}},[e._v("↺")]),a("i",{on:{mousedown:e.startRotateRight,mouseout:e.endRotate,mouseup:e.endRotate}},[e._v("↻")])])]),a("div",{directives:[{name:"show",rawName:"v-show",value:!0,expression:"true"}],staticClass:"vicp-crop-right"},[a("div",{staticClass:"vicp-preview"},[e.noSquare?e._e():a("div",{staticClass:"vicp-preview-item"},[a("img",{style:e.previewStyle,attrs:{src:e.createImgUrl}}),a("span",[e._v(e._s(e.lang.preview))])]),e.noCircle?e._e():a("div",{staticClass:"vicp-preview-item vicp-preview-item-circle"},[a("img",{style:e.previewStyle,attrs:{src:e.createImgUrl}}),a("span",[e._v(e._s(e.lang.preview))])])])])]),a("div",{staticClass:"vicp-operate"},[a("a",{on:{click:function(t){return e.setStep(1)},mousedown:e.ripple}},[e._v(e._s(e.lang.btn.back))]),a("a",{staticClass:"vicp-operate-btn",on:{click:e.prepareUpload,mousedown:e.ripple}},[e._v(e._s(e.lang.btn.save))])])]):e._e(),3==e.step?a("div",{staticClass:"vicp-step3"},[a("div",{staticClass:"vicp-upload"},[a("span",{directives:[{name:"show",rawName:"v-show",value:1===e.loading,expression:"loading === 1"}],staticClass:"vicp-loading"},[e._v(e._s(e.lang.loading))]),a("div",{staticClass:"vicp-progress-wrap"},[a("span",{directives:[{name:"show",rawName:"v-show",value:1===e.loading,expression:"loading === 1"}],staticClass:"vicp-progress",style:e.progressStyle})]),a("div",{directives:[{name:"show",rawName:"v-show",value:e.hasError,expression:"hasError"}],staticClass:"vicp-error"},[a("i",{staticClass:"vicp-icon2"}),e._v(" "+e._s(e.errorMsg)+" ")]),a("div",{directives:[{name:"show",rawName:"v-show",value:2===e.loading,expression:"loading === 2"}],staticClass:"vicp-success"},[a("i",{staticClass:"vicp-icon3"}),e._v(" "+e._s(e.lang.success)+" ")])]),a("div",{staticClass:"vicp-operate"},[a("a",{on:{click:function(t){return e.setStep(2)},mousedown:e.ripple}},[e._v(e._s(e.lang.btn.back))]),a("a",{on:{click:e.off,mousedown:e.ripple}},[e._v(e._s(e.lang.btn.close))])])]):e._e(),a("canvas",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"canvas",attrs:{width:e.width,height:e.height}})])])},s=[],r=a("53ca"),l=(a("a9e3"),a("d3b7"),a("159b"),a("b64b"),a("b775")),c={zh:{hint:"点击,或拖动图片至此处",loading:"正在上传……",noSupported:"浏览器不支持该功能,请使用IE10以上或其他现在浏览器!",success:"上传成功",fail:"图片上传失败",preview:"头像预览",btn:{off:"取消",close:"关闭",back:"上一步",save:"保存"},error:{onlyImg:"仅限图片格式",outOfSize:"单文件大小不能超过 ",lowestPx:"图片最低像素为(宽*高):"}},"zh-tw":{hint:"點擊,或拖動圖片至此處",loading:"正在上傳……",noSupported:"瀏覽器不支持該功能,請使用IE10以上或其他現代瀏覽器!",success:"上傳成功",fail:"圖片上傳失敗",preview:"頭像預覽",btn:{off:"取消",close:"關閉",back:"上一步",save:"保存"},error:{onlyImg:"僅限圖片格式",outOfSize:"單文件大小不能超過 ",lowestPx:"圖片最低像素為(寬*高):"}},en:{hint:"Click or drag the file here to upload",loading:"Uploading…",noSupported:"Browser is not supported, please use IE10+ or other browsers",success:"Upload success",fail:"Upload failed",preview:"Preview",btn:{off:"Cancel",close:"Close",back:"Back",save:"Save"},error:{onlyImg:"Image only",outOfSize:"Image exceeds size limit: ",lowestPx:"Image's size is too low. Expected at least: "}},ro:{hint:"Atinge sau trage fișierul aici",loading:"Se încarcă",noSupported:"Browser-ul tău nu suportă acest feature. Te rugăm încearcă cu alt browser.",success:"S-a încărcat cu succes",fail:"A apărut o problemă la încărcare",preview:"Previzualizează",btn:{off:"Anulează",close:"Închide",back:"Înapoi",save:"Salvează"},error:{onlyImg:"Doar imagini",outOfSize:"Imaginea depășește limita de: ",loewstPx:"Imaginea este prea mică; Minim: "}},ru:{hint:"Нажмите, или перетащите файл в это окно",loading:"Загружаю……",noSupported:"Ваш браузер не поддерживается, пожалуйста, используйте IE10 + или другие браузеры",success:"Загрузка выполнена успешно",fail:"Ошибка загрузки",preview:"Предпросмотр",btn:{off:"Отменить",close:"Закрыть",back:"Назад",save:"Сохранить"},error:{onlyImg:"Только изображения",outOfSize:"Изображение превышает предельный размер: ",lowestPx:"Минимальный размер изображения: "}},"pt-br":{hint:"Clique ou arraste o arquivo aqui para carregar",loading:"Carregando…",noSupported:"Browser não suportado, use o IE10+ ou outro browser",success:"Sucesso ao carregar imagem",fail:"Falha ao carregar imagem",preview:"Pré-visualizar",btn:{off:"Cancelar",close:"Fechar",back:"Voltar",save:"Salvar"},error:{onlyImg:"Apenas imagens",outOfSize:"A imagem excede o limite de tamanho: ",lowestPx:"O tamanho da imagem é muito pequeno. Tamanho mínimo: "}},fr:{hint:"Cliquez ou glissez le fichier ici.",loading:"Téléchargement…",noSupported:"Votre navigateur n'est pas supporté. Utilisez IE10 + ou un autre navigateur s'il vous plaît.",success:"Téléchargement réussit",fail:"Téléchargement echoué",preview:"Aperçu",btn:{off:"Annuler",close:"Fermer",back:"Retour",save:"Enregistrer"},error:{onlyImg:"Image uniquement",outOfSize:"L'image sélectionnée dépasse la taille maximum: ",lowestPx:"L'image sélectionnée est trop petite. Dimensions attendues: "}},nl:{hint:"Klik hier of sleep een afbeelding in dit vlak",loading:"Uploaden…",noSupported:"Je browser wordt helaas niet ondersteund. Gebruik IE10+ of een andere browser.",success:"Upload succesvol",fail:"Upload mislukt",preview:"Voorbeeld",btn:{off:"Annuleren",close:"Sluiten",back:"Terug",save:"Opslaan"},error:{onlyImg:"Alleen afbeeldingen",outOfSize:"De afbeelding is groter dan: ",lowestPx:"De afbeelding is te klein! Minimale afmetingen: "}},tr:{hint:"Tıkla veya yüklemek istediğini buraya sürükle",loading:"Yükleniyor…",noSupported:"Tarayıcı desteklenmiyor, lütfen IE10+ veya farklı tarayıcı kullanın",success:"Yükleme başarılı",fail:"Yüklemede hata oluştu",preview:"Önizle",btn:{off:"İptal",close:"Kapat",back:"Geri",save:"Kaydet"},error:{onlyImg:"Sadece resim",outOfSize:"Resim yükleme limitini aşıyor: ",lowestPx:"Resmin boyutu çok küçük. En az olması gereken: "}},"es-MX":{hint:"Selecciona o arrastra una imagen",loading:"Subiendo...",noSupported:"Tu navegador no es soportado, porfavor usa IE10+ u otros navegadores mas recientes",success:"Subido exitosamente",fail:"Sucedió un error",preview:"Vista previa",btn:{off:"Cancelar",close:"Cerrar",back:"Atras",save:"Guardar"},error:{onlyImg:"Unicamente imagenes",outOfSize:"La imagen excede el tamaño maximo:",lowestPx:"La imagen es demasiado pequeño. Se espera por lo menos:"}},de:{hint:"Klick hier oder zieh eine Datei hier rein zum Hochladen",loading:"Hochladen…",noSupported:"Browser wird nicht unterstützt, bitte verwende IE10+ oder andere Browser",success:"Upload erfolgreich",fail:"Upload fehlgeschlagen",preview:"Vorschau",btn:{off:"Abbrechen",close:"Schließen",back:"Zurück",save:"Speichern"},error:{onlyImg:"Nur Bilder",outOfSize:"Das Bild ist zu groß: ",lowestPx:"Das Bild ist zu klein. Mindestens: "}},ja:{hint:"クリック・ドラッグしてファイルをアップロード",loading:"アップロード中...",noSupported:"このブラウザは対応されていません。IE10+かその他の主要ブラウザをお使いください。",success:"アップロード成功",fail:"アップロード失敗",preview:"プレビュー",btn:{off:"キャンセル",close:"閉じる",back:"戻る",save:"保存"},error:{onlyImg:"画像のみ",outOfSize:"画像サイズが上限を超えています。上限: ",lowestPx:"画像が小さすぎます。最小サイズ: "}}},u={jpg:"image/jpeg",png:"image/png",gif:"image/gif",svg:"image/svg+xml",psd:"image/photoshop"},d=(a("ace4"),a("5cc6"),a("9a8c"),a("a975"),a("735e"),a("c1ac"),a("d139"),a("3a7b"),a("d5d6"),a("82f8"),a("e91f"),a("60bd"),a("5f96"),a("3280"),a("3fcc"),a("ca91"),a("25a1"),a("cd26"),a("3c5d"),a("2954"),a("649e"),a("219c"),a("170b"),a("b39a"),a("72f7"),function(e,t){e=e.split(",")[1],e=window.atob(e);for(var a=new Uint8Array(e.length),n=0;no&&(u=i.width/e,c=i.width/a,r=(i.height-c)/2),{scale:u,x:s,y:r,width:l,height:c}},sourceImgShadeStyle:function(){var e=this.sourceImgMasking,t=this.sourceImgContainer,a=t,n=e,i=n.width===a.width?n.width:(a.width-n.width)/2,o=n.height===a.height?n.height:(a.height-n.height)/2;return{width:i+"px",height:o+"px"}},previewStyle:function(){var e=this.ratio,t=this.previewContainer,a=t,n=a.width,i=a.height,o=n/i;return eo&&(i=a.width/e),{width:n+"px",height:i+"px"}}},watch:{value:function(e){e&&1!==this.loading&&this.reset()}},created:function(){document.addEventListener("keyup",this.closeHandler)},destroyed:function(){document.removeEventListener("keyup",this.closeHandler)},methods:{ripple:function(e){p(e)},off:function(){var e=this;setTimeout((function(){e.$emit("input",!1),e.$emit("close"),3===e.step&&2===e.loading&&e.setStep(1)}),200)},setStep:function(e){var t=this;setTimeout((function(){t.step=e}),200)},preventDefault:function(e){return e.preventDefault(),!1},handleClick:function(e){1!==this.loading&&e.target!==this.$refs.fileinput&&(e.preventDefault(),document.activeElement!==this.$refs&&this.$refs.fileinput.click())},handleChange:function(e){if(e.preventDefault(),1!==this.loading){var t=e.target.files||e.dataTransfer.files;this.reset(),this.checkFile(t[0])&&this.setSourceImg(t[0])}},checkFile:function(e){var t=this.lang,a=this.maxSize;return-1===e.type.indexOf("image")?(this.hasError=!0,this.errorMsg=t.error.onlyImg,!1):!(e.size/1024>a)||(this.hasError=!0,this.errorMsg=t.error.outOfSize+a+"kb",!1)},reset:function(){this.loading=0,this.hasError=!1,this.errorMsg="",this.progress=0},setSourceImg:function(e){var t=this,a=new FileReader;a.onload=function(e){t.sourceImgUrl=a.result,t.startCrop()},a.readAsDataURL(e)},startCrop:function(){var e=this,t=this.width,a=this.height,n=this.ratio,i=this.scale,o=this.sourceImgUrl,s=this.sourceImgMasking,r=this.lang,l=s,c=new Image;c.src=o,c.onload=function(){var o=c.naturalWidth,s=c.naturalHeight,u=o/s,d=l.width,p=l.height,m=0,h=0;if(ou&&(p=d/u,h=(l.height-p)/2),n0&&(f=0),v>0&&(v=0),f=100?100:++a.range;t.zoomImg(n),setTimeout((function(){e()}),60)}};n()},endZoomAdd:function(e){this.scale.zoomAddOn=!1},startZoomSub:function(e){var t=this,a=this.scale;a.zoomSubOn=!0;var n=function e(){if(a.zoomSubOn){var n=a.range<=0?0:--a.range;t.zoomImg(n),setTimeout((function(){e()}),60)}};n()},endZoomSub:function(e){var t=this.scale;t.zoomSubOn=!1},zoomChange:function(e){this.zoomImg(e.target.value)},zoomImg:function(e){var t=this,a=this.sourceImgMasking,n=this.scale,i=n.maxWidth,o=n.maxHeight,s=n.minWidth,r=n.minHeight,l=n.width,c=n.height,u=n.x,d=n.y,p=a,m=p.width,h=p.height,f=s+(i-s)*e/100,v=r+(o-r)*e/100,g=m/2-f/l*(m/2-u),b=h/2-v/c*(h/2-d);g>0&&(g=0),b>0&&(b=0),g'});s.a.add(r);t["default"]=r},"817d9":function(e,t,a){"use strict";a("b237")},8256:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tinymce-container",class:{fullscreen:e.fullscreen},style:{width:e.containerWidth}},[a("textarea",{staticClass:"tinymce-textarea",attrs:{id:e.tinymceId}}),e._v(" "),a("div",{staticClass:"editor-custom-btn-container"},[a("editorImage",{staticClass:"editor-upload-btn",attrs:{color:"#1890ff"},on:{successCBK:e.imageSuccessCBK}})],1)])},i=[],o=(a("b680"),a("a9e3"),a("ac1f"),a("00b4"),a("d3b7"),a("159b"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"upload-container"},[a("el-button",{style:{background:e.color,borderColor:e.color},attrs:{icon:"el-icon-upload",size:"mini",type:"primary"},on:{click:function(t){e.dialogVisible=!0}}},[e._v(" upload ")]),a("el-dialog",{attrs:{visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-upload",{staticClass:"editor-slide-upload",attrs:{multiple:!0,"file-list":e.fileList,"show-file-list":!0,"on-remove":e.handleRemove,"on-success":e.handleSuccess,"before-upload":e.beforeUpload,action:"https://httpbin.org/post","list-type":"picture-card"}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v(" Click upload ")])],1),a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v(" Confirm ")])],1)],1)}),s=[],r=(a("b64b"),a("d81d"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),{name:"EditorSlideUpload",props:{color:{type:String,default:"#1890ff"}},data:function(){return{dialogVisible:!1,listObj:{},fileList:[]}},methods:{checkAllSuccess:function(){var e=this;return Object.keys(this.listObj).every((function(t){return e.listObj[t].hasSuccess}))},handleSubmit:function(){var e=this,t=Object.keys(this.listObj).map((function(t){return e.listObj[t]}));this.checkAllSuccess()?(this.$emit("successCBK",t),this.listObj={},this.fileList=[],this.dialogVisible=!1):this.$message("Please wait for all images to be uploaded successfully. If there is a network problem, please refresh the page and upload again!")},handleSuccess:function(e,t){for(var a=t.uid,n=Object.keys(this.listObj),i=0,o=n.length;i0?this.toolbar:f,menubar:this.menubar,plugins:m,end_container_on_empty_block:!0,powerpaste_word_import:"clean",code_dialog_height:450,code_dialog_width:1e3,advlist_bullet_styles:"square",advlist_number_styles:"default",imagetools_cors_hosts:["www.tinymce.com","codepen.io"],default_link_target:"_blank",link_title:!1,nonbreaking_force_tab:!0,init_instance_callback:function(a){t.value&&a.setContent(t.value),t.hasInit=!0,a.on("NodeChange Change KeyUp SetContent",(function(){e.hasChange=!0,e.$emit("input",a.getContent())}))},setup:function(e){e.on("FullscreenStateChanged",(function(e){t.fullscreen=e.state}))},convert_urls:!1})},destroyTinymce:function(){var e=window.tinymce.get(this.tinymceId);this.fullscreen&&e.execCommand("mceFullScreen"),e&&e.destroy()},setContent:function(e){window.tinymce.get(this.tinymceId).setContent(e)},getContent:function(){window.tinymce.get(this.tinymceId).getContent()},imageSuccessCBK:function(e){var t=this;e.forEach((function(e){return window.tinymce.get(t.tinymceId).insertContent('
'))}))}}},k=x,C=(a("2696"),Object(c["a"])(k,n,i,!1,null,"6c71010c",null));t["a"]=C.exports},"828d":function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return o}));var n=a("b775");function i(e){return Object(n["a"])({url:"/vue-element-admin/search/user",method:"get",params:{name:e}})}function o(e){return Object(n["a"])({url:"/vue-element-admin/transaction/list",method:"get",params:e})}},"82b1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"chart-container"},[a("chart",{attrs:{height:"100%",width:"100%"}})],1)},i=[],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width},attrs:{id:e.id}})},s=[],r=a("313e"),l=a.n(r),c=a("f42c"),u={mixins:[c["a"]],props:{className:{type:String,default:"chart"},id:{type:String,default:"chart"},width:{type:String,default:"200px"},height:{type:String,default:"200px"}},data:function(){return{chart:null}},mounted:function(){this.initChart()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=l.a.init(document.getElementById(this.id));for(var e=[],t=[],a=[],n=0;n<50;n++)e.push(n),t.push(5*(Math.sin(n/5)*(n/5-10)+n/6)),a.push(3*(Math.sin(n/5)*(n/5+10)+n/6));this.chart.setOption({backgroundColor:"#08263a",grid:{left:"5%",right:"5%"},xAxis:[{show:!1,data:e},{show:!1,data:e}],visualMap:{show:!1,min:0,max:50,dimension:0,inRange:{color:["#4a657a","#308e92","#b1cfa5","#f5d69f","#f5898b","#ef5055"]}},yAxis:{axisLine:{show:!1},axisLabel:{textStyle:{color:"#4a657a"}},splitLine:{show:!0,lineStyle:{color:"#08263f"}},axisTick:{show:!1}},series:[{name:"back",type:"bar",data:a,z:1,itemStyle:{normal:{opacity:.4,barBorderRadius:5,shadowBlur:3,shadowColor:"#111"}}},{name:"Simulate Shadow",type:"line",data:t,z:2,showSymbol:!1,animationDelay:0,animationEasing:"linear",animationDuration:1200,lineStyle:{normal:{color:"transparent"}},areaStyle:{normal:{color:"#08263a",shadowBlur:50,shadowColor:"#000"}}},{name:"front",type:"bar",data:t,xAxisIndex:1,z:3,itemStyle:{normal:{barBorderRadius:5}}}],animationEasing:"elasticOut",animationEasingUpdate:"elasticOut",animationDelay:function(e){return 20*e},animationDelayUpdate:function(e){return 20*e}})}}},d=u,p=a("2877"),m=Object(p["a"])(d,o,s,!1,null,null,null),h=m.exports,f={name:"KeyboardChart",components:{Chart:h}},v=f,g=(a("148f"),Object(p["a"])(v,n,i,!1,null,"98dd0a84",null));t["default"]=g.exports},8378:function(e,t,a){"use strict";a("d817")},"83d6":function(e,t){e.exports={title:"Vue Element Admin",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!1,errorLog:"production"}},8644:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"87e0":function(e,t,a){},"893e":function(e,t,a){"use strict";a("a74a")},"896c":function(e,t,a){},"89a2":function(e,t,a){"use strict";a("1ef6")},"89f5":function(e,t,a){"use strict";a("8b67")},"8a1f":function(e,t,a){},"8a60":function(e,t,a){var n=a("7037").default;function i(e){var t=decodeURIComponent(e.split("?")[1]).replace(/\+/g," ");if(!t)return{};var a={},n=t.split("&");return n.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var n=e.substring(0,t),i=e.substring(t+1,e.length);a[n]=i}})),a}function o(e){if(!e&&"object"!==n(e))throw new Error("error arguments","deepClone");var t=e.constructor===Array?[]:{};return Object.keys(e).forEach((function(a){e[a]&&"object"===n(e[a])?t[a]=o(e[a]):t[a]=e[a]})),t}a("ac1f"),a("5319"),a("d3b7"),a("159b"),a("b64b"),e.exports={param2Obj:i,deepClone:o}},"8a81":function(e,t,a){},"8aa6":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8b67":function(e,t,a){},"8d1d":function(e,t,a){"use strict";a("bcaf")},"8d3b":function(e,t,a){"use strict";a("9250")},"8d41":function(e,t,a){},"8d69":function(e,t,a){},"8d8b":function(e,t,a){"use strict";a.r(t);var n=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-3",type:"success"}})],1)},i=[],o=a("2877"),s={},r=Object(o["a"])(s,n,i,!0,null,null,null);t["default"]=r.exports},"8e8d":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"8ee8":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticStyle:{"margin-bottom":"15px"}},[e._v(" Your roles: "+e._s(e.roles)+" ")]),e._v(" Switch roles: "),a("el-radio-group",{model:{value:e.switchRoles,callback:function(t){e.switchRoles=t},expression:"switchRoles"}},[a("el-radio-button",{attrs:{label:"editor"}}),a("el-radio-button",{attrs:{label:"admin"}})],1)],1)},i=[],o={computed:{roles:function(){return this.$store.getters.roles},switchRoles:{get:function(){return this.roles[0]},set:function(e){var t=this;this.$store.dispatch("user/changeRoles",e).then((function(){t.$emit("change")}))}}}},s=o,r=a("2877"),l=Object(r["a"])(s,n,i,!1,null,null,null);t["a"]=l.exports},"8fb7":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"90fb":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"912e":function(e,t,a){"use strict";a("9932")},"91b3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-1",type:"success"}},[a("router-view")],1)],1)},i=[],o=a("2877"),s={},r=Object(o["a"])(s,n,i,!1,null,null,null);t["default"]=r.exports},9207:function(e,t,a){},9250:function(e,t,a){},9366:function(e,t,a){"use strict";a("df7cb")},"93cd":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9406:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-container"},[a(e.currentRole,{tag:"component"})],1)},i=[],o=a("5530"),s=(a("caad"),a("2532"),a("2f62")),r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-editor-container"},[a("github-corner",{staticClass:"github-corner"}),a("panel-group",{on:{handleSetLineChartData:e.handleSetLineChartData}}),a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("line-chart",{attrs:{"chart-data":e.lineChartData}})],1),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("raddar-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart")],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("bar-chart")],1)])],1),a("el-row",{attrs:{gutter:8}},[a("el-col",{staticStyle:{"padding-right":"8px","margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:24},md:{span:24},lg:{span:12},xl:{span:12}}},[a("transaction-table")],1),a("el-col",{staticStyle:{"margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:12},md:{span:12},lg:{span:6},xl:{span:6}}},[a("todo-list")],1),a("el-col",{staticStyle:{"margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:12},md:{span:12},lg:{span:6},xl:{span:6}}},[a("box-card")],1)],1)],1)},l=[],c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{staticClass:"github-corner",attrs:{href:"https://github.com/PanJiaChen/vue-element-admin",target:"_blank","aria-label":"View source on Github"}},[a("svg",{staticStyle:{fill:"#40c9c6",color:"#fff"},attrs:{width:"80",height:"80",viewBox:"0 0 250 250","aria-hidden":"true"}},[a("path",{attrs:{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}}),a("path",{staticClass:"octo-arm",staticStyle:{"transform-origin":"130px 106px"},attrs:{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor"}}),a("path",{staticClass:"octo-body",attrs:{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor"}})])])},u=[],d=(a("2af2"),a("2877")),p={},m=Object(d["a"])(p,c,u,!1,null,"09fe1acc",null),h=m.exports,f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("newVisitis")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-people"},[a("svg-icon",{attrs:{"icon-class":"peoples","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" New Visits ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":102400,duration:2600}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("messages")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message"},[a("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" Messages ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":81212,duration:3e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("purchases")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money"},[a("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" Purchases ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":9280,duration:3200}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(t){return e.handleSetLineChartData("shoppings")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-shopping"},[a("svg-icon",{attrs:{"icon-class":"shopping","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[e._v(" Shoppings ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":13600,duration:3600}})],1)])])],1)},v=[],g=a("ec1b"),b=a.n(g),w={components:{CountTo:b.a},methods:{handleSetLineChartData:function(e){this.$emit("handleSetLineChartData",e)}}},y=w,_=(a("817d9"),Object(d["a"])(y,f,v,!1,null,"6723c96e",null)),x=_.exports,k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},C=[],S=a("313e"),O=a.n(S),E=a("ed08"),T={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var e=this;this.$_resizeHandler=Object(E["b"])((function(){e.chart&&e.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(e){"width"===e.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}};a("817d");var j={mixins:[T],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(e){this.setOptions(e)}}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=O.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.expectedData,a=e.actualData;this.chart.setOption({xAxis:{data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["expected","actual"]},series:[{name:"expected",itemStyle:{normal:{color:"#FF005A",lineStyle:{color:"#FF005A",width:2}}},smooth:!0,type:"line",data:t,animationDuration:2800,animationEasing:"cubicInOut"},{name:"actual",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:a,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},D=j,z=Object(d["a"])(D,k,C,!1,null,null,null),L=z.exports,$=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},V=[];a("817d");var P=3e3,I={mixins:[T],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=O.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},radar:{radius:"66%",center:["50%","42%"],splitNumber:8,splitArea:{areaStyle:{color:"rgba(127,95,132,.3)",opacity:1,shadowBlur:45,shadowColor:"rgba(0,0,0,.5)",shadowOffsetX:0,shadowOffsetY:15}},indicator:[{name:"Sales",max:1e4},{name:"Administration",max:2e4},{name:"Information Technology",max:2e4},{name:"Customer Support",max:2e4},{name:"Development",max:2e4},{name:"Marketing",max:2e4}]},legend:{left:"center",bottom:"10",data:["Allocated Budget","Expected Spending","Actual Spending"]},series:[{type:"radar",symbolSize:0,areaStyle:{normal:{shadowBlur:13,shadowColor:"rgba(0,0,0,.2)",shadowOffsetX:0,shadowOffsetY:10,opacity:1}},data:[{value:[5e3,7e3,12e3,11e3,15e3,14e3],name:"Allocated Budget"},{value:[4e3,9e3,15e3,15e3,13e3,11e3],name:"Expected Spending"},{value:[5500,11e3,12e3,15e3,12e3,12e3],name:"Actual Spending"}],animationDuration:P}]})}}},M=I,A=Object(d["a"])(M,$,V,!1,null,null,null),H=A.exports,R=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},B=[];a("817d");var N={mixins:[T],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=O.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:["Industries","Technology","Forex","Gold","Forecasts"]},series:[{name:"WEEKLY WRITE ARTICLES",type:"pie",roseType:"radius",radius:[15,95],center:["50%","38%"],data:[{value:320,name:"Industries"},{value:240,name:"Technology"},{value:149,name:"Forex"},{value:100,name:"Gold"},{value:59,name:"Forecasts"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},F=N,U=Object(d["a"])(F,R,B,!1,null,null,null),q=U.exports,W=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.className,style:{height:e.height,width:e.width}})},J=[];a("817d");var G=6e3,Q={mixins:[T],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var e=this;this.$nextTick((function(){e.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=O.a.init(this.$el,"macarons"),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:10,left:"2%",right:"2%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],axisTick:{alignWithLabel:!0}}],yAxis:[{type:"value",axisTick:{show:!1}}],series:[{name:"pageA",type:"bar",stack:"vistors",barWidth:"60%",data:[79,52,200,334,390,330,220],animationDuration:G},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:G},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:G}]})}}},K=Q,Z=Object(d["a"])(K,W,J,!1,null,null,null),Y=Z.exports,X=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{staticStyle:{width:"100%","padding-top":"15px"},attrs:{data:e.list}},[a("el-table-column",{attrs:{label:"Order_No","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("orderNoFilter")(t.row.order_no))+" ")]}}])}),a("el-table-column",{attrs:{label:"Price",width:"195",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" ¥"+e._s(e._f("toThousandFilter")(t.row.price))+" ")]}}])}),a("el-table-column",{attrs:{label:"Status",width:"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(n.status)}},[e._v(" "+e._s(n.status)+" ")])]}}])})],1)},ee=[],te=(a("fb6a"),a("828d")),ae={filters:{statusFilter:function(e){var t={success:"success",pending:"danger"};return t[e]},orderNoFilter:function(e){return e.substring(0,30)}},data:function(){return{list:null}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;Object(te["b"])().then((function(t){e.list=t.data.items.slice(0,8)}))}}},ne=ae,ie=Object(d["a"])(ne,X,ee,!1,null,null,null),oe=ie.exports,se=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.addTodo(t)}}})]),a("section",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:e.allChecked},on:{change:function(t){return e.toggleAll({done:!e.allChecked})}}}),a("label",{attrs:{for:"toggle-all"}}),a("ul",{staticClass:"todo-list"},e._l(e.filteredTodos,(function(t,n){return a("todo",{key:n,attrs:{todo:t},on:{toggleTodo:e.toggleTodo,editTodo:e.editTodo,deleteTodo:e.deleteTodo}})})),1)]),a("footer",{directives:[{name:"show",rawName:"v-show",value:e.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[e._v(e._s(e.remaining))]),e._v(" "+e._s(e._f("pluralize")(e.remaining,"item"))+" left ")]),a("ul",{staticClass:"filters"},e._l(e.filters,(function(t,n){return a("li",{key:n},[a("a",{class:{selected:e.visibility===n},on:{click:function(t){t.preventDefault(),e.visibility=n}}},[e._v(e._s(e._f("capitalize")(n)))])])})),0)])])},re=[],le=(a("4de4"),a("d3b7"),a("e9c4"),a("498a"),a("a434"),a("159b"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"todo",class:{completed:e.todo.done,editing:e.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:e.todo.done},on:{change:function(t){return e.toggleTodo(e.todo)}}}),a("label",{domProps:{textContent:e._s(e.todo.text)},on:{dblclick:function(t){e.editing=!0}}}),a("button",{staticClass:"destroy",on:{click:function(t){return e.deleteTodo(e.todo)}}})]),a("input",{directives:[{name:"show",rawName:"v-show",value:e.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:e.editing,expression:"editing"}],staticClass:"edit",domProps:{value:e.todo.text},on:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.doneEdit(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.cancelEdit(t)}],blur:e.doneEdit}})])}),ce=[],ue={name:"Todo",directives:{focus:function(e,t,a){var n=t.value,i=a.context;n&&i.$nextTick((function(){e.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(e){this.$emit("deleteTodo",e)},editTodo:function(e){var t=e.todo,a=e.value;this.$emit("editTodo",{todo:t,value:a})},toggleTodo:function(e){this.$emit("toggleTodo",e)},doneEdit:function(e){var t=e.target.value.trim(),a=this.todo;t?this.editing&&(this.editTodo({todo:a,value:t}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(e){e.target.value=this.todo.text,this.editing=!1}}},de=ue,pe=Object(d["a"])(de,le,ce,!1,null,null,null),me=pe.exports,he="todos",fe={all:function(e){return e},active:function(e){return e.filter((function(e){return!e.done}))},completed:function(e){return e.filter((function(e){return e.done}))}},ve=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],ge={components:{Todo:me},filters:{pluralize:function(e,t){return 1===e?t:t+"s"},capitalize:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},data:function(){return{visibility:"all",filters:fe,todos:ve}},computed:{allChecked:function(){return this.todos.every((function(e){return e.done}))},filteredTodos:function(){return fe[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(e){return!e.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(he,JSON.stringify(this.todos))},addTodo:function(e){var t=e.target.value;t.trim()&&(this.todos.push({text:t,done:!1}),this.setLocalStorage()),e.target.value=""},toggleTodo:function(e){e.done=!e.done,this.setLocalStorage()},deleteTodo:function(e){this.todos.splice(this.todos.indexOf(e),1),this.setLocalStorage()},editTodo:function(e){var t=e.todo,a=e.value;t.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(e){return!e.done})),this.setLocalStorage()},toggleAll:function(e){var t=this,a=e.done;this.todos.forEach((function(e){e.done=a,t.setLocalStorage()}))}}},be=ge,we=(a("3511"),Object(d["a"])(be,se,re,!1,null,null,null)),ye=we.exports,_e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticClass:"box-card-component",staticStyle:{"margin-left":"8px"}},[a("div",{staticClass:"box-card-header",attrs:{slot:"header"},slot:"header"},[a("img",{attrs:{src:"https://wpimg.wallstcn.com/e7d23d71-cf19-4b90-a1cc-f56af8c0903d.png"}})]),a("div",{staticStyle:{position:"relative"}},[a("pan-thumb",{staticClass:"panThumb",attrs:{image:e.avatar}}),a("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}}),a("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[a("span",[e._v("Vue")]),a("el-progress",{attrs:{percentage:70}})],1),a("div",{staticClass:"progress-item"},[a("span",[e._v("JavaScript")]),a("el-progress",{attrs:{percentage:18}})],1),a("div",{staticClass:"progress-item"},[a("span",[e._v("CSS")]),a("el-progress",{attrs:{percentage:12}})],1),a("div",{staticClass:"progress-item"},[a("span",[e._v("ESLint")]),a("el-progress",{attrs:{percentage:100,status:"success"}})],1)],1)])},xe=[],ke=a("3cbc"),Ce=a("137c"),Se={components:{PanThumb:ke["a"],Mallki:Ce["a"]},filters:{statusFilter:function(e){var t={success:"success",pending:"danger"};return t[e]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(o["a"])({},Object(s["b"])(["name","avatar","roles"]))},Oe=Se,Ee=(a("f767"),a("a4af"),Object(d["a"])(Oe,_e,xe,!1,null,"192b5bd4",null)),Te=Ee.exports,je={newVisitis:{expectedData:[100,120,161,134,105,160,165],actualData:[120,82,91,154,162,140,145]},messages:{expectedData:[200,192,120,144,160,130,140],actualData:[180,160,151,106,145,150,130]},purchases:{expectedData:[80,100,121,104,105,90,100],actualData:[120,90,100,138,142,130,130]},shoppings:{expectedData:[130,140,141,142,145,150,160],actualData:[120,82,91,154,162,140,130]}},De={name:"DashboardAdmin",components:{GithubCorner:h,PanelGroup:x,LineChart:L,RaddarChart:H,PieChart:q,BarChart:Y,TransactionTable:oe,TodoList:ye,BoxCard:Te},data:function(){return{lineChartData:je.newVisitis}},methods:{handleSetLineChartData:function(e){this.lineChartData=je[e]}}},ze=De,Le=(a("097d"),Object(d["a"])(ze,r,l,!1,null,"3724819c",null)),$e=Le.exports,Ve=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"dashboard-editor-container"},[a("div",{staticClass:" clearfix"},[a("pan-thumb",{staticStyle:{float:"left"},attrs:{image:e.avatar}},[e._v(" Your roles: "),e._l(e.roles,(function(t){return a("span",{key:t,staticClass:"pan-info-roles"},[e._v(e._s(t))])}))],2),a("github-corner",{staticStyle:{position:"absolute",top:"0px",border:"0",right:"0"}}),a("div",{staticClass:"info-container"},[a("span",{staticClass:"display_name"},[e._v(e._s(e.name))]),a("span",{staticStyle:{"font-size":"20px","padding-top":"20px",display:"inline-block"}},[e._v("Editor's Dashboard")])])],1),a("div",[a("img",{staticClass:"emptyGif",attrs:{src:e.emptyGif}})])])},Pe=[],Ie={name:"DashboardEditor",components:{PanThumb:ke["a"],GithubCorner:h},data:function(){return{emptyGif:"https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3"}},computed:Object(o["a"])({},Object(s["b"])(["name","avatar","roles"]))},Me=Ie,Ae=(a("cb89"),Object(d["a"])(Me,Ve,Pe,!1,null,"e3426062",null)),He=Ae.exports,Re={name:"Dashboard",components:{adminDashboard:$e,editorDashboard:He},data:function(){return{currentRole:"adminDashboard"}},computed:Object(o["a"])({},Object(s["b"])(["roles"])),created:function(){this.roles.includes("admin")||(this.currentRole="editorDashboard")}},Be=Re,Ne=Object(d["a"])(Be,n,i,!1,null,null,null);t["default"]=Ne.exports},"9921d":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},9932:function(e,t,a){},9968:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.id))])]}}])}),a("el-table-column",{attrs:{width:"180px",align:"center",label:"Date"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(e._f("parseTime")(n.timestamp,"{y}-{m}-{d} {h}:{i}")))])]}}])}),a("el-table-column",{attrs:{width:"120px",align:"center",label:"Author"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.author))])]}}])}),a("el-table-column",{attrs:{width:"100px",label:"Importance"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return e._l(+n.importance,(function(e){return a("svg-icon",{key:e,staticClass:"meta-item__icon",attrs:{"icon-class":"star"}})}))}}])}),a("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(n.status)}},[e._v(" "+e._s(n.status)+" ")])]}}])}),a("el-table-column",{attrs:{"min-width":"300px",label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[n.edit?[a("el-input",{staticClass:"edit-input",attrs:{size:"small"},model:{value:n.title,callback:function(t){e.$set(n,"title",t)},expression:"row.title"}}),a("el-button",{staticClass:"cancel-btn",attrs:{size:"small",icon:"el-icon-refresh",type:"warning"},on:{click:function(t){return e.cancelEdit(n)}}},[e._v(" cancel ")])]:a("span",[e._v(e._s(n.title))])]}}])}),a("el-table-column",{attrs:{align:"center",label:"Actions",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[n.edit?a("el-button",{attrs:{type:"success",size:"small",icon:"el-icon-circle-check-outline"},on:{click:function(t){return e.confirmEdit(n)}}},[e._v(" Ok ")]):a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"},on:{click:function(e){n.edit=!n.edit}}},[e._v(" Edit ")])]}}])})],1)],1)},i=[],o=a("c7eb"),s=a("1da1"),r=(a("d81d"),a("2423")),l={name:"InlineEditTable",filters:{statusFilter:function(e){var t={published:"success",draft:"info",deleted:"danger"};return t[e]}},data:function(){return{list:null,listLoading:!0,listQuery:{page:1,limit:10}}},created:function(){this.getList()},methods:{getList:function(){var e=this;return Object(s["a"])(Object(o["a"])().mark((function t(){var a,n,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(r["c"])(e.listQuery);case 3:a=t.sent,n=a.data,i=n.items,e.list=i.map((function(t){return e.$set(t,"edit",!1),t.originalTitle=t.title,t})),e.listLoading=!1;case 8:case"end":return t.stop()}}),t)})))()},cancelEdit:function(e){e.title=e.originalTitle,e.edit=!1,this.$message({message:"The title has been restored to the original value",type:"warning"})},confirmEdit:function(e){e.edit=!1,e.originalTitle=e.title,this.$message({message:"The title has been edited",type:"success"})}}},c=l,u=(a("e5c8"),a("2877")),d=Object(u["a"])(c,n,i,!1,null,"15b0fc52",null);t["default"]=d.exports},"99ac":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tab-container"},[a("el-tag",[e._v("mounted times :"+e._s(e.createdTimes))]),a("el-alert",{staticStyle:{width:"200px",display:"inline-block","vertical-align":"middle","margin-left":"30px"},attrs:{closable:!1,title:"Tab with keep-alive",type:"success"}}),a("el-tabs",{staticStyle:{"margin-top":"15px"},attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.tabMapOptions,(function(t){return a("el-tab-pane",{key:t.key,attrs:{label:t.label,name:t.key}},[a("keep-alive",[e.activeName==t.key?a("tab-pane",{attrs:{type:t.key},on:{create:e.showCreatedTimes}}):e._e()],1)],1)})),1)],1)},i=[],o=(a("99af"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{align:"center",label:"ID",width:"65","element-loading-text":"请给我点时间!"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.id))])]}}])}),a("el-table-column",{attrs:{width:"180px",align:"center",label:"Date"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("parseTime")(t.row.timestamp,"{y}-{m}-{d} {h}:{i}")))])]}}])}),a("el-table-column",{attrs:{"min-width":"300px",label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.title))]),a("el-tag",[e._v(e._s(n.type))])]}}])}),a("el-table-column",{attrs:{width:"110px",align:"center",label:"Author"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.author))])]}}])}),a("el-table-column",{attrs:{width:"120px",label:"Importance"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(+t.row.importance,(function(e){return a("svg-icon",{key:e,attrs:{"icon-class":"star"}})}))}}])}),a("el-table-column",{attrs:{align:"center",label:"Readings",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.pageviews))])]}}])}),a("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(n.status)}},[e._v(" "+e._s(n.status)+" ")])]}}])})],1)}),s=[],r=a("2423"),l={filters:{statusFilter:function(e){var t={published:"success",draft:"info",deleted:"danger"};return t[e]}},props:{type:{type:String,default:"CN"}},data:function(){return{list:null,listQuery:{page:1,limit:5,type:this.type,sort:"+id"},loading:!1}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.$emit("create"),Object(r["c"])(this.listQuery).then((function(t){e.list=t.data.items,e.loading=!1}))}}},c=l,u=a("2877"),d=Object(u["a"])(c,o,s,!1,null,null,null),p=d.exports,m={name:"Tab",components:{TabPane:p},data:function(){return{tabMapOptions:[{label:"China",key:"CN"},{label:"USA",key:"US"},{label:"Japan",key:"JP"},{label:"Eurozone",key:"EU"}],activeName:"CN",createdTimes:0}},watch:{activeName:function(e){this.$router.push("".concat(this.$route.path,"?tab=").concat(e))}},created:function(){var e=this.$route.query.tab;e&&(this.activeName=e)},methods:{showCreatedTimes:function(){this.createdTimes=this.createdTimes+1}}},h=m,f=(a("912e"),Object(u["a"])(h,n,i,!1,null,"4794197c",null));t["default"]=f.exports},"99d5":function(e,t,a){"use strict";a.r(t);var n="Plans for the Next Iteration of Vue.js",i='Last week atVue.js LondonI gave a brief sneak peek of what’s coming in the next major version of Vue. This post provides an in-depth overview of the plan.
\n
\nWhy a new majorversion?
\nVue 2.0 was releasedexactly two years ago(how time flies!). During this period, the core has remained backwards compatible with five minor releases. We’ve accumulated a number of ideas that would bring improvements, but they were held off because they would result in breaking changes. At the same time, the JavaScript ecosystem and the language itself has been evolving rapidly. There are greatly improved tools that could enhance our workflow, and many new language features that could unlock simpler, more complete, and more efficient solutions to the problems Vue is trying to solve. What’s more exciting is that we are seeing ES2015 support becoming a baseline for all major evergreen browsers. Vue 3.0 aims to leverage these new language features to make Vue core smaller, faster, and more powerful.
\nVue 3.0 is currently in prototyping phase, and we have already implemented a runtime close to feature-parity with 2.x.Many of the items listed below are either already implemented, or confirmed to be feasible. Ones that are not yet implemented or still in exploration phase are marked with a *.
\nThe Details
\nHigh-Level APIChanges
\nTL;DR: Everything except render function API and scoped-slots syntax will either remain the same or can be made 2.x compatible via a compatibility build.
\nSince it’s a new major, there is going to be some breaking changes. However, we take backwards compatibility seriously, so we want to start communicating these changes as soon as possible. Here’s the currently planned public API changes:
\n- Template syntax will remain 99% the same. There may be small tweaks in scoped slots syntax, but other than that we have no plans to change anything else for templates.
- 3.0 will support class-based components natively, with the aim to provide an API that is pleasant to use in native ES2015 without requiring any transpilation or stage-x features. Most current options will have a reasonable mapping in the class-based API. Stage-x features such as class fields and decorators can still be used optionally to enhance the authoring experience. In addition, the API is designed with TypeScript type inference in mind. The 3.x codebase will itself be written in TypeScript, and providing improved TypeScript support. (That said, usage of TypeScript in an application is still entirely optional.)
- The 2.x object-based component format will still be supported by internally transforming the object to a corresponding class.
- Mixins will still be supported.*
- Top level APIs will likely receive an overhaul to avoid globally mutating the Vue runtime when installing plugins. Instead, plugins will be applied and scoped to a component tree. This will make it easier to test components that rely on specific plugins, and also make it possible to mount multiple Vue applications on the same page with different plugins, but using the same Vue runtime.*
- Functional components can finally be plain functions —however, async components will now need to be explicitly created via a helper function.
- The part that will receive the most changes is the Virtual DOM format used in render functions. We are currently collecting feedback from major library authors and will be sharing more details as we are more confident of the changes, but as long as you don’t heavily rely on hand-written (non-JSX) render functions in your app, upgrading should be a reasonably straightforward process.
\nSource Code Architecture
\nTL;DR: better decoupled internal modules, TypeScript, and a codebase that is easier to contribute to.
\nWe are re-writing 3.0 from the ground up for a cleaner and more maintainable architecture, in particular trying to make it easier to contribute to. We are breaking some internal functionalities into individual packages in order to isolate the scope of complexity. For example, the observer module will become its own package, with its own public API and tests. Note this does not affect framework-level API— you will not have to manually import individual bits from multiple packages in order to use Vue. Instead, the final Vue package is assembled using these internal packages.
\nThe codebase is also now written in TypeScript. Although this will make proficiency in TypeScript a pre-requisite for contributing to the new codebase, we believe the type information and IDE support will actually make it easier for a new contributor to make meaningful contributions.
\nDecoupling the observer and scheduler into separate packages also allows us to easily experiment with alternative implementations of these parts. For example, we can implement an IE11 compatible observer implementation with the same API, or an alternative scheduler that leveragesrequestIdleCallback
to yield to the browser during long updates.*
\n
\nObservation Mechanism
\nTL;DR: more complete, precise, efficient and debuggable reactivity tracking & API for creating observables.
\n3.0 will ship with a Proxy-based observer implementation that provides reactivity tracking with full language coverage. This eliminates a number of limitations of Vue 2’s current implementation based onObject.defineProperty
:
\nThe new observer also features the following:
\nEasily understand why a component is re-rendering
\n
\nOther Runtime Improvements
\nTL;DR: smaller, faster, tree-shakable features, fragments & portals, custom renderer API.
\nCompiler Improvements*
\nTL;DR: tree-shaking friendly output, more AOT optimizations, parser with better error info and source map support.
\nIE11 Support*
\nTL;DR: it will be supported, but in a separate build with the same reactivity limitations of Vue 2.x.
\nThe new codebase currently targets evergreen browsers only and assumes baseline native ES2015 support. But alas, we know a lot of our users still need to support IE11 for the foreseeable future. Most of the ES2015 features used can be transpiled / polyfilled for IE11, with the exception for Proxies. Our plan is to implement an alternative observer with the same API, but using the good old ES5Object.defineProperty
API. A separate build of Vue 3.x will be distributed using this observer implementation. However, this build will be subject to the same change detection caveats of Vue 2.x and thus not fully compatible with the “modern” build of 3.x. We are aware that this imposes some inconvenience for library authors as they will need to be aware of compatibility for two different builds, but we will make sure to provide clear guidelines on this when we reach that stage.
\nHow Do We GetThere
\nFirst of all, although we are announcing it today, we do not have a definitive timeline yet. What we do know at the moment is the steps we will be taking to get there:
\n1. Internal Feedback for the Runtime Prototype
\nThis is the phase we are in right now. Currently, we already have a working runtime prototype that includes the new observer, Virtual DOM and component implementation. We have invited a group of authors of influential community projects to provide feedback for the internal changes, and would like to make sure they are comfortable with the changes before moving forward. We want to ensure that important libraries in the ecosystem will be ready at the same time when we release 3.0, so that users relying on those projects can upgrade easily.
\n2. Public Feedback viaRFCs
\nOnce we gain a certain level of confidence in the new design, for each breaking change we will be opening a dedicated RFC issue which includes:
\nWe will anticipate public feedback from the wider community to help us consolidate these ideas.
\n3. Introduce Compatible Features in 2.x &2.x-next
\nWe are not forgetting about 2.x! In fact, we plan to use 2.x to progressively accustom users to the new changes. We will be gradually introducing confirmed API changes into 2.x via opt-in adaptors, and 2.x-next will allow users to try out the new Proxy-based observer.
\nThe last minor release in 2.x will become LTS and continue to receive bug and security fixes for 18 months when 3.0 is released.
\n4. AlphaPhase
\nNext, we will finish up the compiler and server-side rendering parts of 3.0 and start making alpha releases. These will mostly be for stability testing purposes in small greenfield apps.
\n5. BetaPhase
\nDuring beta phase, our main goal is updating support libraries and tools like Vue Router, Vuex, Vue CLI, Vue DevTools and make sure they work smoothly with the new core. We will also be working with major library authors from the community to help them get ready for 3.0.
\n6. RCPhase
\nOnce we consider the API and codebase stable, we will enter RC phase with API freeze. During this phase we will also work on a “compat build”: a build of 3.0 that includes compatibility layers for 2.x API. This build will also ship with a flag you can turn on to emit deprecation warnings for 2.x API usage in your app. The compat build can be used as a guide to upgrade your app to 3.0.
\n7. IE11build
\nThe last task before the final release will be the IE11 compatibility build as mentioned above.
\n8. FinalRelease
\nIn all honesty, we don’t know when this will happen yet, but likely in 2019. Again, we care more about shipping something that is solid and stable rather than hitting specific dates. There is a lot of work to be done, but we are excited for what’s coming next!
',o={title:n,content:i};t["default"]=o},"99ea":function(e,t,a){},"9b8b":function(e,t,a){},"9bbf":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"9bf3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"ID",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.id))])]}}])}),a("el-table-column",{attrs:{width:"180px",align:"center",label:"Date"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("parseTime")(t.row.timestamp,"{y}-{m}-{d} {h}:{i}")))])]}}])}),a("el-table-column",{attrs:{width:"120px",align:"center",label:"Author"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.author))])]}}])}),a("el-table-column",{attrs:{width:"100px",label:"Importance"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(+t.row.importance,(function(e){return a("svg-icon",{key:e,staticClass:"meta-item__icon",attrs:{"icon-class":"star"}})}))}}])}),a("el-table-column",{attrs:{"class-name":"status-col",label:"Status",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(n.status)}},[e._v(" "+e._s(n.status)+" ")])]}}])}),a("el-table-column",{attrs:{"min-width":"300px",label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("router-link",{staticClass:"link-type",attrs:{to:"/example/edit/"+n.id}},[a("span",[e._v(e._s(n.title))])])]}}])}),a("el-table-column",{attrs:{align:"center",label:"Actions",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("router-link",{attrs:{to:"/example/edit/"+t.row.id}},[a("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit"}},[e._v(" Edit ")])],1)]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},pagination:e.getList}})],1)},i=[],o=a("2423"),s=a("333d"),r={name:"ArticleList",components:{Pagination:s["a"]},filters:{statusFilter:function(e){var t={published:"success",draft:"info",deleted:"danger"};return t[e]}},data:function(){return{list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["c"])(this.listQuery).then((function(t){e.list=t.data.items,e.total=t.data.total,e.listLoading=!1}))}}},l=r,c=(a("f3e8"),a("2877")),u=Object(c["a"])(l,n,i,!1,null,"5c2776a4",null);t["default"]=u.exports},"9ce3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("article-detail",{attrs:{"is-edit":!1}})},i=[],o=a("1172"),s={name:"CreateArticle",components:{ArticleDetail:o["a"]}},r=s,l=a("2877"),c=Object(l["a"])(r,n,i,!1,null,null,null);t["default"]=c.exports},"9d91":function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},"9ed6":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"login-container"},[a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,autocomplete:"on","label-position":"left"}},[a("div",{staticClass:"title-container"},[a("h3",{staticClass:"title"},[e._v("Login Form")])]),a("el-form-item",{attrs:{prop:"username"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"user"}})],1),a("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1",autocomplete:"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),a("el-tooltip",{attrs:{content:"Caps lock is On",placement:"right",manual:""},model:{value:e.capsTooltip,callback:function(t){e.capsTooltip=t},expression:"capsTooltip"}},[a("el-form-item",{attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"Password",name:"password",tabindex:"2",autocomplete:"on"},on:{blur:function(t){e.capsTooltip=!1}},nativeOn:{keyup:[function(t){return e.checkCapslock(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}]},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1)],1),a("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("Login")]),a("div",{staticStyle:{position:"relative"}},[a("div",{staticClass:"tips"},[a("span",[e._v("Username : admin")]),a("span",[e._v("Password : any")])]),a("div",{staticClass:"tips"},[a("span",{staticStyle:{"margin-right":"18px"}},[e._v("Username : editor")]),a("span",[e._v("Password : any")])]),a("el-button",{staticClass:"thirdparty-button",attrs:{type:"primary"},on:{click:function(t){e.showDialog=!0}}},[e._v(" Or connect with ")])],1)],1),a("el-dialog",{attrs:{title:"Or connect with",visible:e.showDialog},on:{"update:visible":function(t){e.showDialog=t}}},[e._v(" Can not be simulated on local, so please combine you own business simulation! ! ! "),a("br"),a("br"),a("br"),a("social-sign")],1)],1)},i=[],o=(a("13d5"),a("d3b7"),a("b64b"),a("61f7")),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"social-signup-container"},[a("div",{staticClass:"sign-btn",on:{click:function(t){return e.wechatHandleClick("wechat")}}},[a("span",{staticClass:"wx-svg-container"},[a("svg-icon",{staticClass:"icon",attrs:{"icon-class":"wechat"}})],1),e._v(" WeChat ")]),a("div",{staticClass:"sign-btn",on:{click:function(t){return e.tencentHandleClick("tencent")}}},[a("span",{staticClass:"qq-svg-container"},[a("svg-icon",{staticClass:"icon",attrs:{"icon-class":"qq"}})],1),e._v(" QQ ")])])},r=[],l={name:"SocialSignin",methods:{wechatHandleClick:function(e){alert("ok")},tencentHandleClick:function(e){alert("ok")}}},c=l,u=(a("bfec"),a("2877")),d=Object(u["a"])(c,s,r,!1,null,"7309fbbb",null),p=d.exports,m={name:"Login",components:{SocialSign:p},data:function(){var e=function(e,t,a){Object(o["e"])(t)?a():a(new Error("Please enter the correct user name"))},t=function(e,t,a){t.length<6?a(new Error("The password can not be less than 6 digits")):a()};return{loginForm:{username:"admin",password:"111111"},loginRules:{username:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},passwordType:"password",capsTooltip:!1,loading:!1,showDialog:!1,redirect:void 0,otherQuery:{}}},watch:{$route:{handler:function(e){var t=e.query;t&&(this.redirect=t.redirect,this.otherQuery=this.getOtherQuery(t))},immediate:!0}},created:function(){},mounted:function(){""===this.loginForm.username?this.$refs.username.focus():""===this.loginForm.password&&this.$refs.password.focus()},destroyed:function(){},methods:{checkCapslock:function(e){var t=e.key;this.capsTooltip=t&&1===t.length&&t>="A"&&t<="Z"},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/",query:e.otherQuery}),e.loading=!1})).catch((function(){e.loading=!1}))}))},getOtherQuery:function(e){return Object.keys(e).reduce((function(t,a){return"redirect"!==a&&(t[a]=e[a]),t}),{})}}},h=m,f=(a("6006"),a("21ff"),Object(u["a"])(h,n,i,!1,null,"b678bd42",null));t["default"]=f.exports},"9ee5":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"mixin-components-container"},[a("el-row",[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("Buttons")])]),a("div",{staticStyle:{"margin-bottom":"50px"}},[a("el-col",{staticClass:"text-center",attrs:{span:4}},[a("router-link",{staticClass:"pan-btn blue-btn",attrs:{to:"/documentation/index"}},[e._v(" Documentation ")])],1),a("el-col",{staticClass:"text-center",attrs:{span:4}},[a("router-link",{staticClass:"pan-btn light-blue-btn",attrs:{to:"/icon/index"}},[e._v(" Icons ")])],1),a("el-col",{staticClass:"text-center",attrs:{span:4}},[a("router-link",{staticClass:"pan-btn pink-btn",attrs:{to:"/excel/export-excel"}},[e._v(" Excel ")])],1),a("el-col",{staticClass:"text-center",attrs:{span:4}},[a("router-link",{staticClass:"pan-btn green-btn",attrs:{to:"/table/complex-table"}},[e._v(" Table ")])],1),a("el-col",{staticClass:"text-center",attrs:{span:4}},[a("router-link",{staticClass:"pan-btn tiffany-btn",attrs:{to:"/example/create"}},[e._v(" Form ")])],1),a("el-col",{staticClass:"text-center",attrs:{span:4}},[a("router-link",{staticClass:"pan-btn yellow-btn",attrs:{to:"/theme/index"}},[e._v(" Theme ")])],1)],1)])],1),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:6}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("Material Design 的input")])]),a("div",{staticStyle:{height:"100px"}},[a("el-form",{attrs:{model:e.demo,rules:e.demoRules}},[a("el-form-item",{attrs:{prop:"title"}},[a("md-input",{attrs:{icon:"el-icon-search",name:"title",placeholder:"输入标题"},model:{value:e.demo.title,callback:function(t){e.$set(e.demo,"title",t)},expression:"demo.title"}},[e._v(" 标题 ")])],1)],1)],1)])],1),a("el-col",{attrs:{span:6}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("图片hover效果")])]),a("div",{staticClass:"component-item"},[a("pan-thumb",{attrs:{width:"100px",height:"100px",image:"https://wpimg.wallstcn.com/577965b9-bb9e-4e02-9f0c-095b41417191"}},[e._v(" vue-element-admin ")])],1)])],1),a("el-col",{attrs:{span:6}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("水波纹 waves v-directive")])]),a("div",{staticClass:"component-item"},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],attrs:{type:"primary"}},[e._v(" 水波纹效果 ")])],1)])],1),a("el-col",{attrs:{span:6}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("hover text")])]),a("div",{staticClass:"component-item"},[a("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}})],1)])],1)],1),a("el-row",{staticStyle:{"margin-top":"50px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("Share")])]),a("div",{staticClass:"component-item",staticStyle:{height:"420px"}},[a("dropdown-menu",{staticStyle:{margin:"0 auto"},attrs:{items:e.articleList,title:"系列文章"}})],1)])],1)],1)],1)},i=[],o=a("3cbc"),s=a("1aba"),r=a("137c"),l=a("7c70"),c=a("6724"),u={name:"ComponentMixinDemo",components:{PanThumb:o["a"],MdInput:s["a"],Mallki:r["a"],DropdownMenu:l["a"]},directives:{waves:c["a"]},data:function(){var e=function(e,t,a){6!==t.length?a(new Error("请输入六个字符")):a()};return{demo:{title:""},demoRules:{title:[{required:!0,trigger:"change",validator:e}]},articleList:[{title:"基础篇",href:"https://juejin.im/post/59097cd7a22b9d0065fb61d2"},{title:"登录权限篇",href:"https://juejin.im/post/591aa14f570c35006961acac"},{title:"实战篇",href:"https://juejin.im/post/593121aa0ce4630057f70d35"},{title:"vue-admin-template 篇",href:"https://juejin.im/post/595b4d776fb9a06bbe7dba56"},{title:"v4.0 篇",href:"https://juejin.im/post/5c92ff94f265da6128275a85"},{title:"优雅的使用 icon",href:"https://juejin.im/post/59bb864b5188257e7a427c09"}]}}},d=u,p=(a("9366"),a("2877")),m=Object(p["a"])(d,n,i,!1,null,"f47a5206",null);t["default"]=m.exports},"9fce":function(e,t,a){"use strict";a("e8df")},a109:function(e,t,a){a("4e82"),a("4de4"),a("d3b7");for(var n=a("96eb"),i=[],o=100,s='I am testing data, I am testing data.

',r="https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3",l=0;l=c*(r-1)}));return{code:2e4,data:{total:d.length,items:p}}}},{url:"/vue-element-admin/article/detail",type:"get",response:function(e){for(var t=e.query.id,a=0,n=i;a'});s.a.add(r);t["default"]=r},a174:function(e,t,a){"use strict";a("64c4")},a18c:function(e,t,a){"use strict";a.d(t,"b",(function(){return Gt})),a.d(t,"a",(function(){return Qt})),a.d(t,"d",(function(){return Yt}));var n,i,o=a("36cd"),s=(a("d3b7"),a("3ca3"),a("ddb0"),a("2b0e")),r=a("8c4f"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?a("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),a("sidebar",{staticClass:"sidebar-container"}),a("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[a("div",{class:{"fixed-header":e.fixedHeader}},[a("navbar"),e.needTagsView?a("tags-view"):e._e()],1),a("app-main"),e.showSettings?a("right-panel",[a("settings")],1):e._e()],1)],1)},c=[],u=a("5530"),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[a("div",{staticClass:"rightPanel-background"}),a("div",{staticClass:"rightPanel"},[a("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[a("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),a("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])},p=[],m=(a("a9e3"),a("ed08")),h={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){e&&!this.clickNotClose&&this.addEventClick(),e?Object(m["a"])(document.body,"showRightPanel"):Object(m["f"])(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){var e=this.$refs.rightPanel;e.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){var t=e.target.closest(".rightPanel");t||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,t=document.querySelector("body");t.insertBefore(e,t.firstChild)}}},f=h,v=(a("8d1d"),a("0305"),a("2877")),g=Object(v["a"])(f,d,p,!1,null,"7ce91d5a",null),b=g.exports,w=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"app-main"},[a("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[a("keep-alive",{attrs:{include:e.cachedViews}},[a("router-view",{key:e.key})],1)],1)],1)},y=[],_={name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}},x=_,k=(a("bb12"),a("3749"),Object(v["a"])(x,w,y,!1,null,"92459f82",null)),C=k.exports,S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navbar"},[a("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),a("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),a("div",{staticClass:"right-menu"},["mobile"!==e.device?[a("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),a("error-log",{staticClass:"errLog-container right-menu-item hover-effect"}),a("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}}),a("el-tooltip",{attrs:{content:"Global Size",effect:"dark",placement:"bottom"}},[a("size-select",{staticClass:"right-menu-item hover-effect",attrs:{id:"size-select"}})],1)]:e._e(),a("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80"}}),a("i",{staticClass:"el-icon-caret-bottom"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/profile/index"}},[a("el-dropdown-item",[e._v("Profile")])],1),a("router-link",{attrs:{to:"/"}},[a("el-dropdown-item",[e._v("Dashboard")])],1),a("a",{attrs:{target:"_blank",href:"https://github.com/PanJiaChen/vue-element-admin/"}},[a("el-dropdown-item",[e._v("Github")])],1),a("a",{attrs:{target:"_blank",href:"https://panjiachen.github.io/vue-element-admin-site/#/"}},[a("el-dropdown-item",[e._v("Docs")])],1),a("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[a("span",{staticStyle:{display:"block"}},[e._v("Log Out")])])],1)],1)],2)],1)},O=[],E=a("c7eb"),T=a("1da1"),j=a("2f62"),D=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[a("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,n){return a("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||n==e.levelList.length-1?a("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):a("a",{on:{click:function(a){return a.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},z=[],L=(a("2ca0"),a("4de4"),a("99af"),a("b0c0"),a("498a"),a("bd11")),$=a.n(L),V={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,a=$.a.compile(e);return a(t)},handleLink:function(e){var t=e.redirect,a=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(a))}}},P=V,I=(a("89f5"),Object(v["a"])(P,D,z,!1,null,"1919fc1a",null)),M=I.exports,A=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[a("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[a("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},H=[],R={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},B=R,N=(a("d49d"),Object(v["a"])(B,A,H,!1,null,"49e15297",null)),F=N.exports,U=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.errorLogs.length>0?a("div",[a("el-badge",{staticStyle:{"line-height":"25px","margin-top":"-5px"},attrs:{"is-dot":!0},nativeOn:{click:function(t){e.dialogTableVisible=!0}}},[a("el-button",{staticStyle:{padding:"8px 10px"},attrs:{size:"small",type:"danger"}},[a("svg-icon",{attrs:{"icon-class":"bug"}})],1)],1),a("el-dialog",{attrs:{visible:e.dialogTableVisible,width:"80%","append-to-body":""},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("span",{staticStyle:{"padding-right":"10px"}},[e._v("Error Log")]),a("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-delete"},on:{click:e.clearAll}},[e._v("Clear All")])],1),a("el-table",{attrs:{data:e.errorLogs,border:""}},[a("el-table-column",{attrs:{label:"Message"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("div",[a("span",{staticClass:"message-title"},[e._v("Msg:")]),a("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(n.err.message)+" ")])],1),a("br"),a("div",[a("span",{staticClass:"message-title",staticStyle:{"padding-right":"10px"}},[e._v("Info: ")]),a("el-tag",{attrs:{type:"warning"}},[e._v(" "+e._s(n.vm.$vnode.tag)+" error in "+e._s(n.info)+" ")])],1),a("br"),a("div",[a("span",{staticClass:"message-title",staticStyle:{"padding-right":"16px"}},[e._v("Url: ")]),a("el-tag",{attrs:{type:"success"}},[e._v(" "+e._s(n.url)+" ")])],1)]}}],null,!1,3134886942)}),a("el-table-column",{attrs:{label:"Stack"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.err.stack)+" ")]}}],null,!1,2525805560)})],1)],1)],1):e._e()},q=[],W={name:"ErrorLog",data:function(){return{dialogTableVisible:!1}},computed:{errorLogs:function(){return this.$store.getters.errorLogs}},methods:{clearAll:function(){this.dialogTableVisible=!1,this.$store.dispatch("errorLog/clearErrorLog")}}},J=W,G=(a("b36c"),Object(v["a"])(J,U,q,!1,null,"be34583a",null)),Q=G.exports,K=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("svg-icon",{attrs:{"icon-class":e.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:e.click}})],1)},Z=[],Y=a("93bf"),X=a.n(Y),ee={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!X.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;X.a.toggle()},change:function(){this.isFullscreen=X.a.isFullscreen},init:function(){X.a.enabled&&X.a.on("change",this.change)},destroy:function(){X.a.enabled&&X.a.off("change",this.change)}}},te=ee,ae=(a("f752"),Object(v["a"])(te,K,Z,!1,null,"1d75d652",null)),ne=ae.exports,ie=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[a("div",[a("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,(function(t){return a("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v(" "+e._s(t.label)+" ")])})),1)],1)},oe=[],se=(a("ac1f"),a("5319"),{data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this;this.$store.dispatch("tagsView/delAllCachedViews",this.$route);var t=this.$route.fullPath;this.$nextTick((function(){e.$router.replace({path:"/redirect"+t})}))}}}),re=se,le=Object(v["a"])(re,ie,oe,!1,null,null,null),ce=le.exports,ue=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"header-search",class:{show:e.show}},[a("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),a("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":e.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:e.change},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},e._l(e.options,(function(e){return a("el-option",{key:e.path,attrs:{value:e,label:e.title.join(" > ")}})})),1)],1)},de=[],pe=a("2909"),me=a("b85c"),he=(a("841c"),a("ffe7")),fe=a.n(he),ve=a("df7c"),ge=a.n(ve),be={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){this.initFuse(e)},show:function(e){e?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(e){var t=this;this.$router.push(e.path),this.search="",this.options=[],this.$nextTick((function(){t.show=!1}))},initFuse:function(e){this.fuse=new fe.a(e,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"path",weight:.3}]})},generateRoutes:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=[],o=Object(me["a"])(e);try{for(o.s();!(t=o.n()).done;){var s=t.value;if(!s.hidden){var r={path:ge.a.resolve(a,s.path),title:Object(pe["a"])(n)};if(s.meta&&s.meta.title&&(r.title=[].concat(Object(pe["a"])(r.title),[s.meta.title]),"noRedirect"!==s.redirect&&i.push(r)),s.children){var l=this.generateRoutes(s.children,r.path,r.title);l.length>=1&&(i=[].concat(Object(pe["a"])(i),Object(pe["a"])(l)))}}}}catch(c){o.e(c)}finally{o.f()}return i},querySearch:function(e){this.options=""!==e?this.fuse.search(e):[]}}},we=be,ye=(a("ce81"),Object(v["a"])(we,ue,de,!1,null,"7633dc5e",null)),_e=ye.exports,xe={components:{Breadcrumb:M,Hamburger:F,ErrorLog:Q,Screenfull:ne,SizeSelect:ce,Search:_e},computed:Object(u["a"])({},Object(j["b"])(["sidebar","avatar","device"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(T["a"])(Object(E["a"])().mark((function t(){return Object(E["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()}}},ke=xe,Ce=(a("cf42"),Object(v["a"])(ke,S,O,!1,null,"60dfecc6",null)),Se=Ce.exports,Oe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"drawer-container"},[a("div",[a("h3",{staticClass:"drawer-title"},[e._v("Page style setting")]),a("div",{staticClass:"drawer-item"},[a("span",[e._v("Theme Color")]),a("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),a("div",{staticClass:"drawer-item"},[a("span",[e._v("Open Tags-View")]),a("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),a("div",{staticClass:"drawer-item"},[a("span",[e._v("Fixed Header")]),a("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),a("div",{staticClass:"drawer-item"},[a("span",[e._v("Sidebar Logo")]),a("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)])])},Ee=[],Te=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},je=[],De=(a("fb6a"),a("00b4"),a("4d63"),a("2c3e"),a("25f0"),a("159b"),a("a15b"),a("b680"),a("f6f8").version),ze="#409EFF",Le={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(e){var t=this;return Object(T["a"])(Object(E["a"])().mark((function a(){var n,i,o,s,r,l,c,u;return Object(E["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=t.chalk?t.theme:ze,"string"===typeof e){a.next=3;break}return a.abrupt("return");case 3:if(i=t.getThemeCluster(e.replace("#","")),o=t.getThemeCluster(n.replace("#","")),console.log(i,o),s=t.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),r=function(e,a){return function(){var n=t.getThemeCluster(ze.replace("#","")),o=t.updateStyle(t[e],n,i),s=document.getElementById(a);s||(s=document.createElement("style"),s.setAttribute("id",a),document.head.appendChild(s)),s.innerText=o}},t.chalk){a.next=12;break}return l="https://unpkg.com/element-ui@".concat(De,"/lib/theme-chalk/index.css"),a.next=12,t.getCSSString(l,"chalk");case 12:c=r("chalk","chalk-style"),c(),u=[].slice.call(document.querySelectorAll("style")).filter((function(e){var t=e.innerText;return new RegExp(n,"i").test(t)&&!/Chalk Variables/.test(t)})),u.forEach((function(e){var a=e.innerText;"string"===typeof a&&(e.innerText=t.updateStyle(a,o,i))})),t.$emit("change",e),s.close();case 18:case"end":return a.stop()}}),a)})))()}},methods:{updateStyle:function(e,t,a){var n=e;return t.forEach((function(e,t){n=n.replace(new RegExp(e,"ig"),a[t])})),n},getCSSString:function(e,t){var a=this;return new Promise((function(n){var i=new XMLHttpRequest;i.onreadystatechange=function(){4===i.readyState&&200===i.status&&(a[t]=i.responseText.replace(/@font-face{[^}]+}/,""),n())},i.open("GET",e),i.send()}))},getThemeCluster:function(e){for(var t=function(e,t){var a=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return 0===t?[a,n,i].join(","):(a+=Math.round(t*(255-a)),n+=Math.round(t*(255-n)),i+=Math.round(t*(255-i)),a=a.toString(16),n=n.toString(16),i=i.toString(16),"#".concat(a).concat(n).concat(i))},a=function(e,t){var a=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),i=parseInt(e.slice(4,6),16);return a=Math.round((1-t)*a),n=Math.round((1-t)*n),i=Math.round((1-t)*i),a=a.toString(16),n=n.toString(16),i=i.toString(16),"#".concat(a).concat(n).concat(i)},n=[e],i=0;i<=9;i++)n.push(t(e,Number((i/10).toFixed(2))));return n.push(a(e,.1)),n}}},$e=Le,Ve=(a("0995"),Object(v["a"])($e,Te,je,!1,null,null,null)),Pe=Ve.exports,Ie={components:{ThemePicker:Pe},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}},Me=Ie,Ae=(a("cede"),Object(v["a"])(Me,Oe,Ee,!1,null,"5d274279",null)),He=Ae.exports,Re=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:{"has-logo":e.showLogo}},[e.showLogo?a("logo",{attrs:{collapse:e.isCollapse}}):e._e(),a("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[a("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,(function(e){return a("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},Be=[],Ne=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[a("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?a("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?a("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):a("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):a("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?a("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),a("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},Fe=[],Ue={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Vue Element Admin",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},qe=Ue,We=(a("fded"),Object(v["a"])(qe,Ne,Fe,!1,null,"c28012ce",null)),Je=We.exports,Ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.item.hidden?e._e():a("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?a("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[a("template",{slot:"title"},[e.item.meta?a("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return a("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?a("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[a("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[a("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},Qe=[],Ke=a("61f7"),Ze=(a("caad"),a("2532"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var a=t.props,n=a.icon,i=a.title,o=[];return n&&(n.includes("el-icon")?o.push(e("i",{class:[n,"sub-el-icon"]})):o.push(e("svg-icon",{attrs:{"icon-class":n}}))),i&&o.push(e("span",{slot:"title"},[i])),o}}),Ye=Ze,Xe=(a("f15b"),Object(v["a"])(Ye,n,i,!1,null,"18eeea00",null)),et=Xe.exports,tt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},at=[],nt={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(Ke["b"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},it=nt,ot=Object(v["a"])(it,tt,at,!1,null,null,null),st=ot.exports,rt={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var a=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&a(t)}}}}},lt={name:"SidebarItem",components:{Item:et,AppLink:st},mixins:[rt],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,n=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===n.length||0===n.length&&(this.onlyOneChild=Object(u["a"])(Object(u["a"])({},a),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(Ke["b"])(e)?e:Object(Ke["b"])(this.basePath)?this.basePath:ge.a.resolve(this.basePath,e)}}},ct=lt,ut=Object(v["a"])(ct,Ge,Qe,!1,null,null,null),dt=ut.exports,pt=a("cf1e"),mt=a.n(pt),ht={components:{SidebarItem:dt,Logo:Je},computed:Object(u["a"])(Object(u["a"])({},Object(j["b"])(["permission_routes","sidebar"])),{},{activeMenu:function(){var e=this.$route,t=e.meta,a=e.path;return t.activeMenu?t.activeMenu:a},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return mt.a},isCollapse:function(){return!this.sidebar.opened}})},ft=ht,vt=Object(v["a"])(ft,Re,Be,!1,null,null,null),gt=vt.exports,bt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[a("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper",on:{scroll:e.handleScroll}},e._l(e.visitedViews,(function(t){return a("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(a){if("button"in a&&1!==a.button)return null;!e.isAffix(t)&&e.closeSelectedTag(t)},contextmenu:function(a){return a.preventDefault(),e.openMenu(t,a)}}},[e._v(" "+e._s(t.title)+" "),e.isAffix(t)?e._e():a("span",{staticClass:"el-icon-close",on:{click:function(a){return a.preventDefault(),a.stopPropagation(),e.closeSelectedTag(t)}}})])})),1),a("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[a("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v("Refresh")]),e.isAffix(e.selectedTag)?e._e():a("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("Close")]),a("li",{on:{click:e.closeOthersTags}},[e._v("Close Others")]),a("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("Close All")])])],1)},wt=[],yt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)},_t=[],xt=(a("c740"),4),kt={name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},mounted:function(){this.scrollWrapper.addEventListener("scroll",this.emitScroll,!0)},beforeDestroy:function(){this.scrollWrapper.removeEventListener("scroll",this.emitScroll)},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,a=this.scrollWrapper;a.scrollLeft=a.scrollLeft+t/4},emitScroll:function(){this.$emit("scroll")},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el,a=t.offsetWidth,n=this.scrollWrapper,i=this.$parent.$refs.tag,o=null,s=null;if(i.length>0&&(o=i[0],s=i[i.length-1]),o===e)n.scrollLeft=0;else if(s===e)n.scrollLeft=n.scrollWidth-a;else{var r=i.findIndex((function(t){return t===e})),l=i[r-1],c=i[r+1],u=c.$el.offsetLeft+c.$el.offsetWidth+xt,d=l.$el.offsetLeft-xt;u>n.scrollLeft+a?n.scrollLeft=u-a:d1&&void 0!==arguments[1]?arguments[1]:"/",n=[];return e.forEach((function(e){if(e.meta&&e.meta.affix){var i=ge.a.resolve(a,e.path);n.push({fullPath:i,path:i,name:e.name,meta:Object(u["a"])({},e.meta)})}if(e.children){var o=t.filterAffixTags(e.children,e.path);o.length>=1&&(n=[].concat(Object(pe["a"])(n),Object(pe["a"])(o)))}})),n},initTags:function(){var e,t=this.affixTags=this.filterAffixTags(this.routes),a=Object(me["a"])(t);try{for(a.s();!(e=a.n()).done;){var n=e.value;n.name&&this.$store.dispatch("tagsView/addVisitedView",n)}}catch(i){a.e(i)}finally{a.f()}},addTags:function(){var e=this.$route.name;return e&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick((function(){var a,n=Object(me["a"])(t);try{for(n.s();!(a=n.n()).done;){var i=a.value;if(i.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(i),i.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(o){n.e(o)}finally{n.f()}}))},refreshSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delCachedView",e).then((function(){var a=e.fullPath;t.$nextTick((function(){t.$router.replace({path:"/redirect"+a})}))}))},closeSelectedTag:function(e){var t=this;this.$store.dispatch("tagsView/delView",e).then((function(a){var n=a.visitedViews;t.isActive(e)&&t.toLastView(n,e)}))},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then((function(){e.moveToCurrentTag()}))},closeAllTags:function(e){var t=this;this.$store.dispatch("tagsView/delAllViews").then((function(a){var n=a.visitedViews;t.affixTags.some((function(t){return t.path===e.path}))||t.toLastView(n,e)}))},toLastView:function(e,t){var a=e.slice(-1)[0];a?this.$router.push(a.fullPath):"Dashboard"===t.name?this.$router.replace({path:"/redirect"+t.fullPath}):this.$router.push("/")},openMenu:function(e,t){var a=105,n=this.$el.getBoundingClientRect().left,i=this.$el.offsetWidth,o=i-a,s=t.clientX-n+15;this.left=s>o?o:s,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1},handleScroll:function(){this.closeMenu()}}},Tt=Et,jt=(a("e47d"),a("ba5b"),Object(v["a"])(Tt,bt,wt,!1,null,"942a05c2",null)),Dt=jt.exports,zt=a("4360"),Lt=document,$t=Lt.body,Vt=992,Pt={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&zt["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(zt["a"].dispatch("app/toggleDevice","mobile"),zt["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=$t.getBoundingClientRect();return e.width-10){var i=a,s=n.some((function(e){return i.includes(e)}));s||e.parentNode&&e.parentNode.removeChild(e)}}var r={inserted:function(e,t){s(e,t)},update:function(e,t){s(e,t)}},l=function(e){e.directive("permission",r)};window.Vue&&(window["permission"]=r,Vue.use(l)),r.install=l;var c=r;function u(e){if(e&&e instanceof Array&&e.length>0){var t=o["a"].getters&&o["a"].getters.roles,a=e,n=t.some((function(e){return a.includes(e)}));return n}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1}var d=a("8ee8"),p={name:"DirectivePermission",components:{SwitchRoles:d["a"]},directives:{permission:c},data:function(){return{key:1}},methods:{checkPermission:u,handleRolesChange:function(){this.key++}}},m=p,h=(a("f6a1"),a("2877")),f=Object(h["a"])(m,n,i,!1,null,"10192f06",null);t["default"]=f.exports},aa46:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},aaac:function(e,t,a){},ab00:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},acdd:function(e,t,a){"use strict";a("7214")},ad1c:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},b0d0:function(e,t,a){},b20f:function(e,t,a){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b237:function(e,t,a){},b23f:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"components-container board"},[a("Kanban",{key:1,staticClass:"kanban todo",attrs:{list:e.list1,group:e.group,"header-text":"Todo"}}),a("Kanban",{key:2,staticClass:"kanban working",attrs:{list:e.list2,group:e.group,"header-text":"Working"}}),a("Kanban",{key:3,staticClass:"kanban done",attrs:{list:e.list3,group:e.group,"header-text":"Done"}})],1)},i=[],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"board-column"},[a("div",{staticClass:"board-column-header"},[e._v(" "+e._s(e.headerText)+" ")]),a("draggable",e._b({staticClass:"board-column-content",attrs:{list:e.list,"set-data":e.setData}},"draggable",e.$attrs,!1),e._l(e.list,(function(t){return a("div",{key:t.id,staticClass:"board-item"},[e._v(" "+e._s(t.name)+" "+e._s(t.id)+" ")])})),0)],1)},s=[],r=a("1980"),l=a.n(r),c={name:"DragKanbanDemo",components:{draggable:l.a},props:{headerText:{type:String,default:"Header"},options:{type:Object,default:function(){return{}}},list:{type:Array,default:function(){return[]}}},methods:{setData:function(e){e.setData("Text","")}}},u=c,d=(a("a72c"),a("2877")),p=Object(d["a"])(u,o,s,!1,null,"083991bb",null),m=p.exports,h={name:"DragKanbanDemo",components:{Kanban:m},data:function(){return{group:"mission",list1:[{name:"Mission",id:1},{name:"Mission",id:2},{name:"Mission",id:3},{name:"Mission",id:4}],list2:[{name:"Mission",id:5},{name:"Mission",id:6},{name:"Mission",id:7}],list3:[{name:"Mission",id:8},{name:"Mission",id:9},{name:"Mission",id:10}]}}},f=h,v=(a("e009"),Object(d["a"])(f,n,i,!1,null,null,null));t["default"]=v.exports},b2c4:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticStyle:{margin:"0 0 5px 20px"}},[e._v(" Fixed header, sorted by header order, ")]),a("fixed-thead"),a("div",{staticStyle:{margin:"30px 0 5px 20px"}},[e._v(" Not fixed header, sorted by click order ")]),a("unfixed-thead")],1)},i=[],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-checkbox-group",{model:{value:e.checkboxVal,callback:function(t){e.checkboxVal=t},expression:"checkboxVal"}},[a("el-checkbox",{attrs:{label:"apple"}},[e._v(" apple ")]),a("el-checkbox",{attrs:{label:"banana"}},[e._v(" banana ")]),a("el-checkbox",{attrs:{label:"orange"}},[e._v(" orange ")])],1)],1),a("el-table",{key:e.key,staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"name",label:"fruitName",width:"180"}}),e._l(e.formThead,(function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(" "+e._s(a.row[t])+" ")]}}],null,!0)})}))],2)],1)},s=[],r=(a("4de4"),a("d3b7"),["apple","banana"]),l={data:function(){return{tableData:[{name:"fruit-1",apple:"apple-10",banana:"banana-10",orange:"orange-10"},{name:"fruit-2",apple:"apple-20",banana:"banana-20",orange:"orange-20"}],key:1,formTheadOptions:["apple","banana","orange"],checkboxVal:r,formThead:r}},watch:{checkboxVal:function(e){this.formThead=this.formTheadOptions.filter((function(t){return e.indexOf(t)>=0})),this.key=this.key+1}}},c=l,u=a("2877"),d=Object(u["a"])(c,o,s,!1,null,null,null),p=d.exports,m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-checkbox-group",{model:{value:e.formThead,callback:function(t){e.formThead=t},expression:"formThead"}},[a("el-checkbox",{attrs:{label:"apple"}},[e._v(" apple ")]),a("el-checkbox",{attrs:{label:"banana"}},[e._v(" banana ")]),a("el-checkbox",{attrs:{label:"orange"}},[e._v(" orange ")])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"name",label:"fruitName",width:"180"}}),e._l(e.formThead,(function(t){return a("el-table-column",{key:t,attrs:{label:t},scopedSlots:e._u([{key:"default",fn:function(a){return[e._v(" "+e._s(a.row[t])+" ")]}}],null,!0)})}))],2)],1)},h=[],f={data:function(){return{tableData:[{name:"fruit-1",apple:"apple-10",banana:"banana-10",orange:"orange-10"},{name:"fruit-2",apple:"apple-20",banana:"banana-20",orange:"orange-20"}],formThead:["apple","banana"]}}},v=f,g=Object(u["a"])(v,m,h,!1,null,null,null),b=g.exports,w={name:"DynamicTable",components:{FixedThead:p,UnfixedThead:b}},y=w,_=Object(u["a"])(y,n,i,!1,null,null,null);t["default"]=_.exports},b36c:function(e,t,a){"use strict";a("5ea7")},b3b5:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});s.a.add(r);t["default"]=r},b4dc:function(e,t,a){},b53b:function(e,t,a){},b6fb:function(e,t,a){"use strict";a.r(t);var n=function(e,t){var a=t._c;return a("div",{staticStyle:{padding:"30px"}},[a("el-alert",{attrs:{closable:!1,title:"menu 1-2-2",type:"warning"}})],1)},i=[],o=a("2877"),s={},r=Object(o["a"])(s,n,i,!0,null,null,null);t["default"]=r.exports},b775:function(e,t,a){"use strict";a("d3b7");var n=a("bc3a"),i=a.n(n),o=a("5c96"),s=a("4360"),r=a("5f87"),l=i.a.create({baseURL:"/stage-api",timeout:5e3});l.interceptors.request.use((function(e){return s["a"].getters.token&&(e.headers["X-Token"]=Object(r["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),l.interceptors.response.use((function(e){var t=e.data;return 2e4!==t.code?(Object(o["Message"])({message:t.message||"Error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||o["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){s["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(new Error(t.message||"Error"))):t}),(function(e){return console.log("err"+e),Object(o["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=l},b804:function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{style:{height:e.height+"px",zIndex:e.zIndex}},[a("div",{class:e.className,style:{top:e.isSticky?e.stickyTop+"px":"",zIndex:e.zIndex,position:e.position,width:e.width,height:e.height+"px"}},[e._t("default",[a("div",[e._v("sticky")])])],2)])},i=[],o=(a("a9e3"),a("2c3e"),{name:"Sticky",props:{stickyTop:{type:Number,default:0},zIndex:{type:Number,default:1},className:{type:String,default:""}},data:function(){return{active:!1,position:"",width:void 0,height:void 0,isSticky:!1}},mounted:function(){this.height=this.$el.getBoundingClientRect().height,window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},activated:function(){this.handleScroll()},destroyed:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},methods:{sticky:function(){this.active||(this.position="fixed",this.active=!0,this.width=this.width+"px",this.isSticky=!0)},handleReset:function(){this.active&&this.reset()},reset:function(){this.position="",this.width="auto",this.active=!1,this.isSticky=!1},handleScroll:function(){var e=this.$el.getBoundingClientRect().width;this.width=e||"auto";var t=this.$el.getBoundingClientRect().top;td?n=-d:n>p&&(n=p),-o>m?o=-m:o>h&&(o=h),i.style.cssText+=";left:".concat(n+f,"px;top:").concat(o+v,"px;"),a.child.$emit("dragDialog")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null}}}}),s=function(e){e.directive("el-drag-dialog",o)};window.Vue&&(window["el-drag-dialog"]=o,Vue.use(s)),o.install=s;var r=o,l={name:"DragDialogDemo",directives:{elDragDialog:r},data:function(){return{dialogTableVisible:!1,options:[{value:"选项1",label:"黄金糕"},{value:"选项2",label:"双皮奶"},{value:"选项3",label:"蚵仔煎"},{value:"选项4",label:"龙须面"}],value:"",gridData:[{date:"2016-05-02",name:"John Smith",address:"No.1518, Jinshajiang Road, Putuo District"},{date:"2016-05-04",name:"John Smith",address:"No.1518, Jinshajiang Road, Putuo District"},{date:"2016-05-01",name:"John Smith",address:"No.1518, Jinshajiang Road, Putuo District"},{date:"2016-05-03",name:"John Smith",address:"No.1518, Jinshajiang Road, Putuo District"}]}},methods:{handleDrag:function(){this.$refs.select.blur()}}},c=l,u=a("2877"),d=Object(u["a"])(c,n,i,!1,null,null,null);t["default"]=d.exports},b92c:function(e,t,a){"use strict";a("b4dc")},b9b9:function(e,t,a){},ba5b:function(e,t,a){"use strict";a("4b9e")},bb0e:function(e,t,a){},bb12:function(e,t,a){"use strict";a("2ab9")},bc35:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},bcaf:function(e,t,a){},bfec:function(e,t,a){"use strict";a("87e0")},c0a4:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"Title"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter(t)}},model:{value:e.listQuery.title,callback:function(t){e.$set(e.listQuery,"title",t)},expression:"listQuery.title"}}),a("el-select",{staticClass:"filter-item",staticStyle:{width:"90px"},attrs:{placeholder:"Imp",clearable:""},model:{value:e.listQuery.importance,callback:function(t){e.$set(e.listQuery,"importance",t)},expression:"listQuery.importance"}},e._l(e.importanceOptions,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"130px"},attrs:{placeholder:"Type",clearable:""},model:{value:e.listQuery.type,callback:function(t){e.$set(e.listQuery,"type",t)},expression:"listQuery.type"}},e._l(e.calendarTypeOptions,(function(e){return a("el-option",{key:e.key,attrs:{label:e.display_name+"("+e.key+")",value:e.key}})})),1),a("el-select",{staticClass:"filter-item",staticStyle:{width:"140px"},on:{change:e.handleFilter},model:{value:e.listQuery.sort,callback:function(t){e.$set(e.listQuery,"sort",t)},expression:"listQuery.sort"}},e._l(e.sortOptions,(function(e){return a("el-option",{key:e.key,attrs:{label:e.label,value:e.key}})})),1),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(" Search ")]),a("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:e.handleCreate}},[e._v(" Add ")]),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{loading:e.downloadLoading,type:"primary",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v(" Export ")]),a("el-checkbox",{staticClass:"filter-item",staticStyle:{"margin-left":"15px"},on:{change:function(t){e.tableKey=e.tableKey+1}},model:{value:e.showReviewer,callback:function(t){e.showReviewer=t},expression:"showReviewer"}},[e._v(" reviewer ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{label:"ID",prop:"id",sortable:"custom",align:"center",width:"80","class-name":e.getSortClass("id")},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.id))])]}}])}),a("el-table-column",{attrs:{label:"Date",width:"150px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(e._f("parseTime")(n.timestamp,"{y}-{m}-{d} {h}:{i}")))])]}}])}),a("el-table-column",{attrs:{label:"Title","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",{staticClass:"link-type",on:{click:function(t){return e.handleUpdate(n)}}},[e._v(e._s(n.title))]),a("el-tag",[e._v(e._s(e._f("typeFilter")(n.type)))])]}}])}),a("el-table-column",{attrs:{label:"Author",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",[e._v(e._s(n.author))])]}}])}),e.showReviewer?a("el-table-column",{attrs:{label:"Reviewer",width:"110px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",{staticStyle:{color:"red"}},[e._v(e._s(n.reviewer))])]}}],null,!1,1536508420)}):e._e(),a("el-table-column",{attrs:{label:"Imp",width:"80px"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return e._l(+n.importance,(function(e){return a("svg-icon",{key:e,staticClass:"meta-item__icon",attrs:{"icon-class":"star"}})}))}}])}),a("el-table-column",{attrs:{label:"Readings",align:"center",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[n.pageviews?a("span",{staticClass:"link-type",on:{click:function(t){return e.handleFetchPv(n.pageviews)}}},[e._v(e._s(n.pageviews))]):a("span",[e._v("0")])]}}])}),a("el-table-column",{attrs:{label:"Status","class-name":"status-col",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-tag",{attrs:{type:e._f("statusFilter")(n.status)}},[e._v(" "+e._s(n.status)+" ")])]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row,i=t.$index;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleUpdate(n)}}},[e._v(" Edit ")]),"published"!=n.status?a("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(t){return e.handleModifyStatus(n,"published")}}},[e._v(" Publish ")]):e._e(),"draft"!=n.status?a("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.handleModifyStatus(n,"draft")}}},[e._v(" Draft ")]):e._e(),"deleted"!=n.status?a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e.handleDelete(n,i)}}},[e._v(" Delete ")]):e._e()]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.listQuery.page,limit:e.listQuery.limit},on:{"update:page":function(t){return e.$set(e.listQuery,"page",t)},"update:limit":function(t){return e.$set(e.listQuery,"limit",t)},pagination:e.getList}}),a("el-dialog",{attrs:{title:e.textMap[e.dialogStatus],visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:e.rules,model:e.temp,"label-position":"left","label-width":"70px"}},[a("el-form-item",{attrs:{label:"Type",prop:"type"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"Please select"},model:{value:e.temp.type,callback:function(t){e.$set(e.temp,"type",t)},expression:"temp.type"}},e._l(e.calendarTypeOptions,(function(e){return a("el-option",{key:e.key,attrs:{label:e.display_name,value:e.key}})})),1)],1),a("el-form-item",{attrs:{label:"Date",prop:"timestamp"}},[a("el-date-picker",{attrs:{type:"datetime",placeholder:"Please pick a date"},model:{value:e.temp.timestamp,callback:function(t){e.$set(e.temp,"timestamp",t)},expression:"temp.timestamp"}})],1),a("el-form-item",{attrs:{label:"Title",prop:"title"}},[a("el-input",{model:{value:e.temp.title,callback:function(t){e.$set(e.temp,"title",t)},expression:"temp.title"}})],1),a("el-form-item",{attrs:{label:"Status"}},[a("el-select",{staticClass:"filter-item",attrs:{placeholder:"Please select"},model:{value:e.temp.status,callback:function(t){e.$set(e.temp,"status",t)},expression:"temp.status"}},e._l(e.statusOptions,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),a("el-form-item",{attrs:{label:"Imp"}},[a("el-rate",{staticStyle:{"margin-top":"8px"},attrs:{colors:["#99A9BF","#F7BA2A","#FF9900"],max:3},model:{value:e.temp.importance,callback:function(t){e.$set(e.temp,"importance",t)},expression:"temp.importance"}})],1),a("el-form-item",{attrs:{label:"Remark"}},[a("el-input",{attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"Please input"},model:{value:e.temp.remark,callback:function(t){e.$set(e.temp,"remark",t)},expression:"temp.remark"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createData():e.updateData()}}},[e._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:e.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(t){e.dialogPvVisible=t}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogPvVisible=!1}}},[e._v("Confirm")])],1)],1)],1)},i=[],o=a("36cd"),s=(a("13d5"),a("d3b7"),a("4e82"),a("c740"),a("a434"),a("3ca3"),a("ddb0"),a("d81d"),a("2423")),r=a("6724"),l=a("ed08"),c=a("333d"),u=[{key:"CN",display_name:"China"},{key:"US",display_name:"USA"},{key:"JP",display_name:"Japan"},{key:"EU",display_name:"Eurozone"}],d=u.reduce((function(e,t){return e[t.key]=t.display_name,e}),{}),p={name:"ComplexTable",components:{Pagination:c["a"]},directives:{waves:r["a"]},filters:{statusFilter:function(e){var t={published:"success",draft:"info",deleted:"danger"};return t[e]},typeFilter:function(e){return d[e]}},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+id"},importanceOptions:[1,2,3],calendarTypeOptions:u,sortOptions:[{label:"ID Ascending",key:"+id"},{label:"ID Descending",key:"-id"}],statusOptions:["published","draft","deleted"],showReviewer:!1,temp:{id:void 0,importance:1,remark:"",timestamp:new Date,title:"",type:"",status:"published"},dialogFormVisible:!1,dialogStatus:"",textMap:{update:"Edit",create:"Create"},dialogPvVisible:!1,pvData:[],rules:{type:[{required:!0,message:"type is required",trigger:"change"}],timestamp:[{type:"date",required:!0,message:"timestamp is required",trigger:"change"}],title:[{required:!0,message:"title is required",trigger:"blur"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["c"])(this.listQuery).then((function(t){e.list=t.data.items,e.total=t.data.total,setTimeout((function(){e.listLoading=!1}),1500)}))},handleFilter:function(){this.listQuery.page=1,this.getList()},handleModifyStatus:function(e,t){this.$message({message:"操作Success",type:"success"}),e.status=t},sortChange:function(e){var t=e.prop,a=e.order;"id"===t&&this.sortByID(a)},sortByID:function(e){this.listQuery.sort="ascending"===e?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={id:void 0,importance:1,remark:"",timestamp:new Date,title:"",status:"published",type:""}},handleCreate:function(){var e=this;this.resetTemp(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},createData:function(){var e=this;this.$refs["dataForm"].validate((function(t){t&&(e.temp.id=parseInt(100*Math.random())+1024,e.temp.author="vue-element-admin",Object(s["a"])(e.temp).then((function(){e.list.unshift(e.temp),e.dialogFormVisible=!1,e.$notify({title:"Success",message:"Created Successfully",type:"success",duration:2e3})})))}))},handleUpdate:function(e){var t=this;this.temp=Object.assign({},e),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogStatus="update",this.dialogFormVisible=!0,this.$nextTick((function(){t.$refs["dataForm"].clearValidate()}))},updateData:function(){var e=this;this.$refs["dataForm"].validate((function(t){if(t){var a=Object.assign({},e.temp);a.timestamp=+new Date(a.timestamp),Object(s["e"])(a).then((function(){var t=e.list.findIndex((function(t){return t.id===e.temp.id}));e.list.splice(t,1,e.temp),e.dialogFormVisible=!1,e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},handleDelete:function(e,t){this.$notify({title:"Success",message:"Delete Successfully",type:"success",duration:2e3}),this.list.splice(t,1)},handleFetchPv:function(e){var t=this;Object(s["d"])(e).then((function(e){t.pvData=e.data.pvData,t.dialogPvVisible=!0}))},handleDownload:function(){var e=this;this.downloadLoading=!0,Promise.resolve().then((function(){return Object(o["a"])(a("4bf8"))})).then((function(t){var a=["timestamp","title","type","importance","status"],n=["timestamp","title","type","importance","status"],i=e.formatJson(n);t.export_json_to_excel({header:a,data:i,filename:"table-list"}),e.downloadLoading=!1}))},formatJson:function(e){return this.list.map((function(t){return e.map((function(e){return"timestamp"===e?Object(l["e"])(t[e]):t[e]}))}))},getSortClass:function(e){var t=this.listQuery.sort;return t==="+".concat(e)?"ascending":"descending"}}},m=p,h=a("2877"),f=Object(h["a"])(m,n,i,!1,null,null,null);t["default"]=f.exports},c270:function(e,t,a){"use strict";a("a509")},c273:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"errPage-container"},[a("ErrorA"),a("ErrorB"),a("h3",[e._v("Please click the bug icon in the upper right corner")]),e._m(0),e._m(1)],1)},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aside",[e._v(" Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions. "),a("a",{staticClass:"link-type",attrs:{target:"_blank",href:"https://panjiachen.github.io/vue-element-admin-site/guide/advanced/error.html"}},[e._v(" Document introduction ")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("a",{attrs:{href:"#"}},[a("img",{attrs:{src:"https://wpimg.wallstcn.com/360e4842-4db5-42d0-b078-f9a84a825546.gif"}})])}],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._v(" "+e._s(e.a.a)+" ")])},s=[],r={name:"ErrorTestA"},l=r,c=a("2877"),u=Object(c["a"])(l,o,s,!1,null,null,null),d=u.exports,p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div")},m=[],h={created:function(){this.b=b}},f=h,v=Object(c["a"])(f,p,m,!1,null,null,null),g=v.exports,w={name:"ErrorLog",components:{ErrorA:d,ErrorB:g}},y=w,_=(a("e723"),Object(c["a"])(y,n,i,!1,null,"a1953900",null));t["default"]=_.exports},c361:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"components-container"},[a("el-drag-select",{staticStyle:{width:"500px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("div",{staticStyle:{"margin-top":"30px"}},e._l(e.value,(function(t){return a("el-tag",{key:t,staticStyle:{"margin-right":"15px"}},[e._v(" "+e._s(t)+" ")])})),1)],1)},i=[],o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-select",e._g(e._b({ref:"dragSelect",staticClass:"drag-select",attrs:{multiple:""},model:{value:e.selectVal,callback:function(t){e.selectVal=t},expression:"selectVal"}},"el-select",e.$attrs,!1),e.$listeners),[e._t("default")],2)},s=[],r=a("2909"),l=(a("a434"),a("53fe")),c=a.n(l),u={name:"DragSelect",props:{value:{type:Array,required:!0}},computed:{selectVal:{get:function(){return Object(r["a"])(this.value)},set:function(e){this.$emit("input",Object(r["a"])(e))}}},mounted:function(){this.setSort()},methods:{setSort:function(){var e=this,t=this.$refs.dragSelect.$el.querySelectorAll(".el-select__tags > span")[0];this.sortable=c.a.create(t,{ghostClass:"sortable-ghost",setData:function(e){e.setData("Text","")},onEnd:function(t){var a=e.value.splice(t.oldIndex,1)[0];e.value.splice(t.newIndex,0,a)}})}}},d=u,p=(a("18c2"),a("2877")),m=Object(p["a"])(d,o,s,!1,null,"7e74c641",null),h=m.exports,f={name:"DragSelectDemo",components:{ElDragSelect:h},data:function(){return{value:["Apple","Banana","Orange"],options:[{value:"Apple",label:"Apple"},{value:"Banana",label:"Banana"},{value:"Orange",label:"Orange"},{value:"Pear",label:"Pear"},{value:"Strawberry",label:"Strawberry"}]}}},v=f,g=Object(p["a"])(v,n,i,!1,null,null,null);t["default"]=g.exports},c653:function(e,t,a){var n={"./app.js":"d9cd","./errorLog.js":"4d49","./permission.js":"31c2","./settings.js":"0781","./tagsView.js":"7509","./user.js":"0f9a"};function i(e){var t=o(e);return a(t)}function o(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id="c653"},c829:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},c974:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("sticky",{attrs:{"z-index":10,"class-name":"sub-navbar"}},[a("el-dropdown",{attrs:{trigger:"click"}},[a("el-button",{attrs:{plain:""}},[e._v(" Platform"),a("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),a("el-dropdown-menu",{staticClass:"no-border",attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-checkbox-group",{staticStyle:{padding:"5px 15px"},model:{value:e.platforms,callback:function(t){e.platforms=t},expression:"platforms"}},e._l(e.platformsOptions,(function(t){return a("el-checkbox",{key:t.key,attrs:{label:t.key}},[e._v(" "+e._s(t.name)+" ")])})),1)],1)],1),a("el-dropdown",{attrs:{trigger:"click"}},[a("el-button",{attrs:{plain:""}},[e._v(" Link"),a("i",{staticClass:"el-icon-caret-bottom el-icon--right"})]),a("el-dropdown-menu",{staticClass:"no-padding no-border",staticStyle:{width:"300px"},attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-input",{attrs:{placeholder:"Please enter the content"},model:{value:e.url,callback:function(t){e.url=t},expression:"url"}},[a("template",{slot:"prepend"},[e._v(" Url ")])],2)],1)],1),a("div",{staticClass:"time-container"},[a("el-date-picker",{attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss",placeholder:"Release time"},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"success"}},[e._v(" publish ")])],1),a("div",{staticClass:"components-container"},[a("aside",[e._v(" Sticky header, When the page is scrolled to the preset position will be sticky on the top. ")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("sticky",{attrs:{"sticky-top":200}},[a("el-button",{attrs:{type:"primary"}},[e._v(" placeholder")])],1),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")]),a("div",[e._v("placeholder")])],1)],1)},i=[],o=a("b804"),s={name:"StickyDemo",components:{Sticky:o["a"]},data:function(){return{time:"",url:"",platforms:["a-platform"],platformsOptions:[{key:"a-platform",name:"platformA"},{key:"b-platform",name:"platformB"},{key:"c-platform",name:"platformC"}],pickerOptions:{disabledDate:function(e){return e.getTime()>Date.now()}}}}},r=s,l=(a("2641"),a("2877")),c=Object(l["a"])(r,n,i,!1,null,"37d00a3b",null);t["default"]=c.exports},ca54:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"Please enter the file name (default file)","prefix-icon":"el-icon-document"},model:{value:e.filename,callback:function(t){e.filename=t},expression:"filename"}}),a("el-button",{staticStyle:{"margin-bottom":"20px"},attrs:{loading:e.downloadLoading,type:"primary",icon:"el-icon-document"},on:{click:e.handleDownload}},[e._v(" Export Zip ")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,"element-loading-text":"拼命加载中",border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{align:"center",label:"ID",width:"95"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index)+" ")]}}])}),a("el-table-column",{attrs:{label:"Title"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.title)+" ")]}}])}),a("el-table-column",{attrs:{label:"Author",width:"95",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-tag",[e._v(e._s(t.row.author))])]}}])}),a("el-table-column",{attrs:{label:"Readings",width:"115",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.pageviews)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Date",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("i",{staticClass:"el-icon-time"}),a("span",[e._v(e._s(t.row.display_time))])]}}])})],1)],1)},i=[],o=a("36cd"),s=a("c7eb"),r=a("1da1"),l=(a("d3b7"),a("3ca3"),a("ddb0"),a("d81d"),a("2423")),c={name:"ExportZip",data:function(){return{list:null,listLoading:!0,downloadLoading:!1,filename:""}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){var a,n;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.listLoading=!0,t.next=3,Object(l["c"])();case 3:a=t.sent,n=a.data,e.list=n.items,e.listLoading=!1;case 7:case"end":return t.stop()}}),t)})))()},handleDownload:function(){var e=this;this.downloadLoading=!0,Promise.resolve().then((function(){return Object(o["a"])(a("cddd"))})).then((function(t){var a=["Id","Title","Author","Readings","Date"],n=["id","title","author","pageviews","display_time"],i=e.list,o=e.formatJson(n,i);t.export_txt_to_zip(a,o,e.filename,e.filename),e.downloadLoading=!1}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))}}},u=c,d=a("2877"),p=Object(d["a"])(u,n,i,!1,null,null,null);t["default"]=p.exports},cb89:function(e,t,a){"use strict";a("385b")},cbb7:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});s.a.add(r);t["default"]=r},cc6c:function(e,t,a){e.exports=a.p+"static/img/401.089007e7.gif"},cddd:function(e,t,a){"use strict";a.r(t),a.d(t,"export_txt_to_zip",(function(){return s}));a("d3b7"),a("159b"),a("25f0");var n=a("21a6"),i=a("7c39"),o=a.n(i);function s(e,t,a,i){var s=new o.a,r=a||"file",l=i||"file",c=t,u="".concat(e,"\r\n");c.forEach((function(e){var t="";t=e.toString(),u+="".concat(t,"\r\n")})),s.file("".concat(r,".txt"),u),s.generateAsync({type:"blob"}).then((function(e){Object(n["saveAs"])(e,"".concat(l,".zip"))}),(function(e){alert("导出失败")}))}},ce81:function(e,t,a){"use strict";a("aaac")},cede:function(e,t,a){"use strict";a("b0d0")},cf1e:function(e,t,a){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},cf42:function(e,t,a){"use strict";a("5f08")},d056:function(e,t,a){"use strict";a.r(t);var n=a("e017"),i=a.n(n),o=a("21a1"),s=a.n(o),r=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});s.a.add(r);t["default"]=r},d49d:function(e,t,a){"use strict";a("da64")},d63e:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"box-card"},[a("div",{attrs:{slot:"header"},slot:"header"},[a("a",{staticClass:"link-type link-title",attrs:{target:"_blank",href:"https://panjiachen.github.io/vue-element-admin-site/guide/advanced/theme.html"}},[e._v(" Theme documentation ")])]),a("div",{staticClass:"box-item"},[a("span",{staticClass:"field-label"},[e._v("Change Theme : ")]),a("el-switch",{model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}}),a("aside",{staticStyle:{"margin-top":"15px"}},[e._v(" Tips: It is different from the theme-pick on the navbar is two different skinning methods, each with different application scenarios. Refer to the documentation for details. ")])],1)]),a("div",{staticClass:"block"},[a("el-button",{attrs:{type:"primary"}},[e._v(" Primary ")]),a("el-button",{attrs:{type:"success"}},[e._v(" Success ")]),a("el-button",{attrs:{type:"info"}},[e._v(" Info ")]),a("el-button",{attrs:{type:"warning"}},[e._v(" Warning ")]),a("el-button",{attrs:{type:"danger"}},[e._v(" Danger ")])],1),a("div",{staticClass:"block"},[a("el-button",{attrs:{type:"primary",icon:"el-icon-edit"}}),a("el-button",{attrs:{type:"primary",icon:"el-icon-share"}}),a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"}}),a("el-button",{attrs:{type:"primary",icon:"el-icon-search"}},[e._v(" Search ")]),a("el-button",{attrs:{type:"primary"}},[e._v(" Upload "),a("i",{staticClass:"el-icon-upload el-icon-right"})])],1),a("div",{staticClass:"block"},e._l(e.tags,(function(t){return a("el-tag",{key:t.type,staticClass:"tag-item",attrs:{type:t.type}},[e._v(" "+e._s(t.name)+" ")])})),1),a("div",{staticClass:"block"},[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:3}},[e._v(" Option A ")]),a("el-radio",{attrs:{label:6}},[e._v(" Option B ")]),a("el-radio",{attrs:{label:9}},[e._v(" Option C ")])],1)],1),a("div",{staticClass:"block"},[a("el-slider",{model:{value:e.slideValue,callback:function(t){e.slideValue=t},expression:"slideValue"}})],1)],1)},i=[],o=a("ed08"),s=(a("0f0f"),{name:"Theme",data:function(){return{theme:!1,tags:[{name:"Tag One",type:""},{name:"Tag Two",type:"info"},{name:"Tag Three",type:"success"},{name:"Tag Four",type:"warning"},{name:"Tag Five",type:"danger"}],slideValue:50,radio:3}},watch:{theme:function(){Object(o["g"])(document.body,"custom-theme")}}}),r=s,l=(a("9fce"),a("2877")),c=Object(l["a"])(r,n,i,!1,null,"2342abf8",null);t["default"]=c.exports},d78e:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-button",{attrs:{type:"primary"},on:{click:e.handleAddRole}},[e._v("New Role")]),a("el-table",{staticStyle:{width:"100%","margin-top":"30px"},attrs:{data:e.rolesList,border:""}},[a("el-table-column",{attrs:{align:"center",label:"Role Key",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.key)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Role Name",width:"220"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.name)+" ")]}}])}),a("el-table-column",{attrs:{align:"header-center",label:"Description"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.description)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Operations"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.handleEdit(t)}}},[e._v("Edit")]),a("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(a){return e.handleDelete(t)}}},[e._v("Delete")])]}}])})],1),a("el-dialog",{attrs:{visible:e.dialogVisible,title:"edit"===e.dialogType?"Edit Role":"New Role"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{attrs:{model:e.role,"label-width":"80px","label-position":"left"}},[a("el-form-item",{attrs:{label:"Name"}},[a("el-input",{attrs:{placeholder:"Role Name"},model:{value:e.role.name,callback:function(t){e.$set(e.role,"name",t)},expression:"role.name"}})],1),a("el-form-item",{attrs:{label:"Desc"}},[a("el-input",{attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"Role Description"},model:{value:e.role.description,callback:function(t){e.$set(e.role,"description",t)},expression:"role.description"}})],1),a("el-form-item",{attrs:{label:"Menus"}},[a("el-tree",{ref:"tree",staticClass:"permission-tree",attrs:{"check-strictly":e.checkStrictly,data:e.routesData,props:e.defaultProps,"show-checkbox":"","node-key":"path"}})],1)],1),a("div",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),a("el-button",{attrs:{type:"primary"},on:{click:e.confirmRole}},[e._v("Confirm")])],1)],1)],1)},i=[],o=a("5530"),s=a("2909"),r=a("b85c"),l=a("c7eb"),c=a("1da1"),u=(a("d3b7"),a("159b"),a("99af"),a("a434"),a("caad"),a("2532"),a("a4d3"),a("e01a"),a("b0c0"),a("4de4"),a("df7c")),d=a.n(u),p=a("ed08"),m=a("b775");function h(){return Object(m["a"])({url:"/vue-element-admin/routes",method:"get"})}function f(){return Object(m["a"])({url:"/vue-element-admin/roles",method:"get"})}function v(e){return Object(m["a"])({url:"/vue-element-admin/role",method:"post",data:e})}function g(e,t){return Object(m["a"])({url:"/vue-element-admin/role/".concat(e),method:"put",data:t})}function b(e){return Object(m["a"])({url:"/vue-element-admin/role/".concat(e),method:"delete"})}var w={key:"",name:"",description:"",routes:[]},y={data:function(){return{role:Object.assign({},w),routes:[],rolesList:[],dialogVisible:!1,dialogType:"new",checkStrictly:!1,defaultProps:{children:"children",label:"title"}}},computed:{routesData:function(){return this.routes}},created:function(){this.getRoutes(),this.getRoles()},methods:{getRoutes:function(){var e=this;return Object(c["a"])(Object(l["a"])().mark((function t(){var a;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,h();case 2:a=t.sent,e.serviceRoutes=a.data,e.routes=e.generateRoutes(a.data);case 5:case"end":return t.stop()}}),t)})))()},getRoles:function(){var e=this;return Object(c["a"])(Object(l["a"])().mark((function t(){var a;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,f();case 2:a=t.sent,e.rolesList=a.data;case 4:case"end":return t.stop()}}),t)})))()},generateRoutes:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=[],i=Object(r["a"])(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;if(!o.hidden){var s=this.onlyOneShowingChild(o.children,o);o.children&&s&&!o.alwaysShow&&(o=s);var l={path:d.a.resolve(a,o.path),title:o.meta&&o.meta.title};o.children&&(l.children=this.generateRoutes(o.children,l.path)),n.push(l)}}}catch(c){i.e(c)}finally{i.f()}return n},generateArr:function(e){var t=this,a=[];return e.forEach((function(e){if(a.push(e),e.children){var n=t.generateArr(e.children);n.length>0&&(a=[].concat(Object(s["a"])(a),Object(s["a"])(n)))}})),a},handleAddRole:function(){this.role=Object.assign({},w),this.$refs.tree&&this.$refs.tree.setCheckedNodes([]),this.dialogType="new",this.dialogVisible=!0},handleEdit:function(e){var t=this;this.dialogType="edit",this.dialogVisible=!0,this.checkStrictly=!0,this.role=Object(p["c"])(e.row),this.$nextTick((function(){var e=t.generateRoutes(t.role.routes);t.$refs.tree.setCheckedNodes(t.generateArr(e)),t.checkStrictly=!1}))},handleDelete:function(e){var t=this,a=e.$index,n=e.row;this.$confirm("Confirm to remove the role?","Warning",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then(Object(c["a"])(Object(l["a"])().mark((function e(){return Object(l["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,b(n.key);case 2:t.rolesList.splice(a,1),t.$message({type:"success",message:"Delete succed!"});case 4:case"end":return e.stop()}}),e)})))).catch((function(e){console.error(e)}))},generateTree:function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2?arguments[2]:void 0,i=[],o=Object(r["a"])(e);try{for(o.s();!(t=o.n()).done;){var s=t.value,l=d.a.resolve(a,s.path);s.children&&(s.children=this.generateTree(s.children,l,n)),(n.includes(l)||s.children&&s.children.length>=1)&&i.push(s)}}catch(c){o.e(c)}finally{o.f()}return i},confirmRole:function(){var e=this;return Object(c["a"])(Object(l["a"])().mark((function t(){var a,n,i,o,s,r,c,u,d;return Object(l["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(a="edit"===e.dialogType,n=e.$refs.tree.getCheckedKeys(),e.role.routes=e.generateTree(Object(p["c"])(e.serviceRoutes),"/",n),!a){t.next=16;break}return t.next=6,g(e.role.key,e.role);case 6:i=0;case 7:if(!(iRole Key: ".concat(u," \n