travel/service/public/static/js/chunk-5745a441.6abe675c.js

1 line
26 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5745a441"],{"0f73":function(t,e,a){},"144e":function(t,e,a){},3738:function(t,e,a){"use strict";a("8992")},"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){},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,3],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:"#666"},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:"#666"},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,3],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:"#666"},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:"#666"},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,3],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:"#666"},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:"#666"},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})}}},f=h,m=(a("f5b2"),a("2877")),v=Object(m["a"])(f,c,d,!1,null,"746b4ec2",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}})},_=[],C=a("313e"),x=a.n(C),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 S={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=x.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"}]})}}},k=S,E=Object(m["a"])(k,b,_,!1,null,null,null),T=E.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,z={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=x.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}]})}}},F=z,j=Object(m["a"])(F,$,O,!1,null,null,null),L=j.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}})},R=[];a("b0c0"),a("d3b7"),a("159b");a("817d");var A={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=x.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=A,H=Object(m["a"])(P,N,R,!1,null,null,null),B=H.exports,G=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}})},I=[];a("817d");var W=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=x.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:W},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:W},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:W}]})}}},J=q,M=Object(m["a"])(J,G,I,!1,null,null,null),Y=M.exports,V=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)},X=[],Q=(a("fb6a"),a("b775"));function U(t){return Object(Q["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;U().then((function(e){t.list=e.data.items.slice(0,8)}))}}},Z=K,tt=Object(m["a"])(Z,V,X,!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(e)}}})]),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(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelEdit(e)}],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(m["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()}))}}},ft=ht,mt=(a("721a"),Object(m["a"])(ft,at,st,!1,null,null,null)),vt=mt.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+")"}})])},Ct=[],xt=(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=xt,wt=(a("c0c1"),Object(m["a"])(yt,_t,Ct,!1,null,"799537af",null)),St=wt.exports,kt=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}})])},Et=[],Tt={props:{className:{type:String,default:""},text:{type:String,default:"vue-element-admin"}}},$t=Tt,Ot=(a("c3d5"),Object(m["a"])($t,kt,Et,!1,null,null,null)),Dt=Ot.exports,zt={components:{PanThumb:St,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"]))},Ft=zt,jt=(a("5183"),a("7b14"),Object(m["a"])(Ft,gt,bt,!1,null,"192b5bd4",null)),Lt=jt.exports,Nt={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]}},Rt={name:"DashboardAdmin",components:{PanelGroup:g,LineChart:T,RaddarChart:L,PieChart:B,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}))},methods:{handleSetLineChartData:function(t){this.lineChartData=Nt[t]}}},At=Rt,Pt=(a("be5e"),Object(m["a"])(At,o,l,!1,null,"945cca66",null)),Ht=Pt.exports,Bt=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}})])])},Gt=[],It={name:"DashboardEditor",components:{PanThumb:St},data:function(){return{emptyGif:"https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3"}},computed:Object(i["a"])({},Object(r["b"])(["name","avatar","roles"]))},Wt=It,qt=(a("3738"),Object(m["a"])(Wt,Bt,Gt,!1,null,"25b93ad7",null)),Jt=qt.exports,Mt={name:"Dashboard",components:{adminDashboard:Ht,editorDashboard:Jt},data:function(){return{currentRole:"adminDashboard"}},computed:Object(i["a"])({},Object(r["b"])(["roles"]))},Yt=Mt,Vt=Object(m["a"])(Yt,s,n,!1,null,null,null);e["default"]=Vt.exports},be5e:function(t,e,a){"use strict";a("144e")},c0c1:function(t,e,a){"use strict";a("6de6")},c303:function(t,e,a){},c3d5:function(t,e,a){"use strict";a("6537")},f5b2:function(t,e,a){"use strict";a("0f73")}}]);