travel/service/public/static/js/chunk-0bfa76a9.6dfdbc58.js

1 line
29 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bfa76a9"],{3738:function(t,e,a){"use strict";a("8992")},"47b5":function(t,e,a){},"511b":function(t,e,a){},5183:function(t,e,a){"use strict";a("829f")},6537:function(t,e,a){},"6de6":function(t,e,a){},"721a":function(t,e,a){"use strict";a("511b")},"7b14":function(t,e,a){"use strict";a("c303")},"829f":function(t,e,a){},8992:function(t,e,a){},9224:function(t){t.exports=JSON.parse('{"name":"vue-element-admin","version":"4.4.0","description":"A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features","author":"Pan <panfree23@gmail.com>","scripts":{"dev":"vue-cli-service serve","lint":"eslint --ext .js,.vue src","build:prod":"vue-cli-service build","build:stage":"vue-cli-service build --mode staging","preview":"node build/index.js --preview","new":"plop","svgo":"svgo -f src/icons/svg --config=src/icons/svgo.yml","test:unit":"jest --clearCache && vue-cli-service test:unit","test:ci":"npm run lint && npm run test:unit"},"dependencies":{"@wangeditor/editor":"^5.1.23","@wangeditor/editor-for-vue":"^1.0.2","axios":"0.18.1","clipboard":"2.0.4","codemirror":"5.45.0","core-js":"3.6.5","driver.js":"0.9.5","dropzone":"5.5.1","echarts":"4.2.1","element-ui":"2.13.2","file-saver":"2.0.1","fuse.js":"3.4.4","js-cookie":"2.2.0","jsonlint":"1.6.3","jszip":"3.2.1","normalize.css":"7.0.0","nprogress":"0.2.0","path-to-regexp":"2.4.0","quill":"^1.3.6","screenfull":"4.2.0","script-loader":"0.7.2","sortablejs":"1.8.4","tui-editor":"1.3.3","vue":"2.6.14","vue-count-to":"1.0.13","vue-quill-editor":"^3.0.6","vue-router":"3.0.2","vue-splitpane":"1.0.4","vuedraggable":"2.20.0","vuex":"3.1.0","xlsx":"0.14.1","yarn":"^1.22.22"},"devDependencies":{"@vue/cli-plugin-babel":"4.4.4","@vue/cli-plugin-eslint":"4.4.4","@vue/cli-plugin-unit-jest":"4.4.4","@vue/cli-service":"4.4.4","@vue/test-utils":"1.0.0-beta.29","autoprefixer":"9.5.1","babel-eslint":"10.1.0","babel-jest":"23.6.0","babel-plugin-dynamic-import-node":"2.3.3","chalk":"2.4.2","chokidar":"2.1.5","connect":"3.6.6","eslint":"6.7.2","eslint-plugin-vue":"6.2.2","html-webpack-plugin":"3.2.0","husky":"1.3.1","lint-staged":"8.1.5","mockjs":"1.0.1-beta3","plop":"2.3.0","runjs":"4.3.2","sass":"1.26.2","sass-loader":"8.0.2","script-ext-html-webpack-plugin":"2.1.3","serve-static":"1.13.2","svg-sprite-loader":"4.1.3","svgo":"1.2.0","vue-template-compiler":"2.6.14"},"browserslist":["> 1%","last 2 versions"],"bugs":{"url":"https://github.com/PanJiaChen/vue-element-admin/issues"},"engines":{"node":">=8.9","npm":">= 3.0.0"},"keywords":["vue","admin","dashboard","element-ui","boilerplate","admin-template","management-system"],"license":"MIT","lint-staged":{"src/**/*.{js,vue}":["eslint --fix","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged"}},"repository":{"type":"git","url":"git+https://github.com/PanJiaChen/vue-element-admin.git"}}')},9406:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-container"},[a(t.currentRole,{tag:"component"})],1)},n=[],i=a("5530"),r=a("2f62"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("panel-group",{on:{handleSetLineChartData:t.handleSetLineChartData}}),t.lineChartData?a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("line-chart",{attrs:{"chart-data":t.lineChartData}})],1):t._e(),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart")],1)])],1)],1)},l=[],c=function(){var t=this,e=t.$createElement,a=t._self._c||e;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(e){return t.handleOrder()}}},[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"},[a("span",[t._v("订单")])]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.all,duration:1}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleOrder()}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money3"},[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"},[t._v(" 订单总额 ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.total,duration:10}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleOrder({status:0})}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message2"},[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"},[a("span",{attrs:{to:"/order/index?"}},[t._v("待跟进")])]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.wait,duration:1}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleOrder({status:1})}}},[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"},[a("span",{attrs:{to:"/order/index?status=1"}},[t._v("跟进中")])]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.doing,duration:1}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleOrder({os_status:[4,2]})}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-skill"},[a("svg-icon",{attrs:{"icon-class":"skill","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" 核销订单数 ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.asset,duration:1}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleOrder({os_status:[4,2]})}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money2"},[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"},[t._v(" 核销订单金额 ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.asset_price,duration:10}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleOrder({os_status:[4,3]})}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-documentation"},[a("svg-icon",{attrs:{"icon-class":"documentation","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" 退款订单数 ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund,duration:10}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleOrder({os_status:[4,3]})}}},[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"},[t._v(" 退款订单金额 ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_price,duration:10}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){t.handleOrder({os_status:[4,1],times:[t.handleGetStartTime(30),t.handleEndTime()]})}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-camellia"},[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"},[t._v(" 待使用订单数30天 "),a("count-to",{staticClass:"card-panel-num",staticStyle:{color:"#ea517f"},attrs:{"start-val":0,"end-val":t.tobeused_30,duration:10}})],1),a("div",{staticClass:"card-panel-text"},[t._v(" 待使用订单金额30天 "),a("count-to",{staticClass:"card-panel-num",staticStyle:{color:"#ea517f"},attrs:{"start-val":0,"end-val":t.tobeused_price_30,duration:10}})],1)])])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){t.handleOrder({os_status:[4,1],times:[t.handleGetStartTime(60),t.handleEndTime()]})}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-camellia-sixty"},[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"},[t._v(" 待使用订单数60天 "),a("count-to",{staticClass:"card-panel-num",staticStyle:{color:"#ea517f"},attrs:{"start-val":0,"end-val":t.tobeused_60,duration:10}})],1),a("div",{staticClass:"card-panel-text"},[t._v(" 待使用订单金额60天 "),a("count-to",{staticClass:"card-panel-num",staticStyle:{color:"#ea517f"},attrs:{"start-val":0,"end-val":t.tobeused_price_60,duration:10}})],1)])])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel",on:{click:function(e){t.handleOrder({os_status:[4,1],times:[t.handleGetStartTime(80),t.handleEndTime()]})}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-camellia-fourscore"},[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"},[t._v(" 待使用订单数80天 "),a("count-to",{staticClass:"card-panel-num",staticStyle:{color:"#ea517f"},attrs:{"start-val":0,"end-val":t.tobeused_80,duration:10}})],1),a("div",{staticClass:"card-panel-text"},[t._v(" 待使用订单金额80天 "),a("count-to",{staticClass:"card-panel-num",staticStyle:{color:"#ea517f"},attrs:{"start-val":0,"end-val":t.tobeused_price_80,duration:10}})],1)])])])],1)},d=[],u=a("ec1b"),p=a.n(u),h={components:{CountTo:p.a},data:function(){return{wait:0,doing:0,all:0,total:0,asset:0,asset_price:0,refund:0,refund_price:0,tobeused_30:0,tobeused_60:0,tobeused_80:0,tobeused_price_30:0,tobeused_price_60:0,tobeused_price_80:0}},mounted:function(){var t=this;this.$nextTick((function(){t.$axios.get("/admin/index/orders").then((function(e){t.wait=parseFloat(e.data.wait),t.doing=parseFloat(e.data.doing),t.all=parseFloat(e.data.all),t.total=parseFloat(e.data.total)/100,t.asset=parseFloat(e.data.asset),t.asset_price=parseFloat(e.data.asset_price)/100,t.refund=parseFloat(e.data.refund),t.refund_price=parseFloat(e.data.refund_price)/100,t.tobeused_30=parseFloat(e.data.tobeused_30),t.tobeused_price_30=parseFloat(e.data.tobeused_price_30)/100,t.tobeused_60=parseFloat(e.data.tobeused_60),t.tobeused_price_60=parseFloat(e.data.tobeused_price_60)/100,t.tobeused_80=parseFloat(e.data.tobeused_80),t.tobeused_price_80=parseFloat(e.data.tobeused_price_80)/100})).catch((function(t){console.log(t)}))}))},methods:{handleGetStartTime:function(t){return new Date((new Date).setHours(0,0,0)-864e5*t).getTime()},handleEndTime:function(){return new Date((new Date).setHours(23,59,59,999)).getTime()},handleSetLineChartData:function(t){this.$emit("handleSetLineChartData",t)},handleOrder:function(t){this.$router.push({path:"/order/index",query:t})}}},m=h,f=(a("b27d"),a("2877")),v=Object(f["a"])(m,c,d,!1,null,"5a9b0e7a",null),g=v.exports,b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},_=[],x=a("313e"),C=a.n(x),y=a("ed08"),w={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(y["b"])((function(){t.chart&&t.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(t){"width"===t.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 k={mixins:[w],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(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=C.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.total,a=t.refund,s=t.title;this.chart.setOption({xAxis:{data:s,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:["核销额","退款额"]},series:[{name:"核销额",itemStyle:{normal:{color:"#FF005A",lineStyle:{color:"#FF005A",width:2}}},smooth:!0,type:"line",data:e,animationDuration:2800,animationEasing:"cubicInOut"},{name:"退款额",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:a,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},S=k,T=Object(f["a"])(S,b,_,!1,null,null,null),E=T.exports,$=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},O=[];a("817d");var D=3e3,j={mixins:[w],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=C.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:D}]})}}},z=j,F=Object(f["a"])(z,$,O,!1,null,null,null),L=F.exports,N=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},A=[];a("b0c0"),a("d3b7"),a("159b");a("817d");var R={mixins:[w],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){var t=this;this.chart=C.a.init(this.$el,"macarons"),this.$axios.get("/admin/index/pie").then((function(e){var a=[];e.data.forEach((function(t){a.push(t.name)})),t.chart.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:a},series:[{name:"10 天改进情况",type:"pie",roseType:"radius",radius:[15,95],data:e.data,animationEasing:"cubicInOut",animationDuration:2600}]})}))}}},P=R,B=Object(f["a"])(P,N,A,!1,null,null,null),H=B.exports,I=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},G=[];a("817d");var J=6e3,q={mixins:[w],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"}},data:function(){return{chart:null}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=C.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:J},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:J},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:J}]})}}},W=q,M=Object(f["a"])(W,I,G,!1,null,null,null),Y=M.exports,U=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-table",{staticStyle:{width:"100%","padding-top":"15px"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"Order_No","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("orderNoFilter")(e.row.order_no))+" ")]}}])}),a("el-table-column",{attrs:{label:"Price",width:"195",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" ¥"+t._s(t._f("toThousandFilter")(e.row.price))+" ")]}}])}),a("el-table-column",{attrs:{label:"Status",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("el-tag",{attrs:{type:t._f("statusFilter")(s.status)}},[t._v(" "+t._s(s.status)+" ")])]}}])})],1)},V=[],X=(a("fb6a"),a("b775"));function Q(t){return Object(X["a"])({url:"/vue-element-admin/transaction/list",method:"get",params:t})}var K={filters:{statusFilter:function(t){var e={success:"success",pending:"danger"};return e[t]},orderNoFilter:function(t){return t.substring(0,30)}},data:function(){return{list:null}},created:function(){this.fetchData()},methods:{fetchData:function(){var t=this;Q().then((function(e){t.list=e.data.items.slice(0,8)}))}}},Z=K,tt=Object(f["a"])(Z,U,V,!1,null,null,null),et=tt.exports,at=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTodo.apply(null,arguments)}}})]),a("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(e){return t.toggleAll({done:!t.allChecked})}}}),a("label",{attrs:{for:"toggle-all"}}),a("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(e,s){return a("todo",{key:s,attrs:{todo:e},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),a("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[t._v(t._s(t.remaining))]),t._v(" "+t._s(t._f("pluralize")(t.remaining,"item"))+" left ")]),a("ul",{staticClass:"filters"},t._l(t.filters,(function(e,s){return a("li",{key:s},[a("a",{class:{selected:t.visibility===s},on:{click:function(e){e.preventDefault(),t.visibility=s}}},[t._v(t._s(t._f("capitalize")(s)))])])})),0)])])},st=[],nt=(a("4de4"),a("a434"),a("e9c4"),a("498a"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(e){return t.toggleTodo(t.todo)}}}),a("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(e){t.editing=!0}}}),a("button",{staticClass:"destroy",on:{click:function(e){return t.deleteTodo(t.todo)}}})]),a("input",{directives:[{name:"show",rawName:"v-show",value:t.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:t.editing,expression:"editing"}],staticClass:"edit",domProps:{value:t.todo.text},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doneEdit.apply(null,arguments)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelEdit.apply(null,arguments)}],blur:t.doneEdit}})])}),it=[],rt={name:"Todo",directives:{focus:function(t,e,a){var s=e.value,n=a.context;s&&n.$nextTick((function(){t.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(t){this.$emit("deleteTodo",t)},editTodo:function(t){var e=t.todo,a=t.value;this.$emit("editTodo",{todo:e,value:a})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var e=t.target.value.trim(),a=this.todo;e?this.editing&&(this.editTodo({todo:a,value:e}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}},ot=rt,lt=Object(f["a"])(ot,nt,it,!1,null,null,null),ct=lt.exports,dt="todos",ut={all:function(t){return t},active:function(t){return t.filter((function(t){return!t.done}))},completed:function(t){return t.filter((function(t){return t.done}))}},pt=[{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}],ht={components:{Todo:ct},filters:{pluralize:function(t,e){return 1===t?e:e+"s"},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},data:function(){return{visibility:"all",filters:ut,todos:pt}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return ut[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(dt,JSON.stringify(this.todos))},addTodo:function(t){var e=t.target.value;e.trim()&&(this.todos.push({text:e,done:!1}),this.setLocalStorage()),t.target.value=""},toggleTodo:function(t){t.done=!t.done,this.setLocalStorage()},deleteTodo:function(t){this.todos.splice(this.todos.indexOf(t),1),this.setLocalStorage()},editTodo:function(t){var e=t.todo,a=t.value;e.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var e=this,a=t.done;this.todos.forEach((function(t){t.done=a,e.setLocalStorage()}))}}},mt=ht,ft=(a("721a"),Object(f["a"])(mt,at,st,!1,null,null,null)),vt=ft.exports,gt=function(){var t=this,e=t.$createElement,a=t._self._c||e;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:t.avatar}}),a("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}}),a("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[a("span",[t._v("Vue")]),a("el-progress",{attrs:{percentage:70}})],1),a("div",{staticClass:"progress-item"},[a("span",[t._v("JavaScript")]),a("el-progress",{attrs:{percentage:18}})],1),a("div",{staticClass:"progress-item"},[a("span",[t._v("CSS")]),a("el-progress",{attrs:{percentage:12}})],1),a("div",{staticClass:"progress-item"},[a("span",[t._v("ESLint")]),a("el-progress",{attrs:{percentage:100,status:"success"}})],1)],1)])},bt=[],_t=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pan-item",style:{zIndex:t.zIndex,height:t.height,width:t.width}},[a("div",{staticClass:"pan-info"},[a("div",{staticClass:"pan-info-roles-container"},[t._t("default")],2)]),a("div",{staticClass:"pan-thumb",style:{backgroundImage:"url("+t.image+")"}})])},xt=[],Ct=(a("a9e3"),{name:"PanThumb",props:{image:{type:String,required:!0},zIndex:{type:Number,default:1},width:{type:String,default:"150px"},height:{type:String,default:"150px"}}}),yt=Ct,wt=(a("c0c1"),Object(f["a"])(yt,_t,xt,!1,null,"799537af",null)),kt=wt.exports,St=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a",{staticClass:"link--mallki",class:t.className,attrs:{href:"#"}},[t._v(" "+t._s(t.text)+" "),a("span",{attrs:{"data-letters":t.text}}),a("span",{attrs:{"data-letters":t.text}})])},Tt=[],Et={props:{className:{type:String,default:""},text:{type:String,default:"vue-element-admin"}}},$t=Et,Ot=(a("c3d5"),Object(f["a"])($t,St,Tt,!1,null,null,null)),Dt=Ot.exports,jt={components:{PanThumb:kt,Mallki:Dt},filters:{statusFilter:function(t){var e={success:"success",pending:"danger"};return e[t]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(i["a"])({},Object(r["b"])(["name","avatar","roles"]))},zt=jt,Ft=(a("5183"),a("7b14"),Object(f["a"])(zt,gt,bt,!1,null,"192b5bd4",null)),Lt=Ft.exports,Nt=(a("99af"),a("b64b"),a("9224"),{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]}}),At={name:"DashboardAdmin",components:{PanelGroup:g,LineChart:E,RaddarChart:L,PieChart:H,BarChart:Y,TransactionTable:et,TodoList:vt,BoxCard:Lt},data:function(){return{lineChartData:null}},created:function(){var t=this;this.$axios.get("/admin/index/line",{params:this.listQuery}).then((function(e){t.lineChartData=e.data})),this.$axios.get("/admin/announcements/getLast").then((function(e){t.$alert(e.data.content,e.data.title,{confirmButtonText:"确定",customClass:"opening-announcement",callback:function(t){}})}))},methods:{handleSetLineChartData:function(t){this.lineChartData=Nt[t]}}},Rt=At,Pt=(a("9410"),Object(f["a"])(Rt,o,l,!1,null,"f05c6f6a",null)),Bt=Pt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("div",{staticClass:" clearfix"},[a("pan-thumb",{staticStyle:{float:"left"},attrs:{image:t.avatar}},[t._v(" Your roles: "),t._l(t.roles,(function(e){return a("span",{key:e,staticClass:"pan-info-roles"},[t._v(t._s(e))])}))],2),a("div",{staticClass:"info-container"},[a("span",{staticClass:"display_name"},[t._v(t._s(t.name))]),a("span",{staticStyle:{"font-size":"20px","padding-top":"20px",display:"inline-block"}},[t._v("Editor's Dashboard")])])],1),a("div",[a("img",{staticClass:"emptyGif",attrs:{src:t.emptyGif}})])])},It=[],Gt={name:"DashboardEditor",components:{PanThumb:kt},data:function(){return{emptyGif:"https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3"}},computed:Object(i["a"])({},Object(r["b"])(["name","avatar","roles"]))},Jt=Gt,qt=(a("3738"),Object(f["a"])(Jt,Ht,It,!1,null,"25b93ad7",null)),Wt=qt.exports,Mt={name:"Dashboard",components:{adminDashboard:Bt,editorDashboard:Wt},data:function(){return{currentRole:"adminDashboard"}},computed:Object(i["a"])({},Object(r["b"])(["roles"]))},Yt=Mt,Ut=Object(f["a"])(Yt,s,n,!1,null,null,null);e["default"]=Ut.exports},9410:function(t,e,a){"use strict";a("47b5")},b27d:function(t,e,a){"use strict";a("b59a")},b59a:function(t,e,a){},c0c1:function(t,e,a){"use strict";a("6de6")},c303:function(t,e,a){},c3d5:function(t,e,a){"use strict";a("6537")}}]);