(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4beb77b6"],{"5fd4":function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"a",(function(){return a}));var s=o("b775");function i(t){return Object(s["a"])({url:"/pc/warehouse/homeStatistics/getGoodsNumPrice",method:"get",params:t})}function a(t){return Object(s["a"])({url:"/pc/warehouse/homeStatistics/getGoodsNumByMonth",method:"get",params:t})}},9794:function(t,e,o){"use strict";o("e686")},d472:function(t,e,o){"use strict";o.r(e);var s=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticStyle:{width:"100%"}},[o("el-card",{staticClass:"box-card"},[o("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[o("span",{staticClass:"font-18 font-bold"},[t._v("资产增长/报废统计图(数量)")])]),t._v(" "),o("div",{attrs:{id:"ZCZZ"}})])],1)},i=[],a=o("5fd4"),n=o("313e"),r={name:"XYZC",props:{activeId:{type:String,default:""}},data:function(){return{myChart:null,options:{}}},mounted:function(){this.getCenterLine()},methods:{getCenterLine:function(){var t=this,e=document.getElementById("ZCZZ");this.myChart=n["init"](e),window.addEventListener("resize",(function(){t.changeWidth()})),this.options={color:["#5BE1FD","#FFD15C"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:["资产增长","资产报废"]},toolbox:{show:!1},grid:{left:"30",right:"30",bottom:"30px"},xAxis:[{type:"category",axisTick:{show:!1},data:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]}],yAxis:[{type:"value"}],series:[{name:"资产增长",type:"line",barGap:0,smooth:!0,emphasis:{focus:"series"},data:[],lineStyle:{width:2,color:"#5BE1FD"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(91, 225, 253, .6)"},{offset:1,color:"rgba(91, 225, 253, 0)"}],global:!1}}},{name:"资产报废",type:"line",smooth:!0,emphasis:{focus:"series"},data:[],lineStyle:{width:2,color:"#FFD15C"},areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(255, 209, 92, .6)"},{offset:1,color:"rgba(255, 209, 92, 0)"}],global:!1}}}]},this.options&&this.myChart.setOption(this.options),Object(a["a"])().then((function(e){var o=[],s=[];e.map((function(t){o.push(t.addTotalNum),s.push(t.reduceTotalNum)})),t.options.series[0].data=o,t.options.series[1].data=s,t.myChart.setOption(t.options)}))},changeWidth:function(){this.myChart.resize()}}},c=r,l=(o("9794"),o("2877")),d=Object(l["a"])(c,s,i,!1,null,"8d597238",null);e["default"]=d.exports},e686:function(t,e,o){}}]);
|