travel/service/public/static/js/chunk-00f473f6.9b545008.js

1 line
27 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00f473f6"],{"144e":function(t,a,e){},3738:function(t,a,e){"use strict";e("8992")},"511b":function(t,a,e){},5183:function(t,a,e){"use strict";e("829f")},6537:function(t,a,e){},"6de6":function(t,a,e){},"721a":function(t,a,e){"use strict";e("511b")},"7b14":function(t,a,e){"use strict";e("c303")},"829f":function(t,a,e){},8992:function(t,a,e){},9406:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"dashboard-container"},[e(t.currentRole,{tag:"component"})],1)},s=[],i=e("5530"),r=e("2f62"),o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"dashboard-editor-container"},[e("panel-group",{on:{handleSetLineChartData:t.handleSetLineChartData}}),t.lineChartData?e("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[e("line-chart",{attrs:{"chart-data":t.lineChartData}})],1):t._e(),e("el-row",{attrs:{gutter:32}},[e("el-col",{attrs:{xs:24,sm:24,lg:8}},[e("div",{staticClass:"chart-wrapper"},[e("pie-chart")],1)])],1)],1)},c=[],l=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder()}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-shopping"},[e("svg-icon",{attrs:{"icon-class":"shopping","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[e("span",[t._v("订单")])]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.all,duration:1}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder()}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-money3"},[e("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 订单总额 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.total,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder({status:0})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-message2"},[e("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[e("span",{attrs:{to:"/order/index?"}},[t._v("待跟进")])]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.wait,duration:1}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder({status:1})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-message"},[e("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[e("span",{attrs:{to:"/order/index?status=1"}},[t._v("跟进中")])]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.doing,duration:1}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder({os_status:[4,2]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-skill"},[e("svg-icon",{attrs:{"icon-class":"skill","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 核销订单数 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.asset,duration:1}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder({os_status:[4,2]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-money2"},[e("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 核销订单金额 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.asset_price,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder({os_status:[4,3]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-documentation"},[e("svg-icon",{attrs:{"icon-class":"documentation","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单数 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){return t.handleOrder({os_status:[4,3]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-money"},[e("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单金额 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_price,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){t.handleOrder({os_status:[4,3],times:[t.handleGetStartTime(30),t.handleEndTime()]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-camellia"},[e("svg-icon",{attrs:{"icon-class":"documentation","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单数30天 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_30,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){t.handleOrder({os_status:[4,3],times:[t.handleGetStartTime(30),t.handleEndTime()]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-camellia"},[e("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单金额30天 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_price_30,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){t.handleOrder({os_status:[4,3],times:[t.handleGetStartTime(60),t.handleEndTime()]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-camellia-sixty"},[e("svg-icon",{attrs:{"icon-class":"documentation","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单数60天 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_60,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){t.handleOrder({os_status:[4,3],times:[t.handleGetStartTime(60),t.handleEndTime()]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-camellia-sixty"},[e("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单金额60天 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_price_60,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){t.handleOrder({os_status:[4,3],times:[t.handleGetStartTime(80),t.handleEndTime()]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-camellia-fourscore"},[e("svg-icon",{attrs:{"icon-class":"documentation","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单数80天 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_80,duration:10}})],1)])]),e("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[e("div",{staticClass:"card-panel",on:{click:function(a){t.handleOrder({os_status:[4,3],times:[t.handleGetStartTime(80),t.handleEndTime()]})}}},[e("div",{staticClass:"card-panel-icon-wrapper icon-camellia-fourscore"},[e("svg-icon",{attrs:{"icon-class":"money","class-name":"card-panel-icon"}})],1),e("div",{staticClass:"card-panel-description"},[e("div",{staticClass:"card-panel-text"},[t._v(" 退款订单金额80天 ")]),e("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.refund_price_80,duration:10}})],1)])])],1)},d=[],u=e("ec1b"),p=e.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,refund_30:0,refund_60:0,refund_80:0,refund_price_30:0,refund_price_60:0,refund_price_80:0}},mounted:function(){var t=this;this.$nextTick((function(){t.$axios.get("/admin/index/orders").then((function(a){t.wait=parseFloat(a.data.wait),t.doing=parseFloat(a.data.doing),t.all=parseFloat(a.data.all),t.total=parseFloat(a.data.total)/100,t.asset=parseFloat(a.data.asset),t.asset_price=parseFloat(a.data.asset_price)/100,t.refund=parseFloat(a.data.refund),t.refund_price=parseFloat(a.data.refund_price)/100,t.refund_30=parseFloat(a.data.refund_30),t.refund_price_30=parseFloat(a.data.refund_price_30)/100,t.refund_60=parseFloat(a.data.refund_60),t.refund_price_60=parseFloat(a.data.refund_price_60)/100,t.refund_80=parseFloat(a.data.refund_80),t.refund_price_80=parseFloat(a.data.refund_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=(e("c404"),e("2877")),v=Object(m["a"])(f,l,d,!1,null,"38c49ef0",null),g=v.exports,_=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},C=[],x=e("313e"),b=e.n(x),y=e("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)}}};e("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=b.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.total,e=t.refund,n=t.title;this.chart.setOption({xAxis:{data:n,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:a,animationDuration:2800,animationEasing:"cubicInOut"},{name:"退款额",smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:e,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},k=S,T=Object(m["a"])(k,_,C,!1,null,null,null),E=T.exports,O=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},$=[];e("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=b.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,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},R=[];e("b0c0"),e("d3b7"),e("159b");e("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=b.a.init(this.$el,"macarons"),this.$axios.get("/admin/index/pie").then((function(a){var e=[];a.data.forEach((function(t){e.push(t.name)})),t.chart.setOption({tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{left:"center",bottom:"10",data:e},series:[{name:"10 天改进情况",type:"pie",roseType:"radius",radius:[15,95],data:a.data,animationEasing:"cubicInOut",animationDuration:2600}]})}))}}},P=A,G=Object(m["a"])(P,N,R,!1,null,null,null),H=G.exports,B=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{class:t.className,style:{height:t.height,width:t.width}})},I=[];e("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=b.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,B,I,!1,null,null,null),Y=M.exports,V=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-table",{staticStyle:{width:"100%","padding-top":"15px"},attrs:{data:t.list}},[e("el-table-column",{attrs:{label:"Order_No","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" "+t._s(t._f("orderNoFilter")(a.row.order_no))+" ")]}}])}),e("el-table-column",{attrs:{label:"Price",width:"195",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(" ¥"+t._s(t._f("toThousandFilter")(a.row.price))+" ")]}}])}),e("el-table-column",{attrs:{label:"Status",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(a){var n=a.row;return[e("el-tag",{attrs:{type:t._f("statusFilter")(n.status)}},[t._v(" "+t._s(n.status)+" ")])]}}])})],1)},X=[],Q=(e("fb6a"),e("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 a={success:"success",pending:"danger"};return a[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(a){t.list=a.data.items.slice(0,8)}))}}},Z=K,tt=Object(m["a"])(Z,V,X,!1,null,null,null),at=tt.exports,et=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("section",{staticClass:"todoapp"},[e("header",{staticClass:"header"},[e("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.addTodo(a)}}})]),e("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[e("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(a){return t.toggleAll({done:!t.allChecked})}}}),e("label",{attrs:{for:"toggle-all"}}),e("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(a,n){return e("todo",{key:n,attrs:{todo:a},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),e("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[e("span",{staticClass:"todo-count"},[e("strong",[t._v(t._s(t.remaining))]),t._v(" "+t._s(t._f("pluralize")(t.remaining,"item"))+" left ")]),e("ul",{staticClass:"filters"},t._l(t.filters,(function(a,n){return e("li",{key:n},[e("a",{class:{selected:t.visibility===n},on:{click:function(a){a.preventDefault(),t.visibility=n}}},[t._v(t._s(t._f("capitalize")(n)))])])})),0)])])},nt=[],st=(e("4de4"),e("a434"),e("e9c4"),e("498a"),function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[e("div",{staticClass:"view"},[e("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(a){return t.toggleTodo(t.todo)}}}),e("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(a){t.editing=!0}}}),e("button",{staticClass:"destroy",on:{click:function(a){return t.deleteTodo(t.todo)}}})]),e("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(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.doneEdit(a)},function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:t.cancelEdit(a)}],blur:t.doneEdit}})])}),it=[],rt={name:"Todo",directives:{focus:function(t,a,e){var n=a.value,s=e.context;n&&s.$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 a=t.todo,e=t.value;this.$emit("editTodo",{todo:a,value:e})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var a=t.target.value.trim(),e=this.todo;a?this.editing&&(this.editTodo({todo:e,value:a}),this.editing=!1):this.deleteTodo({todo:e})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}},ot=rt,ct=Object(m["a"])(ot,st,it,!1,null,null,null),lt=ct.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:lt},filters:{pluralize:function(t,a){return 1===t?a:a+"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 a=t.target.value;a.trim()&&(this.todos.push({text:a,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 a=t.todo,e=t.value;a.text=e,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var a=this,e=t.done;this.todos.forEach((function(t){t.done=e,a.setLocalStorage()}))}}},ft=ht,mt=(e("721a"),Object(m["a"])(ft,et,nt,!1,null,null,null)),vt=mt.exports,gt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-card",{staticClass:"box-card-component",staticStyle:{"margin-left":"8px"}},[e("div",{staticClass:"box-card-header",attrs:{slot:"header"},slot:"header"},[e("img",{attrs:{src:"https://wpimg.wallstcn.com/e7d23d71-cf19-4b90-a1cc-f56af8c0903d.png"}})]),e("div",{staticStyle:{position:"relative"}},[e("pan-thumb",{staticClass:"panThumb",attrs:{image:t.avatar}}),e("mallki",{attrs:{"class-name":"mallki-text",text:"vue-element-admin"}}),e("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[e("span",[t._v("Vue")]),e("el-progress",{attrs:{percentage:70}})],1),e("div",{staticClass:"progress-item"},[e("span",[t._v("JavaScript")]),e("el-progress",{attrs:{percentage:18}})],1),e("div",{staticClass:"progress-item"},[e("span",[t._v("CSS")]),e("el-progress",{attrs:{percentage:12}})],1),e("div",{staticClass:"progress-item"},[e("span",[t._v("ESLint")]),e("el-progress",{attrs:{percentage:100,status:"success"}})],1)],1)])},_t=[],Ct=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"pan-item",style:{zIndex:t.zIndex,height:t.height,width:t.width}},[e("div",{staticClass:"pan-info"},[e("div",{staticClass:"pan-info-roles-container"},[t._t("default")],2)]),e("div",{staticClass:"pan-thumb",style:{backgroundImage:"url("+t.image+")"}})])},xt=[],bt=(e("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=bt,wt=(e("c0c1"),Object(m["a"])(yt,Ct,xt,!1,null,"799537af",null)),St=wt.exports,kt=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("a",{staticClass:"link--mallki",class:t.className,attrs:{href:"#"}},[t._v(" "+t._s(t.text)+" "),e("span",{attrs:{"data-letters":t.text}}),e("span",{attrs:{"data-letters":t.text}})])},Tt=[],Et={props:{className:{type:String,default:""},text:{type:String,default:"vue-element-admin"}}},Ot=Et,$t=(e("c3d5"),Object(m["a"])(Ot,kt,Tt,!1,null,null,null)),Dt=$t.exports,zt={components:{PanThumb:St,Mallki:Dt},filters:{statusFilter:function(t){var a={success:"success",pending:"danger"};return a[t]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(i["a"])({},Object(r["b"])(["name","avatar","roles"]))},Ft=zt,jt=(e("5183"),e("7b14"),Object(m["a"])(Ft,gt,_t,!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:E,RaddarChart:L,PieChart:H,BarChart:Y,TransactionTable:at,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(a){t.lineChartData=a.data}))},methods:{handleSetLineChartData:function(t){this.lineChartData=Nt[t]}}},At=Rt,Pt=(e("be5e"),Object(m["a"])(At,o,c,!1,null,"945cca66",null)),Gt=Pt.exports,Ht=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"dashboard-editor-container"},[e("div",{staticClass:" clearfix"},[e("pan-thumb",{staticStyle:{float:"left"},attrs:{image:t.avatar}},[t._v(" Your roles: "),t._l(t.roles,(function(a){return e("span",{key:a,staticClass:"pan-info-roles"},[t._v(t._s(a))])}))],2),e("div",{staticClass:"info-container"},[e("span",{staticClass:"display_name"},[t._v(t._s(t.name))]),e("span",{staticStyle:{"font-size":"20px","padding-top":"20px",display:"inline-block"}},[t._v("Editor's Dashboard")])])],1),e("div",[e("img",{staticClass:"emptyGif",attrs:{src:t.emptyGif}})])])},Bt=[],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=(e("3738"),Object(m["a"])(Wt,Ht,Bt,!1,null,"25b93ad7",null)),Jt=qt.exports,Mt={name:"Dashboard",components:{adminDashboard:Gt,editorDashboard:Jt},data:function(){return{currentRole:"adminDashboard"}},computed:Object(i["a"])({},Object(r["b"])(["roles"]))},Yt=Mt,Vt=Object(m["a"])(Yt,n,s,!1,null,null,null);a["default"]=Vt.exports},ba34:function(t,a,e){},be5e:function(t,a,e){"use strict";e("144e")},c0c1:function(t,a,e){"use strict";e("6de6")},c303:function(t,a,e){},c3d5:function(t,a,e){"use strict";e("6537")},c404:function(t,a,e){"use strict";e("ba34")}}]);