1 line
26 KiB
JavaScript
1 line
26 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5b80bfef"],{"052a":function(t,e,a){"use strict";a.d(e,"h",(function(){return n})),a.d(e,"r",(function(){return r})),a.d(e,"s",(function(){return o})),a.d(e,"q",(function(){return l})),a.d(e,"z",(function(){return s})),a.d(e,"a",(function(){return c})),a.d(e,"e",(function(){return u})),a.d(e,"u",(function(){return h})),a.d(e,"v",(function(){return p})),a.d(e,"k",(function(){return d})),a.d(e,"j",(function(){return f})),a.d(e,"f",(function(){return m})),a.d(e,"b",(function(){return g})),a.d(e,"g",(function(){return y})),a.d(e,"x",(function(){return b})),a.d(e,"o",(function(){return v})),a.d(e,"p",(function(){return w})),a.d(e,"y",(function(){return x})),a.d(e,"t",(function(){return S})),a.d(e,"i",(function(){return O})),a.d(e,"n",(function(){return j})),a.d(e,"c",(function(){return k})),a.d(e,"d",(function(){return L})),a.d(e,"m",(function(){return C})),a.d(e,"l",(function(){return P})),a.d(e,"w",(function(){return M}));var i=a("b775");function n(t){return Object(i["a"])({url:"/hakocompany/ChargeReport/companyBudgetCompleteDetail",method:"post",data:t})}function r(t){return Object(i["a"])({url:"/hakocompany/home/getTotalAccidentPastRecordsHisByCompany",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/hakocompany/WorkOrder/total/num",method:"post",data:t})}function l(t){return Object(i["a"])({url:"/hakocompany/CurrentData/getCurrentData",method:"post",data:t,timeout:3e4})}function s(t){return Object(i["a"])({url:"/hakocompany/ProjectReturnStatistics/trackingTable",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/hakocompany/DeviceBaseInfo/pageList",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/hakocompany/ProjectIncomeStatistics/arrearsHouseByCompany",method:"post",data:t})}function h(t){return Object(i["a"])({url:"/hakocompany/ProjectExponentStatistics/findByCompanyId",method:"post",data:t})}function p(t){return Object(i["a"])({url:"/hakocompany/ProjectExponentStatistics/pageList",method:"post",data:t})}function d(t){return Object(i["a"])({url:"/data/FinanceTinyBrain/companyProjectMap",method:"post",data:t})}function f(t){return Object(i["a"])({url:"/hakocompany/CompanyFinance/companyFinanceGrowth",method:"post",data:t})}function m(t){return Object(i["a"])({url:"/hakocompany/Benefits/benefits/companyPageList",method:"post",data:t})}function g(t){return Object(i["a"])({url:"/hakocompany/Benefits/benefitsExpenditure/companyPageList",method:"post",data:t})}function y(t){return Object(i["a"])({url:"/hakocompany/Benefits/benefits/monthDetail",method:"post",data:t})}function b(t){return Object(i["a"])({url:"/hakocompany/house/queryHouseStatus",method:"post",data:t})}function v(t){return Object(i["a"])({url:"/hakocompany/DangerousSourceStatistics/statRisk",method:"post",data:t})}function w(t){return Object(i["a"])({url:"/hakocompany/ProjectExponentStatistics/getCompanyOrderStatistics",method:"post",data:t})}function x(t){return Object(i["a"])({url:"/hakocompany/home/safetyIndexStat",method:"post",data:t})}function S(t){return Object(i["a"])({url:"/company/member/memberRisk",method:"post",data:t})}function O(t){return Object(i["a"])({url:"/hakocompany/home/companyCompletedRate",method:"post",data:t})}function j(t){return Object(i["a"])({url:"/hakocompany/AgentServiceReport/createCompanyRoiAssessReport",method:"post",data:t})}function k(t){return Object(i["a"])({url:"/hakocompany/AgentServiceReport/pageList",method:"post",data:t})}function L(t){return Object(i["a"])({url:"/hakocompany/AgentServiceReport/typePageList",method:"post",data:t})}function C(t){return Object(i["a"])({url:"/hakocompany/AgentServiceReport/createCompanyReportV2",method:"post",data:t})}function P(t){return Object(i["a"])({url:"/hakocompany/AgentServiceReport/createCompanyReport",method:"post",data:t})}function M(t){return Object(i["a"])({url:"/hakocompany/TaskInspectionsStandard/ptuSmartInspectionEfficiency",method:"post",data:t})}},"0b37":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"d",(function(){return o})),a.d(e,"f",(function(){return l})),a.d(e,"e",(function(){return s}));a("8dee"),a("e680"),a("4057"),a("fc02");function i(t,e){var a,i,n,r;try{a=t.toString().split(".")[1].length}catch(l){a=0}try{i=e.toString().split(".")[1].length}catch(l){i=0}if(r=Math.abs(a-i),n=Math.pow(10,Math.max(a,i)),r>0){var o=Math.pow(10,r);a>i?(t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""))*o):(t=Number(t.toString().replace(".",""))*o,e=Number(e.toString().replace(".","")))}else t=Number(t.toString().replace(".","")),e=Number(e.toString().replace(".",""));return(t+e)/n}function n(t,e){var a,i,n=0,r=0;try{n=t.toString().split(".")[1].length}catch(o){}try{r=e.toString().split(".")[1].length}catch(o){}return a=Number(t.toString().replace(".","")),i=Number(e.toString().replace(".","")),a/i*Math.pow(10,r-n)}function r(t,e){var a=0,i=t.toString(),n=e.toString();try{a+=i.split(".")[1].length}catch(r){}try{a+=n.split(".")[1].length}catch(r){}return Number(i.replace(".",""))*Number(n.replace(".",""))/Math.pow(10,a)}function o(t,e){var a,i,n,r;try{a=t.toString().split(".")[1].length}catch(o){a=0}try{i=e.toString().split(".")[1].length}catch(o){i=0}return n=Math.pow(10,Math.max(a,i)),r=a>=i?a:i,(Math.round(t*n-e*n)/n).toFixed(r)}function l(t,e){if(0==t&&(t=0),/[^[\-|0-9][0-9]*]/.test(t))return"0";if(null==t||""===t)return"";t=t.toString().replace(/^(-\d*)$/,"$1."),t=t.toString().replace(/^(\d*)$/,"$1."),t=(t+"00").replace(/(\d*\.\d\d)\d*/,"$1"),t=t.replace(".",",");var a=/(\d)(\d{3},)/;while(a.test(t))t=t.replace(a,"$1,$2");if(t=t.replace(/,(\d\d)$/,".$1"),0===e||void 0===e){var i=t.split(".");"00"==i[1]&&(t=i[0])}return t}function s(t,e){t=t.toString();var a=t.indexOf(".");return t=-1!==a?t.substring(0,e+a+1):t.substring(0),parseFloat(t).toFixed(e)}},"1f61":function(t,e,a){"use strict";a("d961")},"1f7e":function(t,e,a){"use strict";a("f08e")},"2c23":function(t,e,a){t.exports=a("5f875")},"3e49":function(t,e,a){var i=a("e99b");i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},"53c3":function(t,e,a){var i=a("43a0"),n=i.number,r=a("2cb9"),o=n.parsePercent,l=a("cc0c");i.extendChartView({type:"liquidFill",render:function(t,e,a){var n=this.group;n.removeAll();var s=t.getData(),c=s.getItemModel(0),u=c.get("center"),h=c.get("radius"),p=a.getWidth(),d=a.getHeight(),f=Math.min(p,d),m=0,g=0,y=t.get("outline.show");y&&(m=t.get("outline.borderDistance"),g=o(t.get("outline.itemStyle.borderWidth"),f));var b,v,w,x=o(u[0],p),S=o(u[1],d),O=!1,j=t.get("shape");if("container"===j?(O=!0,b=[p/2,d/2],v=[b[0]-g/2,b[1]-g/2],w=[o(m,p),o(m,d)],h=[Math.max(v[0]-w[0],0),Math.max(v[1]-w[1],0)]):(b=o(h,f)/2,v=b-g/2,w=o(m,f),h=Math.max(v-w,0)),y){var k=F();k.style.lineWidth=g,n.add(F())}var L=O?0:x-h,C=O?0:S-h,P=null;n.add(A());var M=this._data,D=[];function I(t,e){if(j){if(0===j.indexOf("path://")){var a=i.graphic.makePath(j.slice(7),{}),n=a.getBoundingRect(),o=n.width,l=n.height;o>l?(l*=2*t/o,o=2*t):(o*=2*t/l,l=2*t);var s=e?0:x-o/2,c=e?0:S-l/2;return a=i.graphic.makePath(j.slice(7),{},new i.graphic.BoundingRect(s,c,o,l)),e&&(a.position=[-o/2,-l/2]),a}if(O){var u=e?-t[0]:x-t[0],h=e?-t[1]:S-t[1];return r.createSymbol("rect",u,h,2*t[0],2*t[1])}u=e?-t:x-t,h=e?-t:S-t;return"pin"===j?h+=t:"arrow"===j&&(h-=t),r.createSymbol(j,u,h,2*t,2*t)}return new i.graphic.Circle({shape:{cx:e?0:x,cy:e?0:S,r:t}})}function F(){var e=I(b);return e.style.fill=null,e.setStyle(t.getModel("outline.itemStyle").getItemStyle()),e}function A(){var e=I(h);e.setStyle(t.getModel("backgroundStyle").getItemStyle()),e.style.fill=null,e.z2=5;var a=I(h);a.setStyle(t.getModel("backgroundStyle").getItemStyle()),a.style.stroke=null;var n=new i.graphic.Group;return n.add(e),n.add(a),n}function N(e,a,n){var r=O?h[0]:h,c=O?d/2:h,u=s.getItemModel(e),p=u.getModel("itemStyle"),f=u.get("phase"),m=o(u.get("amplitude"),2*c),g=o(u.get("waveLength"),2*r),y=s.get("value",e),b=c-y*c*2;f=n?n.shape.phase:"auto"===f?e*Math.PI/4:f;var v=p.getItemStyle();if(!v.fill){var w=t.get("color"),j=e%w.length;v.fill=w[j]}var k=2*r,L=new l({shape:{waveLength:g,radius:r,radiusY:c,cx:k,cy:0,waterLevel:b,amplitude:m,phase:f,inverse:a},style:v,position:[x,S]});L.shape._waterLevel=b;var C=u.getModel("emphasis.itemStyle").getItemStyle();C.lineWidth=0,i.graphic.setHoverStyle(L,C);var P=I(h,!0);return P.setStyle({fill:"white"}),L.setClipPath(P),L}function z(t,e,a){var i=s.getItemModel(t),n=i.get("period"),r=i.get("direction"),o=s.get("value",t),l=i.get("phase");l=a?a.shape.phase:"auto"===l?t*Math.PI/4:l;var c=function(e){var a=s.count();return 0===a?e:e*(.2+(a-t)/a*.8)},u=0;u="auto"===n?c(5e3):"function"===typeof n?n(o,t):n;var h=0;"right"===r||null==r?h=Math.PI:"left"===r?h=-Math.PI:"none"===r?h=0:console.error("Illegal direction value for liquid fill."),"none"!==r&&i.get("waveAnimation")&&e.animate("shape",!0).when(0,{phase:l}).when(u/2,{phase:h+l}).when(u,{phase:2*h+l}).during((function(){P&&P.dirty(!0)})).start()}function $(e){var a=c.getModel("label");function n(){var e=t.getFormattedLabel(0,"normal"),a=100*s.get("value",0),i=s.getName(0)||t.name;return isNaN(a)||(i=a.toFixed(0)+"%"),null==e?i:e}var r={z2:10,shape:{x:L,y:C,width:2*(O?h[0]:h),height:2*(O?h[1]:h)},style:{fill:"transparent",text:n(),textAlign:a.get("align"),textVerticalAlign:a.get("baseline")},silent:!0},o=new i.graphic.Rect(r),l=a.get("color");i.graphic.setText(o.style,a,l);var u=new i.graphic.Rect(r),p=a.get("insideColor");i.graphic.setText(u.style,a,p),u.style.textFill=p;var d=new i.graphic.Group;d.add(o),d.add(u);var f=I(h,!0);return P=new i.graphic.CompoundPath({shape:{paths:e},position:[x,S]}),P.setClipPath(f),u.setClipPath(P),d}s.diff(M).add((function(e){var a=N(e,!1),r=a.shape.waterLevel;a.shape.waterLevel=O?d/2:h,i.graphic.initProps(a,{shape:{waterLevel:r}},t),a.z2=2,z(e,a,null),n.add(a),s.setItemGraphicEl(e,a),D.push(a)})).update((function(e,a){for(var r=M.getItemGraphicEl(a),o=N(e,!1,r),l={},c=["amplitude","cx","cy","phase","radius","radiusY","waterLevel","waveLength"],u=0;u<c.length;++u){var h=c[u];o.shape.hasOwnProperty(h)&&(l[h]=o.shape[h])}var p={},f=["fill","opacity","shadowBlur","shadowColor"];for(u=0;u<f.length;++u){h=f[u];o.style.hasOwnProperty(h)&&(p[h]=o.style[h])}O&&(l.radiusY=d/2),i.graphic.updateProps(r,{shape:l},t),r.useStyle(p),r.position=o.position,r.setClipPath(o.clipPath),r.shape.inverse=o.inverse,z(e,r,r),n.add(r),s.setItemGraphicEl(e,r),D.push(r)})).remove((function(t){var e=M.getItemGraphicEl(t);n.remove(e)})).execute(),c.get("label.show")&&n.add($(D)),this._data=s},dispose:function(){}})},"57a4":function(t,e,a){var i=a("e19a"),n=a("43a0");n.extendSeriesModel({type:"series.liquidFill",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var a=i(["value"],t.data),r=new n.List(a,this);return r.initData(t.data),r},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}})},"5d17":function(t,e,a){},"5f875":function(t,e,a){var i=a("43a0");a("57a4"),a("53c3"),i.registerVisual(i.util.curry(a("0e3e"),"liquidFill"))},7336:function(t,e,a){"use strict";a("ed54")},"73e10":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"lineCharts",staticClass:"lineCharts",attrs:{id:"lineCharts"}})},n=[],r=(a("ac67"),a("1bc7"),a("32ea"),a("e8b2")),o=(a("8dee"),a("a450"),a("5821"));a("e680"),a("3e49");a("0b37"),a("516d");var l=a("8975");a("4d28");function s(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function c(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(Object(a),!0).forEach((function(e){Object(o["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var u={name:"lineCharts",props:{data:{type:Array,default:function(){return[]}},showX:{type:Boolean,default:!0},showY:{type:Boolean,default:!0},showYLabel:{type:Boolean,default:!0},xAxis:{type:Array,default:function(){return[]}},title:{type:String,default:""},unit:{type:String,default:""},xTimeUnit:{type:String,default:""},unShowLegend:{type:Boolean,default:!1},xaxisLabelI:{type:Number,default:0},colors:{type:Array,default:function(){return["#5A8DEE","#FDAC41"]}},lineSmooth:{type:Boolean,default:!1},needRate:{type:Boolean,default:!1},owe:{type:Boolean,default:!1},weekList:{type:Array},weekStart:{type:Array},monthList:{type:Array},markline:{type:Boolean,default:!1},marklistLength:{type:Number,default:-1},marklineValue:{type:Number,default:0},showInteger:{type:Boolean,default:!1}},data:function(){return{}},watch:{data:{handler:function(t,e){this.initLineCharts()},deep:!0}},mounted:function(){var t=this;this.$nextTick((function(){t.initLineCharts()}))},methods:{formatterTip:function(t){var e=t;this.needRate&&e.length>1&&e.push(c(c({},e[0]),{},{name:"达成率",seriesName:"达成率",data:Number(e[1].value/e[0].value).toFixed(2)&&"Infinity"!==Number(e[1].value/e[0].value).toFixed(2)&&"NaN"!==Number(e[1].value/e[0].value).toFixed(2)?(100*Number(e[1].value/e[0].value)).toFixed(2):"-",value:Number(e[1].value/e[0].value).toFixed(2)&&"Infinity"!==Number(e[1].value/e[0].value).toFixed(2)&&"NaN"!==Number(e[1].value/e[0].value).toFixed(2)?(100*Number(e[1].value/e[0].value)).toFixed(2):"-"}));for(var a="".concat(e[0].name," ").concat(this.title,"<br/>"),i=0;i<e.length;i++){var n=e[i].marker;n=n.replace("width:10px","width:5px").replace("height:10px","height:5px"),this.owe?this.weekList[e[i].dataIndex]?a=this.weekList[e[i].dataIndex]+"<br/>"+this.weekStart[e[i].dataIndex]+"<br/>"+e[i].value+this.unit:this.monthList[e[i].dataIndex]&&(a=this.monthList[e[i].dataIndex]+"/"+e[i].value+this.unit+"<br/>"):a=a+n+e[i].seriesName+": "+e[i].value+(this.needRate&&2===i?"%":this.unit)+"<br/>"}return this.markline?a+"日预算线:"+this.marklineValue||"0<br/>":a},initLineCharts:function(){var t=this,e=this.$echarts.init(this.$refs.lineCharts),a=this,i=[];this.data.length>0?this.markline?this.data.map((function(e,a){a==t.marklistLength?i.push({name:e.name||"",type:"line",data:e.data,showSymbol:!1,smooth:t.lineSmooth,markLine:{data:[{yAxis:t.marklineValue}],lineStyle:{color:"#fd0100"},silent:!0,label:{position:"middle"}}}):i.push({name:e.name||"",type:"line",data:e.data,showSymbol:!1,smooth:t.lineSmooth})})):this.data.map((function(e){i.push({name:e.name||"",type:"line",data:e.data,showSymbol:!1,smooth:t.lineSmooth})})):i=[];var n={tooltip:{trigger:"axis",axisPointer:{type:"line"},backgroundColor:"rgba(26, 35, 58, 1)",borderColor:"rgba(26, 35, 58, 1)",textStyle:{color:"#fff"},extraCssText:"box-shadow:inset 0px 0px 7px 1px rgba(82, 92, 123, 1)",formatter:function(e){return t.formatterTip(e)}},legend:{show:!this.unShowLegend,orient:"horizontal",align:"auto",top:"2%",textStyle:{color:"#fff",fontSize:this.$fontSize(12)},selected:{"年初":!1,"此刻":!1,"本月回款":!0},left:"center",icon:"rect",itemWidth:15,itemHeight:3,itemGap:25},color:this.colors,grid:{left:"4%",top:"40px",right:"4%",bottom:"2%",containLabel:!0},xAxis:[{type:"category",data:this.xAxis,show:this.showX,axisLine:{show:this.showX,lineStyle:{color:"rgba(255,255,255,.1)",width:1,type:"solid"}},boundaryGap:!0,axisTick:{show:!0,inside:!0,alignWithLabel:!0,lineStyleObject:{color:"#fff"}},axisLabel:{interval:this.xaxisLabelI,show:!0,splitNumber:4,textStyle:{color:"rgba(255,255,255)",fontSize:this.$fontSize(12)},formatter:function(e){if(t.xTimeUnit){var a=Object(l["formatDate"])(e,t.xTimeUnit);return a}return e}}}],yAxis:[{type:"value",show:this.showY,nameTextStyle:{align:"center",color:"rgba(254, 254, 254, 0.3)",fontSize:this.$fontSize(12)},triggerEvent:!0,axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:this.$fontSize(12)},formatter:function(t){return a.showInteger?t%1===0?t:"":t}},axisTick:{show:!1},axisLine:{show:this.showYLabel,lineStyle:{color:"rgba(255, 255, 255, 0.3)",width:1,type:"solid"}},splitLine:{lineStyle:{color:"rgba(255, 255, 255, 0.1)",type:"dashed"}}}],series:i};this.data[0].data&&this.markline&&this.marklineValue>Math.max.apply(Math,Object(r["a"])(this.data[0].data))&&this.marklineValue>Math.max.apply(Math,Object(r["a"])(this.data[1].data))&&this.marklineValue>Math.max.apply(Math,Object(r["a"])(this.data[0].data))&&(n.yAxis[0].max=this.marklineValue),e.clear(),e.setOption(n,!0),e.on("click",(function(t){a.$emit("chartClick",t)})),window.addEventListener("resize",(function(){e.resize()}))}}},h=u,p=(a("1f7e"),a("829d")),d=Object(p["a"])(h,i,n,!1,null,"50200d07",null);e["a"]=d.exports},"93fb":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"pieCharts",staticClass:"pieCharts",attrs:{id:"pieCharts"}})},n=[],r=(a("a450"),a("8dee"),a("e680"),a("0b37")),o={name:"pie",props:{pieData:{type:Array,default:function(){return[]}},title:{type:String,default:function(){return""}},unit:{type:String,default:function(){return""}},unShowLegend:{type:Boolean,default:!1},center:{default:function(){return["50%","50%"]}},type:{type:Number,default:function(){return 0}}},data:function(){return{}},watch:{pieData:{handler:function(t,e){this.initPie()},deep:!0}},mounted:function(){this.initPie()},methods:{formatterTip:function(t){var e="",a=t.marker;return a=a.replace("width:10px","width:5px").replace("height:10px","height:5px"),e="".concat(t.seriesName,"<br/>").concat(a).concat(t.name," : ").concat(Object(r["f"])(t.value)," ").concat(this.unit?this.unit:""," (").concat(t.percent,"%)"),e},initPie:function(){var t=this,e=this.$echarts.init(this.$refs.pieCharts),a=this,i={tooltip:{trigger:"item",axisPointer:{type:"line"},backgroundColor:"rgba(26, 35, 58, 1)",borderColor:"rgba(26, 35, 58, 1)",textStyle:{color:"#fff"},extraCssText:"box-shadow:inset 0px 0px 7px 1px rgba(82, 92, 123, 1)",formatter:function(e){return t.formatterTip(e)}},legend:{orient:"vertical",selectedMode:!0,show:!this.unShowLegend,icon:"rect",botom:0,left:"left",textStyle:{color:"#fff",fontSize:this.$fontSize(13),padding:[0,0,0,5]},itemWidth:8,itemHeight:8,formatter:function(t){return"".concat(t)}},grid:{left:"4%",top:"10px",right:"4%",bottom:0,containLabel:!0},series:[{name:this.title,type:"pie",radius:this.unShowLegend?["0","85%"]:["0","70%"],center:this.center,data:this.pieData,label:{show:!0,position:"inside",formatter:function(t){return 100===t.percent?"".concat(t.percent,"%"):0===t.percent?"":Object(r["e"])(t.percent,2)+"%"}},labelLine:{show:!1}}]};1==this.type?i.color=["#ff0000","#f59a23","#ffd700","blue"]:2==this.type&&(i.color=["#24d467","#ed001e","grey","blue"]),e.clear(),e.setOption(i,!0),e.on("click",(function(t){a.$emit("pieClick",t)})),window.addEventListener("resize",(function(){e.resize()}))}}},l=o,s=(a("1f61"),a("829d")),c=Object(s["a"])(l,i,n,!1,null,"4ec396be",null);e["a"]=c.exports},c4f1:function(t,e,a){"use strict";a("5d17")},c6d9:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"pieCharts",staticClass:"pieCharts",attrs:{id:"pieCharts"}})},n=[],r=a("0b37"),o=(a("2c23"),{name:"liquidfillCharts",props:["value"],data:function(){return{}},watch:{value:{handler:function(t,e){this.initPie()},deep:!0}},mounted:function(){this.initPie()},methods:{initPie:function(){var t=this.$echarts.init(this.$refs.pieCharts),e=0;e=this.value<=59?0:this.value<=79?1:this.value<=99?2:3;var a=["rgba(250,63,67,1)","rgba(246,119,49,1)","rgba(19,160,244)","rgba(97,228,151)"],i=[[Object(r["b"])(this.value,100)],[Object(r["b"])(this.value,100),.7,,.6],[Object(r["b"])(this.value,100),.8,.7],[1]],n=[["rgba(250,63,67,1)"],[{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:1,color:"rgba(246,119,49,1)"},{offset:0,color:"rgba(233,189,40,0.6)"}],globalCoord:!1}],[{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:1,color:"rgba(66,228,237)"},{offset:0,color:"rgba(19,160,244)"}],globalCoord:!1}],[{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:1,color:"rgba(20,213,234)"},{offset:0,color:"rgba(97,228,151)"}],globalCoord:!1}]],o={title:[{text:this.value,left:"46%",top:"38%",textAlign:"center",textStyle:{fontSize:20,fontWeight:"normal",color:"#fff"}}],grid:{left:"4%",top:"10px",right:"4%",bottom:"10%",containLabel:!0},series:[{type:"liquidFill",radius:"85%",amplitude:3===e?0:"8%",data:i[e],color:n[e],animationDuration:3e3,animationDurationUpdate:1500,backgroundStyle:{opacity:0},outline:{show:!0,borderDistance:4,itemStyle:{color:"none",borderColor:a[e],borderWidth:2,shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.25)"}},label:{show:!1,formatter:"",color:"#ffffff",textStyle:{fontWeight:"normal",fontSize:13}},itemStyle:{opacity:1},emphasis:{itemStyle:{opacity:.9}}}]};t.clear(),t.setOption(o),window.addEventListener("resize",(function(){t.resize()}))}}}),l=o,s=(a("c4f1"),a("829d")),c=Object(s["a"])(l,i,n,!1,null,"947008b2",null);e["a"]=c.exports},c847:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{ref:"pieCharts",staticClass:"pieCharts",attrs:{id:"pieCharts"}})},n=[],r=(a("e680"),a("0b37")),o={name:"gauge",props:{pieData:{type:Array,default:function(){return[]}},title:{type:String,default:""},type:{type:Number,default:0},styleIsMini:{type:Boolean,default:!1},showValue:{type:Number}},data:function(){return{placeHolderStyle:{normal:{label:{show:!1},labelLine:{show:!1},color:"rgba(0,0,0,0)",borderWidth:0},emphasis:{color:"rgba(0,0,0,0)",borderWidth:0}},vdataStyle:{formatter:"{c}%",position:"center",show:!0,textStyle:{fontSize:"24",fontWeight:"normal",color:"rgba(1, 209, 255, 1)"}},radius:["80%","90%"],center:["50%","50%"]}},watch:{pieData:{handler:function(t,e){this.initPie()},deep:!0}},mounted:function(){this.initPie()},methods:{initPie:function(){var t=this.$echarts.init(this.$refs.pieCharts),e=0,a=this;this.pieData.map((function(t){e+=t.value}));var i=100,n=0;0===this.type?n=this.pieData.length>0?"0"===this.pieData[0].value||"0"===this.pieData[1].value||0===this.pieData[1].value||0===this.pieData[0].value?0:Object(r["e"])(Object(r["c"])(Object(r["b"])(this.pieData[0].value,this.pieData[1].value),100),2):0:1===this.type?n=this.pieData.length>0?0===this.pieData[1].value||0===this.pieData[0].value?0:Object(r["e"])(Object(r["c"])(Object(r["b"])(this.pieData[1].value,this.pieData[0].value),100),2):0:2===this.type?n=0:3===this.type?n=this.pieData.length>0?0===this.pieData[0].value?0:Object(r["e"])(Object(r["c"])(Object(r["b"])(this.pieData[0].value,e),100),2):0:4===this.type?n=this.pieData.length>0?0===this.pieData[1].value?0:Object(r["e"])(Object(r["c"])(Object(r["b"])(this.pieData[1].value,e),100),2):0:5===this.type?n=this.showValue:6===this.type&&(n=this.pieData.length>0?"0"===this.pieData[2].value||"0"===this.pieData[0].value||0===this.pieData[2].value||0===this.pieData[0].value?0:Object(r["e"])(Object(r["c"])(Object(r["b"])(this.pieData[2].value,this.pieData[0].value),100),2):0),n>=100&&(n=parseInt(n));var o={graphic:{elements:[{type:"text",left:"center",top:"55%",style:{text:this.title,font:this.styleIsMini?"12px Arial":"14px Arial",fill:"rgba(255, 255, 255, 1)",textAlign:"center"},onclick:function(t){a.$emit("titleClick",a.pieData)}}]},angleAxis:{show:!1,max:360*i/270,type:"value",startAngle:225,splitLine:{show:!1}},grid:{left:"4%",top:"10px",right:"4%",bottom:"10%",containLabel:!0},barMaxWidth:this.styleIsMini?4:8,radiusAxis:{show:!1,type:"category"},polar:{center:["50%","50%"],radius:"160%"},series:[{type:"bar",data:[{value:n,itemStyle:{color:{type:"linear",x:0,y:1,x2:0,y2:0,colorStops:[{offset:0,color:"#0099FF"},{offset:1,color:"#9658FF"}],global:!1}}}],barGap:"-100%",coordinateSystem:"polar",roundCap:!0,z:3},{type:"bar",data:[{value:i,itemStyle:{color:"#1598FF",opacity:.2,borderWidth:0}}],barGap:"-100%",coordinateSystem:"polar",roundCap:!0,z:1},{type:"gauge",startAngle:225,endAngle:-45,axisLine:{show:!1},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLabel:{show:!1},pointer:{show:!1},itemStyle:{color:{type:"linear",x:0,y:1,x2:0,y2:0,colorStops:[{offset:0,color:"#0099FF"},{offset:1,color:"#9658FF"}],global:!1}},detail:{formatter:function(t){return n+"%"},color:"#01D1FF",fontSize:this.styleIsMini?12:20,fontWeight:"normal",offsetCenter:this.styleIsMini?[2,-3]:[5,-4]},title:{show:!0},data:[{value:n}]}]};t.clear(),t.setOption(o),window.addEventListener("resize",(function(){t.resize()}))}}},l=o,s=(a("7336"),a("829d")),c=Object(s["a"])(l,i,n,!1,null,"b957b2fe",null);e["a"]=c.exports},cc0c:function(t,e,a){var i=a("43a0");function n(t,e,a,i){return 0===e?[[t+.5*a/Math.PI/2,i/2],[t+.5*a/Math.PI,i],[t+a/4,i]]:1===e?[[t+.5*a/Math.PI/2*(Math.PI-2),i],[t+.5*a/Math.PI/2*(Math.PI-1),i/2],[t+a/4,0]]:2===e?[[t+.5*a/Math.PI/2,-i/2],[t+.5*a/Math.PI,-i],[t+a/4,-i]]:[[t+.5*a/Math.PI/2*(Math.PI-2),-i],[t+.5*a/Math.PI/2*(Math.PI-1),-i/2],[t+a/4,0]]}t.exports=i.graphic.extendShape({type:"ec-liquid-fill",shape:{waveLength:0,radius:0,radiusY:0,cx:0,cy:0,waterLevel:0,amplitude:0,phase:0,inverse:!1},buildPath:function(t,e){null==e.radiusY&&(e.radiusY=e.radius);var a=Math.max(2*Math.ceil(2*e.radius/e.waveLength*4),8);while(e.phase<2*-Math.PI)e.phase+=2*Math.PI;while(e.phase>0)e.phase-=2*Math.PI;var i=e.phase/Math.PI/2*e.waveLength,r=e.cx-e.radius+i-2*e.radius;t.moveTo(r,e.waterLevel);for(var o=0,l=0;l<a;++l){var s=l%4,c=n(l*e.waveLength/4,s,e.waveLength,e.amplitude);t.bezierCurveTo(c[0][0]+r,-c[0][1]+e.waterLevel,c[1][0]+r,-c[1][1]+e.waterLevel,c[2][0]+r,-c[2][1]+e.waterLevel),l===a-1&&(o=c[2][0])}e.inverse?(t.lineTo(o+r,e.cy-e.radiusY),t.lineTo(r,e.cy-e.radiusY),t.lineTo(r,e.waterLevel)):(t.lineTo(o+r,e.cy+e.radiusY),t.lineTo(r,e.cy+e.radiusY),t.lineTo(r,e.waterLevel)),t.closePath()}})},d961:function(t,e,a){},ed54:function(t,e,a){},f08e:function(t,e,a){}}]); |