(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-92ba96de"],{4945:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("Row",{attrs:{gutter:20}},t._l(t.inforCardData,(function(a,i){return e("i-col",{key:"infor-"+i,staticStyle:{height:"120px","padding-bottom":"10px"},attrs:{xs:12,md:8,lg:8}},[e("infor-card",{staticStyle:{"border-radius":"10px"},attrs:{shadow:"",color:a.color,icon:a.icon,"icon-size":36}},[e("p",{staticStyle:{"font-size":"24px"}},[t._v(t._s(a.count))]),e("p",[t._v(t._s(a.title))])])],1)})),1),e("div",{ref:"myChart",style:{width:"100%",height:"500px"},attrs:{id:"my_chart"}}),e("Table",{staticClass:"statisTab",attrs:{border:"",width:"80%",columns:t.columnsList,data:t.loginData,loading:t.statisLoad},scopedSlots:t._u([{key:"table_schema",fn:function(a){var i=a.row;return[e("p",[t._v(" "+t._s(i.table_schema)+" ")])]}},{key:"table_name",fn:function(a){var i=a.row;return[e("p",[t._v(" "+t._s(i.table_name)+" ")])]}}])})],1)},n=[],r=(e("ac6a"),e("75fc")),o=e("63a4"),s=e("c48b"),d=e("9349"),c=e("c9ae"),l=e("c276"),u=e("313e"),h=e.n(u),b={components:{InforCard:o["a"],CountTo:d["a"],ChartPie:c["b"],ChartBar:c["a"]},data:function(){return{token:Object(l["h"])(),loginData:[],xAxisData:[],dataNumber:0,indexNumber:0,statisLoad:!1,columnsList:[{title:"id",key:"id",align:"center"},{title:this.$t("database"),key:"table_schema",slot:"table_schema",align:"center"},{title:this.$t("table_name"),key:"table_name",slot:"table_name",align:"center"},{title:this.$t("data_size"),key:"data_length_str",align:"center"},{title:this.$t("index_size"),key:"index_length_str",align:"center"},{title:this.$t("records_num"),key:"table_rows_str",align:"center"}],inforCardData:[{title:this.$t("database_total_size"),icon:"ios-archive-outline",count:"",color:"#2d8cf0"},{title:this.$t("data_size"),icon:"ios-pulse-outline",count:"",color:"#19be6b"},{title:this.$t("index_size"),icon:"ios-git-network",count:"",color:"#ff9900"}]}},created:function(){var t=this;this.statisLoad=!0;var a=new FormData;a.append("access_token",this.token),Object(s["b"])(a).then((function(a){var e=a;200===e.ret?(t.loginData=e.data.detail,t.statisLoad=!1,t.xAxisData=[].concat(Object(r["a"])(e.data.data),Object(r["a"])(e.data.index)),e.data.data.forEach((function(a){t.dataNumber+=a.value})),e.data.index.forEach((function(a){t.indexNumber+=a.value})),t.inforCardData[0].count=e.data.total,t.inforCardData[1].count=e.data.dataTotal,t.inforCardData[2].count=e.data.indexTotal,t.getQuery()):t.$Message.error(e.msg)}))},mounted:function(){},methods:{getQuery:function(){var t=this;this.$nextTick((function(){t.createEchars()}))},createEchars:function(){var t=h.a.init(this.$refs.myChart),a={tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},series:[{name:this.$t("data_and_index_size"),type:"pie",selectedMode:"single",radius:[0,"30%"],label:{position:"inner"},labelLine:{show:!1},data:[{value:this.dataNumber,name:this.$t("data_size")},{value:this.indexNumber,name:this.$t("index_size")}]},{name:this.$t("data_and_index_size"),type:"pie",radius:["40%","55%"],label:{formatter:"{a|{a}}{abg|}\n{hr|}\n  {b|{b}：}{c}  {per|{d}%}  ",backgroundColor:"#eee",borderColor:"#aaa",borderWidth:1,borderRadius:4,rich:{a:{color:"#999",lineHeight:22,align:"center"},hr:{borderColor:"#aaa",width:"100%",borderWidth:.5,height:0},b:{fontSize:16,lineHeight:33},per:{color:"#eee",backgroundColor:"#334455",padding:[2,4],borderRadius:2}}},data:this.xAxisData}]};t.setOption(a),window.addEventListener("resize",(function(){t.resize()}))}}},f=b,_=(e("6c25"),e("2877")),m=Object(_["a"])(f,i,n,!1,null,null,null);a["default"]=m.exports},"6c25":function(t,a,e){"use strict";var i=e("d44d"),n=e.n(i);n.a},c48b:function(t,a,e){"use strict";e.d(a,"b",(function(){return n})),e.d(a,"a",(function(){return r}));var i=e("66df"),n=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Database.GetSpaceIndex",data:t})},r=function(t){return i["a"].request({method:"post",url:"api/admin.php?s=Admin.Database.GetProcess",data:t})}},d44d:function(t,a,e){}}]);