(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23d7c284"],{"3e61":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("a-card",{attrs:{bordered:!1}},[a("a-tabs",{attrs:{defaultActiveKey:"1"},on:{change:t.callback}},[a("a-tab-pane",{key:"1",attrs:{tab:"柱状图"}},[a("a-row",[a("a-col",{attrs:{span:10}},[a("a-radio-group",{attrs:{value:t.barType},on:{change:t.statisticst}},[a("a-radio-button",{attrs:{value:"Log"}},[t._v("日志统计")]),a("a-radio-button",{attrs:{value:"ErrorLog"}},[t._v("错误日志统计")])],1)],1),a("bar",{staticClass:"statistic",attrs:{title:"日志统计",dataSource:t.countSource,height:400}})],1)],1)],1)],1)},n=[],i=a("edd9"),o=a("6cb2"),u=a("da05"),s=a("0fea"),c={name:"ArchivesStatisticst",components:{ACol:u["b"],Bar:i["default"],Pie:o["default"]},data:function(){return{description:"档案统计页面",queryParam:{},countSource:[],barType:"Log",barDate:["month","month"],barValue:[],tabStatus:"bar",url:{logStatistical:"/sys/quartzJob/logStatistical",getMonthCountInfo:"/mock/api/report/getMonthCountInfo"}}},created:function(){var t=this.url.logStatistical;this.loadDate(t,"Log",{})},methods:{loadDate:function(t,e,a){var r=this;Object(s["c"])(t,a,"get").then((function(t){if(t.success)r.countSource=[],"Log"===e&&r.getLogSource(t.result),"ErrorLog"===e&&r.getErrorLogSource(t.result);else{var a=r;a.$message.warning(t.message)}}))},getLogSource:function(t){for(var e=0;e0?this.getUrl(this.barType,{startTime:this.barValue[0]._d,endTime:this.barValue[1]._d}):this.getUrl(this.barType,{})},searchReset:function(){"pie"===this.tabStatus?this.pieValue=[]:this.barValue=[],this.getUrl(this.barType,{})},getUrl:function(t,e){var a="";"Log"===t&&(a=this.url.logStatistical),"ErrorLog"===t&&(a=this.url.getMonthCountInfo),this.loadDate(a,t,e)},handleBarDate:function(t,e){this.barValue=t,this.barDate=["date"===e[0]?"month":e[0],"date"===e[1]?"month":e[1]]},handlePieDate:function(t,e){this.pieValue=t,this.pieDate=["date"===e[0]?"month":e[0],"date"===e[1]?"month":e[1]]}}},l=c,h=(a("e1c6"),a("2877")),d=Object(h["a"])(l,r,n,!1,null,"e4f438e8",null);e["default"]=d.exports},"6cb2":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-chart",{attrs:{forceFit:!0,height:t.height,data:t.data,scale:t.scale,onClick:t.handleClick}},[a("v-tooltip",{attrs:{showTitle:!1,dataKey:"item*percent"}}),a("v-axis"),a("v-legend",{attrs:{dataKey:"item"}}),a("v-pie",{attrs:{position:"percent",color:"item","v-style":t.pieStyle,label:t.labelConfig}}),a("v-coord",{attrs:{type:"theta"}})],1)},n=[],i=a("c917"),o=a("7104"),u={name:"Pie",mixins:[i["a"]],props:{title:{type:String,default:""},height:{type:Number,default:254},dataSource:{type:Array,default:function(){return[{item:"示例一",count:40},{item:"示例二",count:21},{item:"示例三",count:17},{item:"示例四",count:13},{item:"示例五",count:9}]}}},data:function(){return{scale:[{dataKey:"percent",min:0,formatter:".0%"}],pieStyle:{stroke:"#fff",lineWidth:1},labelConfig:["percent",{formatter:function(t,e){return e.point.item+": "+t}}]}},computed:{data:function(){var t=(new o.View).source(this.dataSource);return t.transform({type:"percent",field:"count",dimension:"item",as:"percent"}),t.rows}}},s=u,c=a("2877"),l=Object(c["a"])(s,r,n,!1,null,null,null);e["default"]=l.exports},bc97:function(t,e,a){},c917:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var r={methods:{handleClick:function(t,e){this.handleEvent("click",t,e)},handleEvent:function(t,e,a){this.$emit(t,e,a)}}}},e1c6:function(t,e,a){"use strict";a("bc97")},edd9:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{style:{padding:"0 0 32px 32px"}},[a("h4",{style:{marginBottom:"20px"}},[t._v(t._s(t.title))]),a("v-chart",{attrs:{forceFit:!0,height:t.height,data:t.dataSource,scale:t.scale,padding:t.padding}},[a("v-tooltip"),a("v-axis"),a("v-bar",{attrs:{position:"x*y"}})],1)],1)},n=[],i=a("ca00"),o={name:"Bar",props:{dataSource:{type:Array,required:!0},yaxisText:{type:String,default:"y"},title:{type:String,default:""},height:{type:Number,default:254}},data:function(){return{padding:["auto","auto","40","50"]}},computed:{scale:function(){return[{dataKey:"y",alias:this.yaxisText}]}},mounted:function(){Object(i["o"])()}},u=o,s=a("2877"),c=Object(s["a"])(u,r,n,!1,null,null,null);e["default"]=c.exports}}]);