1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53c8c168"],{"0da4":function(t,e,a){"use strict";a("7d3c")},"5c0c0":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,"#performance #content[data-v-417c0ed2]{background:#fff;padding:.625rem 0}#performance #content .info_a[data-v-417c0ed2]{font-size:14px;line-height:1.875rem}#performance #content .info_b[data-v-417c0ed2]{font-size:32px;color:#ff672b;line-height:3rem}#performance #content .info_c[data-v-417c0ed2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.625rem}#performance #content .info_c li[data-v-417c0ed2]{width:50%;line-height:1.5rem;font-size:14px;color:#8c8c8c}#performance #content .info_c li span[data-v-417c0ed2]:last-child{color:#ff672b;font-size:18px}#performance #content .info_c li[data-v-417c0ed2]:first-child{border-right:.0625rem solid #ebebeb}",""]),t.exports=e},"7b7b":function(t,e,a){"use strict";var n=a("3eba"),i=a.n(n);a("ef97"),a("94b1"),a("c037"),a("d28f"),a("627c"),a("007d");e["a"]=i.a},"7d3c":function(t,e,a){var n=a("5c0c0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("351acc8c",n,!0,{sourceMap:!1,shadowMode:!1})},"89f88":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",{attrs:{id:"performance"}},[a("c-title",{attrs:{hide:!1,text:"营业额"}}),a("div",{attrs:{id:"content"}},[a("p",{staticClass:"info_a"},[t._v("今日营业额(万元)")]),a("p",{staticClass:"info_b"},[t._v(t._s(t.today))]),a("ul",{staticClass:"info_c"},[a("li",[a("span",[t._v("本月营业额(万元)")]),a("br"),a("span",[t._v(t._s(t.month))])]),a("li",[a("span",[t._v("总营业额(万元)")]),a("br"),a("span",[t._v(t._s(t.total))])])]),a("div",{staticStyle:{"margin-top":"20px","padding-left":"10px",width:"23rem",height:"28.675rem"},attrs:{id:"echarts-dom"}})])],1)},i=[],c=a("6968"),o=a("7b7b"),r={data:function(){return{total:"",month:"",today:"",date:[],price:[],recent:""}},activated:function(){},mounted:function(){this.getPerformance()},methods:{getPerformance:function(){var t=this;$http.get("finance.OrderAll").then((function(e){if(1==e.result){for(var a in t.total=e.data.all,t.month=e.data.month,t.today=e.data.today,t.recent=e.data.recent,t.recent)t.date.push(t.recent[a].date),t.price.push(t.recent[a].price);var n=document.getElementById("echarts-dom"),i=o["a"].init(n),c={title:{text:"最近7天营业额(万元)",textStyle:{fontSize:14,color:"#FF5511"}},xAxis:{type:"category",data:t.date,boundaryGap:!1,axisLabel:{fontSize:14,fontFamily:"Arial",interval:0,rotate:30}},yAxis:{type:"value",axisLabel:{fontFamily:"Arial"}},series:[{data:t.price,type:"line",hoverAnimatio:!0}]};i.setOption(c)}}))}},components:{cTitle:c["a"]}},d=r,s=d,l=(a("0da4"),a("2877")),f=Object(l["a"])(s,n,i,!1,null,"417c0ed2",null);e["default"]=f.exports}}]); |