(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29d491e2"],{"227b":function(t,e,a){},"2d60":function(t,e,a){},3591:function(t,e,a){},3984:function(t,e,a){},4224:function(t,e,a){"use strict";a("e80e0")},"424e":function(t,e,a){"use strict";a.d(e,"h",(function(){return i})),a.d(e,"e",(function(){return s})),a.d(e,"l",(function(){return r})),a.d(e,"a",(function(){return o})),a.d(e,"g",(function(){return l})),a.d(e,"c",(function(){return c})),a.d(e,"i",(function(){return d})),a.d(e,"b",(function(){return u})),a.d(e,"m",(function(){return h})),a.d(e,"f",(function(){return p})),a.d(e,"d",(function(){return f})),a.d(e,"j",(function(){return m})),a.d(e,"k",(function(){return v}));var n=a("b775");function i(t){return Object(n["a"])({url:"/document/pageDocument",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/document/export",method:"post",data:t})}function r(t){return Object(n["a"])({url:"/document/update",method:"post",data:t})}function o(t){return Object(n["a"])({url:"/document/create",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/document/info",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/document/delete",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/document/category/search",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/document/category/create",method:"post",data:t})}function h(t){return Object(n["a"])({url:"/document/category/update",method:"post",data:t})}function p(t){return Object(n["a"])({url:"/document/category/info",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/document/category/delete",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/template/searchList",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/document/searchlistDoc",method:"post",data:t})}},"4edd":function(t,e,a){},5183:function(t,e,a){"use strict";a("3591")},"591f":function(t,e,a){},"5b36":function(t,e,a){"use strict";a("7718")},"634c":function(t,e,a){"use strict";a("da57")},"639f":function(t,e,a){"use strict";a("4edd")},"721a":function(t,e,a){"use strict";a("ae29")},7718:function(t,e,a){},"7b14":function(t,e,a){"use strict";a("3984")},"84b6":function(t,e,a){"use strict";a("2d60")},9406:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-container"},[a(t.currentRole,{tag:"component"})],1)},i=[],s=a("5530"),r=(a("caad"),a("2532"),a("2f62")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{span:24}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfixs",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("GPU温度")])]),a("LineChart",{staticStyle:{height:"350px"},attrs:{data:t.chartData}})],1)],1),a("el-col",{attrs:{span:16}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfixs header_sel",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("知识库构成")]),a("div",[a("el-select",{attrs:{placeholder:"请选择"},on:{change:t.kenChange},model:{value:t.kenValue,callback:function(e){t.kenValue=e},expression:"kenValue"}},t._l(t.kenList,(function(t){return a("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)]),a("BarChart",{staticStyle:{height:"350px"},attrs:{kenValue:t.kenVal}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfixs",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("文件种类占比")])]),a("pie-chart",{staticStyle:{height:"366px"}})],1)],1)],1),a("el-row",{staticStyle:{"margin-top":"20px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfixs",attrs:{slot:"header"},slot:"header"},[a("span",[t._v("最近访问的文件")])]),a("RecentFile",{staticStyle:{height:"350px"}})],1)],1)],1)],1)},l=[],c=(a("7db0"),a("d3b7"),a("f168")),d=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:8}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.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"},[t._v(" 用户数 ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.statisticsForm.admin_count,duration:2600}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:8}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("messages")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message"},[a("svg-icon",{attrs:{"icon-class":"wendang","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.statisticsForm.document_coutn,duration:3e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:8}},[a("div",{staticClass:"card-panel",on:{click:function(e){return t.handleSetLineChartData("purchases")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money"},[a("svg-icon",{attrs:{"icon-class":"zujian","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.statisticsForm.template_count,duration:3200}})],1)])])],1)},u=[],h=a("c7eb"),p=a("1da1"),f=a("ec1b"),m=a.n(f),v=a("4ec3"),g={components:{CountTo:m.a},data:function(){return{statisticsForm:{}}},mounted:function(){this.init()},methods:{init:function(){var t=this;return Object(p["a"])(Object(h["a"])().mark((function e(){var a;return Object(h["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(v["f"])();case 2:a=e.sent,t.statisticsForm=a.data;case 4:case"end":return e.stop()}}),e)})))()},handleSetLineChartData:function(t){this.$emit("handleSetLineChartData",t)}}},b=g,x=(a("f489"),a("2877")),y=Object(x["a"])(b,d,u,!1,null,"13c4c9b4",null),C=y.exports,_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chartDiv",staticStyle:{width:"100%",height:"100%"}})},w=[],S=a("db6a"),D=a("147a"),k=a("08b0"),E=a("f7ee"),O=a("5390"),T=a("71fe"),$=a("e4e6"),j=a("830b"),A=a("a6df"),F=a("bd308"),L=a("bdee"),z=a("9dc0"),R=a("c151"),I=a("c53c"),N=a("6126"),P={name:"AmAreaChart",data:function(){return{chart:null,root:null,series:null,xAxis:null,data:[],timer:null,lastValue:15,visits:10,isDestroyed:!1,isAnimating:!1}},mounted:function(){this.initChart(),this.startLiveData()},beforeDestroy:function(){this.cleanupResources()},methods:{initChart:function(){try{var t=this.root=D["a"].new(this.$refs.chartDiv);t.setThemes([N["a"].new(t)]),this.chart=t.container.children.push(j["a"].new(t,{panX:!0,panY:!0,wheelX:"panX",wheelY:"zoomX",pinchZoomX:!0}));var e=this.chart.yAxes.push(A["a"].new(t,{renderer:F["a"].new(t,{}),min:0,max:100}));this.xAxis=this.chart.xAxes.push(L["a"].new(t,{baseInterval:{timeUnit:"second",count:1},renderer:z["a"].new(t,{})})),this.series=this.chart.series.push(R["a"].new(t,{name:"Series",xAxis:this.xAxis,yAxis:e,valueYField:"value",valueXField:"date",connect:!0,tension:.8,stroke:k["b"]("#FF425C"),strokeWidth:10,tooltip:E["a"].new(t,{labelText:"{valueY}"})})),this.series.fills.template.setAll({visible:!0,fillOpacity:1,fill:O["a"].new(t,{stops:[{offset:0,color:k["b"]("#FF425C"),opacity:.2},{offset:1,color:k["b"]("#FF425C"),opacity:.9}],rotation:90})}),this.bulletSeries=this.chart.series.push(I["a"].new(t,{name:"Bullet",xAxis:this.xAxis,yAxis:e,valueYField:"value",valueXField:"date"})),this.bulletSeries.bullets.push((function(t){return T["a"].new(t,{sprite:$["a"].new(t,{radius:5,fill:k["b"]("#FF425C"),fillOpacity:1})})})),this.series.fills.template.setAll({visible:!0,fillOpacity:.5}),this.series.data.setAll(this.data),this.bulletSeries.data.setAll([]),this.series.appear(1e3),this.chart.appear(1e3,100)}catch(a){console.error("初始化图表时出错:",a)}},cleanupResources:function(){var t=this;return Object(p["a"])(Object(h["a"])().mark((function e(){return Object(h["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.isDestroyed=!0,t.isAnimating=!1,t.timer&&(clearInterval(t.timer),t.timer=null),e.next=5,new Promise((function(t){return setTimeout(t,100)}));case 5:try{t.bullet&&(t.bullet.dispose(),t.bullet=null),t.bulletSeries&&!t.bulletSeries.isDisposed()&&(t.bulletSeries.dispose(),t.bulletSeries=null),t.series&&!t.series.isDisposed()&&(t.series.dispose(),t.series=null),t.xAxis&&!t.xAxis.isDisposed()&&(t.xAxis.dispose(),t.xAxis=null),t.chart&&!t.chart.isDisposed()&&(t.chart.dispose(),t.chart=null),t.root&&!t.root.isDisposed()&&(t.root.dispose(),t.root=null)}catch(a){console.error("清理图表资源时出错:",a)}case 6:case"end":return e.stop()}}),e)})))()},startLiveData:function(){var t=this;return Object(p["a"])(Object(h["a"])().mark((function e(){var a;return Object(h["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.timer&&clearInterval(t.timer),a=Date.now(),t.timer=setInterval(Object(p["a"])(Object(h["a"])().mark((function e(){var n,i,s,r;return Object(h["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.isDestroyed&&!t.isAnimating&&t.root&&!t.root.isDisposed()&&t.series&&!t.series.isDisposed()){e.next=3;break}return clearInterval(t.timer),e.abrupt("return");case 3:return e.prev=3,e.next=6,Object(S["s"])();case 6:if(n=e.sent,i=n.data.data[0],s=Date.now(),!(s-a<900)){e.next=11;break}return e.abrupt("return");case 11:t.isDestroyed||!t.series||t.series.isDisposed()||(r=i.temperature,t.lastValue=Math.abs(r-t.lastValue)>10?t.lastValue+(r>t.lastValue?2:-2):r,t.data.push({date:s,value:t.lastValue}),t.data.length>100&&t.data.shift(),t.series.data.setAll(t.data),t.updateBullet(),t.xAxis&&!t.xAxis.isDisposed()&&t.xAxis.zoomToDates(new Date(t.data[0].date),new Date(t.data[t.data.length-1].date))),a=s,e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](3),console.error("Failed to fetch GPU info:",e.t0);case 18:case"end":return e.stop()}}),e,null,[[3,15]])}))),2e3);case 3:case"end":return e.stop()}}),e)})))()},updateBullet:function(){if(!this.isDestroyed&&this.root&&!this.root.isDisposed()&&this.bulletSeries&&!this.bulletSeries.isDisposed()&&this.data.length)try{var t=this.data[this.data.length-1];this.bulletSeries.data.setAll([t])}catch(e){console.error("更新bullet时出错:",e)}}}},B=P,V=Object(x["a"])(B,_,w,!1,null,null,null),H=V.exports,X=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}})},W=[],Y=a("313e"),G=a.n(Y),M=a("ed08"),J={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(M["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 q=3e3,U={mixins:[J],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=G.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:q}]})}}},K=U,Z=Object(x["a"])(K,X,W,!1,null,null,null),Q=Z.exports,tt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pie-chart-container"},[t.option?a("dv-charts",{attrs:{option:t.option}}):a("div",[t._v("Loading chart...")])],1)},et=[],at=(a("4de4"),{name:"PieChart",data:function(){return{option:null,data:[{name:"文档",value:70},{name:"模版",value:46},{name:"知识库文档",value:23},{name:"公式",value:15},{name:"变量",value:67}],refreshInterval:null,isOnDashboard:!1}},watch:{$route:{immediate:!0,handler:function(t){this.isOnDashboard="/dashboard"===t.path,this.handleRouteChange()}}},mounted:function(){this.init()},beforeDestroy:function(){this.refreshInterval&&clearInterval(this.refreshInterval)},methods:{handleRouteChange:function(){this.isOnDashboard&&this.init()},initChart:function(){var t=this.data.filter((function(t){return t.value>0}));this.option={series:[{type:"pie",data:t,radius:"55%",insideLabel:{show:!0},outsideLabel:{show:!0,formatter:"{name}"}}],color:["#FF9F43","#5E60CE","#FF6B6B","#54A0FF","#FF4DFF","#FF9F43","#1DD1A1"]}},init:function(){var t=this;Object(S["g"])().then((function(e){t.data[0].value=e.data.dc_document.non_templates,t.data[1].value=e.data.dc_document.templates,t.data[2].value=e.data.kbm_document,t.data[3].value=e.data.dc_formula,t.data[4].value=e.data.dc_params,t.$nextTick((function(){t.initChart()}))}))}}}),nt=at,it=(a("5b36"),Object(x["a"])(nt,tt,et,!1,null,"6c62dc97",null)),st=it.exports,rt=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}})},ot=[];a("5db7"),a("a630"),a("d81d"),a("73d9"),a("b0c0"),a("b64b"),a("6062"),a("3ca3"),a("ddb0");a("817d");var lt={mixins:[J],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"350px"},kenValue:{type:Object,default:null}},data:function(){return{chart:null,chartData:[],dirList:[],currentKenId:null}},watch:{kenValue:{immediate:!0,handler:function(t){t&&t.id!==this.currentKenId&&(this.currentKenId=t.id,this.resetChart(),this.procData(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=G.a.init(this.$el,"macarons"),this.updateChart([])},resetChart:function(){this.chart&&this.chart.clear(),this.chartData=[]},procData:function(t){var e=this;t&&t.directories&&(this.chartData=t.directories.map((function(t){return Object(s["a"])({name:t.name},t.file_type_stats)})),t.other_files&&t.other_files.file_type_stats&&this.chartData.push(Object(s["a"])({name:"其他"},t.other_files.file_type_stats)),console.log(this.chartData),this.$nextTick((function(){e.updateChart(e.chartData)})))},updateChart:function(t){var e=this;if(this.chart){var a=t.map((function(t){return t.name})),n=Array.from(new Set(t.flatMap((function(t){return Object.keys(t)})))).filter((function(t){return"name"!==t})),i=n.map((function(a){return{name:e.getFileTypeName(a),type:"bar",barWidth:"2%",data:t.map((function(t){return t[a]||0})),itemStyle:{color:e.getColor(a)}}}));this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:n.map(this.getFileTypeName),bottom:0},grid:{left:"3%",right:"4%",bottom:"10%",top:"3%",containLabel:!0},xAxis:[{type:"category",data:a,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{interval:0,align:"center",margin:20,fontSize:14},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#ddd"}}}],yAxis:[{type:"value"}],series:i})}else console.error("Chart is not initialized")},getColor:function(t){var e={jpg:"#54a0ff",png:"#9D96F5",gif:"#4ADEDE",mp4:"#FFA400",mp3:"#5D7DFF",pdf:"#FF6B6B",doc:"#4ECDC4",docx:"#4ECDC4",xls:"#45B7D1",xlsx:"#45B7D1",ppt:"#FF8C42",pptx:"#FF8C42",txt:"#6AB04C",other:"#95AFC0"};return e[t]||"#95AFC0"},getFileTypeName:function(t){var e={jpg:"JPG图片",png:"PNG图片",gif:"GIF图片",mp4:"MP4视频",mp3:"MP3音频",pdf:"PDF文档",doc:"Word文档",docx:"Word文档",xls:"Excel表格",xlsx:"Excel表格",ppt:"PPT演示",pptx:"PPT演示",txt:"文本文件",other:"其他文件"};return e[t]||t},init:function(t){}}},ct=lt,dt=Object(x["a"])(ct,rt,ot,!1,null,null,null),ut=dt.exports,ht=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:"文档名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.title)+" ")]}}])}),a("el-table-column",{attrs:{label:"时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.create_time)+" ")]}}])}),a("el-table-column",{attrs:{label:"状态","min-width":"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:t._f("statusFilter")(n.status)}},[5==n.status?a("div",[t._v("启用")]):t._e(),6==n.status?a("div",[t._v("停用")]):t._e()])]}}])})],1)},pt=[],ft=a("424e"),mt={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;Object(ft["k"])({page:1,pageSize:8,title:"",category_id:"",status:""}).then((function(e){console.log(e),t.list=e.data.dataList}))}}},vt=mt,gt=Object(x["a"])(vt,ht,pt,!1,null,null,null),bt=gt.exports,xt=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,n){return a("todo",{key:n,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,n){return a("li",{key:n},[a("a",{class:{selected:t.visibility===n},on:{click:function(e){e.preventDefault(),t.visibility=n}}},[t._v(t._s(t._f("capitalize")(n)))])])})),0)])])},yt=[],Ct=(a("fb6a"),a("a434"),a("e9c4"),a("498a"),a("159b"),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}})])}),_t=[],wt={name:"Todo",directives:{focus:function(t,e,a){var n=e.value,i=a.context;n&&i.$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}}},St=wt,Dt=Object(x["a"])(St,Ct,_t,!1,null,null,null),kt=Dt.exports,Et="todos",Ot={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}))}},Tt=[{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}],$t={components:{Todo:kt},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:Ot,todos:Tt}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return Ot[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(Et,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()}))}}},jt=$t,At=(a("721a"),Object(x["a"])(jt,xt,yt,!1,null,null,null)),Ft=At.exports,Lt=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)])},zt=[],Rt=a("3cbc"),It=a("137c"),Nt={components:{PanThumb:Rt["default"],Mallki:It["default"]},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(s["a"])({},Object(r["b"])(["name","avatar","roles"]))},Pt=Nt,Bt=(a("5183"),a("7b14"),Object(x["a"])(Pt,Lt,zt,!1,null,"192b5bd4",null)),Vt=Bt.exports,Ht=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tag-cloud"},t._l(t.tags,(function(e){return a("span",{key:e,staticClass:"tag"},[t._v(" "+t._s(e)+" ")])})),0)},Xt=[],Wt={name:"TagCloud",props:{tags:{type:Array,required:!0}}},Yt=Wt,Gt=(a("84b6"),Object(x["a"])(Yt,Ht,Xt,!1,null,"4933320b",null)),Mt=Gt.exports,Jt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"recent-file-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.fileList,height:"350","default-sort":{prop:"modified",order:"descending"}}},[a("el-table-column",{attrs:{prop:"title",label:"文档名称",align:"center"}}),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间",sortable:"",align:"center"}}),a("el-table-column",{attrs:{prop:"status",label:"文档状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:t.getStatusType(n.status)}},[t._v(" "+t._s(t.getStatusText(n.status))+" ")])]}}])})],1)],1)},qt=[],Ut=(a("4e82"),{name:"RecentFile",data:function(){return{queryForm:{page:1,pageSize:100,title:"",category_id:"",status:""},fileList:[]}},mounted:function(){this.init()},methods:{getFileIcon:function(t){var e=t.split(".").pop().toLowerCase();switch(e){case"fig":return"el-icon-picture";case"jpg":case"png":return"el-icon-picture-outline";case"html":return"el-icon-document";case"zip":return"el-icon-folder";case"mp3":return"el-icon-headset";case"mp4":return"el-icon-video-camera";case"js":return"el-icon-tickets";default:return"el-icon-document"}},getStatusType:function(t){return 5===t?"success":"danger"},getStatusText:function(t){return 5===t?"启用":"停用"},init:function(){var t=this;Object(ft["k"])(this.queryForm).then((function(e){var a=e.data.dataList;a.sort((function(t,e){return new Date(e.createdAt)-new Date(t.createdAt)})),t.fileList=a.slice(0,10)}))}}}),Kt=Ut,Zt=(a("4224"),Object(x["a"])(Kt,Jt,qt,!1,null,"13556029",null)),Qt=Zt.exports,te=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"chartDiv",staticStyle:{width:"100%",height:"300px"}})},ee=[],ae=a("3917"),ne=a("d7cb"),ie={name:"LineChart",data:function(){return{chart:null,root:null}},mounted:function(){this.initChart()},beforeDestroy:function(){this.root&&this.root.dispose()},methods:{initChart:function(){this.root=D["a"].new(this.$refs.chartDiv),this.root.setThemes([N["a"].new(this.root)]),this.chart=this.root.container.children.push(j["a"].new(this.root,{panX:!1,panY:!1,wheelX:"none",wheelY:"none"}));var t=this.chart.xAxes.push(ae["a"].new(this.root,{renderer:z["a"].new(this.root,{}),categoryField:"category"})),e=this.chart.yAxes.push(A["a"].new(this.root,{renderer:F["a"].new(this.root,{})})),a=this.chart.series.push(I["a"].new(this.root,{name:"Series",xAxis:t,yAxis:e,valueYField:"value",categoryXField:"category",tooltip:E["a"].new(this.root,{labelText:"{valueY}"})}));a.strokes.template.setAll({strokeWidth:3,strokeColor:k["b"](49151)}),a.bullets.push((function(){return T["a"].new(this.root,{sprite:$["a"].new(this.root,{radius:5,fill:k["b"](49151)})})}));var n=[{category:"A",value:10},{category:"B",value:30},{category:"C",value:20},{category:"D",value:40},{category:"E",value:30},{category:"F",value:35},{category:"G",value:25}];t.data.setAll(n),a.data.setAll(n),this.chart.set("cursor",ne["a"].new(this.root,{behavior:"none"})),a.appear(1e3),this.chart.appear(1e3,100)}}},se=ie,re=Object(x["a"])(se,te,ee,!1,null,null,null),oe=re.exports,le={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]}},ce={name:"DashboardAdmin",components:{GithubCorner:c["default"],PanelGroup:C,LineChart:H,RaddarChart:Q,PieChart:st,BarChart:ut,TransactionTable:bt,TodoList:Ft,BoxCard:Vt,TagCloud:Mt,RecentFile:Qt,instruChart:oe},data:function(){return{lineChartData:le.newVisitis,tags:["Figma","Adobe XD","PSD Editor","Employer","Online Jobs","Remote Work","Salary","Tips","Income","Develop","App","Digital","Marketing","CEO"],kenList:[],kenValue:null,kenVal:{},refreshInterval:null,isOnDashboard:!1,chartData:[]}},computed:Object(s["a"])({},Object(r["c"])({route:function(t){return t.tagsView.visitedViews}})),watch:{$route:{immediate:!0,handler:function(t){this.isOnDashboard="/dashboard"===t.path,this.handleRouteChange()}}},mounted:function(){this.init()},beforeDestroy:function(){this.stopRefreshInterval()},methods:{handleRouteChange:function(){this.isOnDashboard&&this.refreshData()},kenChange:function(t){this.kenVal=this.kenList.find((function(e){return e.id===t}))},handleSetLineChartData:function(t){this.lineChartData=le[t]},startRefreshInterval:function(){var t=this;this.refreshInterval=setInterval((function(){t.refreshData()}),3e4)},stopRefreshInterval:function(){this.refreshInterval&&clearInterval(this.refreshInterval)},refreshData:function(){var t=this;Object(S["C"])().then((function(e){200===e.status&&(t.kenList=e.data,t.kenList.length>0&&(t.kenValue=t.kenList[0].id,t.kenVal=t.kenList[0]))}))},init:function(){this.refreshData()}}},de=ce,ue=(a("639f"),Object(x["a"])(de,o,l,!1,null,"409c9209",null)),he=ue.exports,pe=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}}),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:16},xl:{span:16}}},[a("transaction-table")],1),a("el-col",{staticStyle:{"margin-bottom":"30px"},attrs:{xs:{span:24},sm:{span:12},md:{span:12},lg:{span:8},xl:{span:8}}},[a("todo-list")],1)],1)],1)},fe=[],me=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.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"},[t._v(" 用户数 ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":1,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(e){return t.handleSetLineChartData("messages")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-message"},[a("svg-icon",{attrs:{"icon-class":"wendang","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":2,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(e){return t.handleSetLineChartData("purchases")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-money"},[a("svg-icon",{attrs:{"icon-class":"zujian","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":2,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(e){return t.handleSetLineChartData("shoppings")}}},[a("div",{staticClass:"card-panel-icon-wrapper icon-shopping"},[a("svg-icon",{attrs:{"icon-class":"chanpin","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":3,duration:3600}})],1)])])],1)},ve=[],ge={components:{CountTo:m.a},methods:{handleSetLineChartData:function(t){this.$emit("handleSetLineChartData",t)}}},be=ge,xe=(a("ff75"),Object(x["a"])(be,me,ve,!1,null,"0a185ab2",null)),ye=xe.exports,Ce=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}})},_e=[],we={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(M["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 Se={mixins:[we],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=G.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.expectedData,a=t.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:e,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"}]})}}},De=Se,ke=Object(x["a"])(De,Ce,_e,!1,null,null,null),Ee=ke.exports,Oe=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}})},Te=[];a("817d");var $e=3e3,je={mixins:[we],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=G.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:$e}]})}}},Ae=je,Fe=Object(x["a"])(Ae,Oe,Te,!1,null,null,null),Le=Fe.exports,ze=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}})},Re=[];a("817d");var Ie={mixins:[we],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=G.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}]})}}},Ne=Ie,Pe=Object(x["a"])(Ne,ze,Re,!1,null,null,null),Be=Pe.exports,Ve=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}})},He=[];a("817d");var Xe=6e3,We={mixins:[we],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=G.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:Xe},{name:"pageB",type:"bar",stack:"vistors",barWidth:"60%",data:[80,52,200,334,390,330,220],animationDuration:Xe},{name:"pageC",type:"bar",stack:"vistors",barWidth:"60%",data:[30,52,200,334,390,330,220],animationDuration:Xe}]})}}},Ye=We,Ge=Object(x["a"])(Ye,Ve,He,!1,null,null,null),Me=Ge.exports,Je=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:"文档名称","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" 文档001 ")]}}])}),a("el-table-column",{attrs:{label:"时间",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" 2023-10-11 ")]}}])}),a("el-table-column",{attrs:{label:"状态",width:"100",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("el-tag",{attrs:{type:t._f("statusFilter")(n.status)}},[t._v(" "+t._s(n.status)+" ")])]}}])})],1)},qe=[],Ue=a("b775");function Ke(t){return Object(Ue["a"])({url:"/vue-element-admin/transaction/list",method:"get",params:t})}var Ze={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;Ke().then((function(e){t.list=e.data.items.slice(0,8),console.log(t.list)}))}}},Qe=Ze,ta=Object(x["a"])(Qe,Je,qe,!1,null,null,null),ea=ta.exports,aa=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,n){return a("todo",{key:n,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,n){return a("li",{key:n},[a("a",{class:{selected:t.visibility===n},on:{click:function(e){e.preventDefault(),t.visibility=n}}},[t._v(t._s(t._f("capitalize")(n)))])])})),0)])])},na=[],ia=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}})])},sa=[],ra={name:"Todo",directives:{focus:function(t,e,a){var n=e.value,i=a.context;n&&i.$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}}},oa=ra,la=Object(x["a"])(oa,ia,sa,!1,null,null,null),ca=la.exports,da="todos",ua={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}))}},ha=[{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}],pa={components:{Todo:ca},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:ua,todos:ha}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return ua[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(da,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()}))}}},fa=pa,ma=(a("634c"),Object(x["a"])(fa,aa,na,!1,null,null,null)),va=ma.exports,ga=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)])},ba=[],xa={components:{PanThumb:Rt["default"],Mallki:It["default"]},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(s["a"])({},Object(r["b"])(["name","avatar","roles"]))},ya=xa,Ca=(a("f849"),a("e5bc7"),Object(x["a"])(ya,ga,ba,!1,null,"2d6a16c4",null)),_a=Ca.exports,wa={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]}},Sa={name:"DashboardAdmin",components:{GithubCorner:c["default"],PanelGroup:ye,LineChart:Ee,RaddarChart:Le,PieChart:Be,BarChart:Me,TransactionTable:ea,TodoList:va,BoxCard:_a},data:function(){return{lineChartData:wa.newVisitis}},methods:{handleSetLineChartData:function(t){this.lineChartData=wa[t]}}},Da=Sa,ka=(a("efbe"),Object(x["a"])(Da,pe,fe,!1,null,"5bf19fac",null)),Ea=ka.exports,Oa={name:"Dashboard",components:{adminDashboard:he,editorDashboard:Ea},data:function(){return{currentRole:"adminDashboard"}},computed:Object(s["a"])({},Object(r["b"])(["roles"])),created:function(){this.roles.includes("admin")||(this.currentRole="editorDashboard")}},Ta=Oa,$a=Object(x["a"])(Ta,n,i,!1,null,null,null);e["default"]=$a.exports},"9d51":function(t,e,a){},ae29:function(t,e,a){},c81b:function(t,e,a){},da57:function(t,e,a){},e5bc7:function(t,e,a){"use strict";a("ed16")},e80e0:function(t,e,a){},ed16:function(t,e,a){},efbe:function(t,e,a){"use strict";a("9d51")},f489:function(t,e,a){"use strict";a("227b")},f849:function(t,e,a){"use strict";a("c81b")},ff75:function(t,e,a){"use strict";a("591f")}}]);