mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-17 16:36:03 +08:00
1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5526dd39"],{"478b":function(e,t,r){},"7fbd":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"center_bottom"},[r("Echart",{staticClass:"echarts_bottom",attrs:{options:e.options,id:"bottomLeftChart"}})],1)},n=[],o=(r("b0c0"),r("d3b7"),r("159b"),r("e100")),c={data:function(){return{options:{}}},props:{},mounted:function(){this.getData()},methods:{getData:function(){var e=this;this.pageflag=!0,Object(o["a"])("big6",{companyName:this.companyName}).then((function(t){console.log("安装计划",t),t.success?e.init(t.data):(e.pageflag=!1,e.$Message({text:t.msg,type:"warning"}))}))},init:function(e){this.options={tooltip:{trigger:"axis",backgroundColor:"rgba(0,0,0,.6)",borderColor:"rgba(147, 235, 248, .8)",textStyle:{color:"#FFF"},formatter:function(e){var t=e[0].name+"<br>";return e.forEach((function(e){e.value?"安装率"==e.seriesName?t+=e.marker+" "+e.seriesName+" : "+e.value+"%</br>":t+=e.marker+" "+e.seriesName+" : "+e.value+"个</br>":t+=e.marker+" "+e.seriesName+" : - </br>"})),t}},legend:{data:["已安装","计划安装","安装率"],textStyle:{color:"#B4B4B4"},top:"0"},grid:{left:"50px",right:"40px",bottom:"30px",top:"20px"},xAxis:{data:e.category,axisLine:{lineStyle:{color:"#B4B4B4"}},axisTick:{show:!1}},yAxis:[{splitLine:{show:!1},axisLine:{lineStyle:{color:"#B4B4B4"}},axisLabel:{formatter:"{value}"}},{splitLine:{show:!1},axisLine:{lineStyle:{color:"#B4B4B4"}},axisLabel:{formatter:"{value}% "}}],series:[{name:"已安装",type:"bar",barWidth:10,itemStyle:{normal:{barBorderRadius:5,color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"#956FD4"},{offset:1,color:"#3EACE5"}])}},data:e.barData},{name:"计划安装",type:"bar",barGap:"-100%",barWidth:10,itemStyle:{normal:{barBorderRadius:5,color:new echarts.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(156,107,211,0.8)"},{offset:.2,color:"rgba(156,107,211,0.5)"},{offset:1,color:"rgba(156,107,211,0.2)"}])}},z:-12,data:e.lineData},{name:"安装率",type:"line",smooth:!0,showAllSymbol:!0,symbol:"emptyCircle",symbolSize:8,yAxisIndex:1,itemStyle:{normal:{color:"#F02FC2"}},data:e.rateData}]}}}},s=c,i=(r("9300"),r("2877")),u=Object(i["a"])(s,a,n,!1,null,"3786acd1",null);t["default"]=u.exports},9300:function(e,t,r){"use strict";r("478b")},"93bb":function(e,t,r){"use strict";r.d(t,"a",(function(){return p})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return m}));r("5530");var a=r("c7eb"),n=r("1da1"),o=(r("d3b7"),r("99af"),r("bc3a")),c=r.n(o),s={ENC:!1,baseUrl:"http://locolhost:8888",code:401},i=s,u=(r("a18c"),i.baseUrl);c.a.CancelToken;c.a.interceptors.request.use((function(e){var t=localStorage.getItem("token");return e.headers.common["Content-Type"]="application/json;charset=utf-8",e.headers.common["token"]=t,e}),(function(e){return console.log(e),Promise.reject(e)})),c.a.interceptors.response.use((function(e){return 200!==e.status?Promise.reject(e):(e.data.code,i.code,e.data)}),(function(e){var t={success:!1,msg:"未知异常,请联系管理员!"};return Promise.reject(t)}));var l={headers:{enc:i.ENC}},b=function(e){return e},p=function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(t,r){var n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=b(r),e.next=4,c.a.get("".concat(u).concat(t),{params:r,headers:l.headers},l);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e["catch"](0),e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,r){return e.apply(this,arguments)}}(),f=function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(t,r){var n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.a.get(t,{params:r});case 3:return n=e.sent,e.abrupt("return",n);case 7:return e.prev=7,e.t0=e["catch"](0),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t,r){return e.apply(this,arguments)}}(),m=function(){var e=Object(n["a"])(Object(a["a"])().mark((function e(t,r){var n;return Object(a["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,r=b(r),e.next=4,c.a.post("".concat(u).concat(t),r,l);case 4:return n=e.sent,e.abrupt("return",n);case 8:return e.prev=8,e.t0=e["catch"](0),e.abrupt("return",e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t,r){return e.apply(this,arguments)}}()},e100:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var a=r("93bb"),n={big1:"/bigscreen/countUserNum",big2:"/bigscreen/countDeviceNum",big3:"/bigscreen/sbtx",big4:"/bigscreen/alarmNum",big5:"/bigscreen/ssyj",big6:"/bigscreen/installationPlan",big7:"/bigscreen/ranking",big8:"/bigscreen/centermap"},o=function(e,t){return a["a"](n[e],t)}}}]); |