| | |
| | | <div class="PowerOnRate_text" style="width: 8%"> |
| | | <table width="85px;" align="center"> |
| | | <tr> |
| | | <td align="right"><div style="width: 15px;height: 15px;background-color: #4169E1;position: static;"/></td> |
| | | <td align="right"><div style="width: 15px;height: 15px;background-color: #6496e9;position: static;"/></td> |
| | | <td align="left">弿º</td> |
| | | </tr> |
| | | <tr> |
| | |
| | | <td align="left">å
³æº</td> |
| | | </tr> |
| | | <tr> |
| | | <td align="right"><div style="width: 15px;height: 15px;background-color: #00ee00"/></td> |
| | | <td align="right"><div style="width: 15px;height: 15px;background-color: #4ecee1"/></td> |
| | | <td align="left">è¿è¡</td> |
| | | </tr> |
| | | <tr> |
| | |
| | | top: 60, |
| | | containLabel: true |
| | | }, |
| | | toolbox: { |
| | | show : true, |
| | | padding: 15, |
| | | feature : { |
| | | saveAsImage : {show: true,title:'ä¿åå¾ç',name :'è®¾å¤æçç»è®¡æ¥è¡¨'} |
| | | } |
| | | }, |
| | | // toolbox: { |
| | | // show : true, |
| | | // padding: 15, |
| | | // feature : { |
| | | // saveAsImage : {show: true,title:'ä¿åå¾ç',name :'è®¾å¤æçç»è®¡æ¥è¡¨'} |
| | | // } |
| | | // }, |
| | | xAxis :{ |
| | | type : 'category', |
| | | data:['弿ºæ¶é¿','å
³æºæ¶é¿','è¿è¡æ¶é¿','å¾
æºæ¶é¿'], |
| | |
| | | name:'æ±ç¶å¾', |
| | | type: 'bar', |
| | | data: [this.openingLong, this.closedLong, this.processLong,this.waitingLong], |
| | | // data:[22,3,4,5], |
| | | barWidth: 25, |
| | | label:{ |
| | | show:true, |
| | |
| | | color: function(params) { |
| | | let colorList = [ |
| | | ["#6496e9","#6bded3"], |
| | | ["#ffbb65","#fdc68b"], |
| | | ["#849db8","#b4b8cc"], |
| | | ["#4fe1c5","#4ecee1"], |
| | | ["#9978fa","#88a1fa"], |
| | | // ["#9978fa","#88a1fa"], |
| | | ["#ffbb65","#fdc68b"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | color: function (params) { |
| | | let colorList = ['#4169E1', '#A8A8A8']; |
| | | let colorList = ['#849db8', '#6496e9']; |
| | | return colorList[params.dataIndex] |
| | | }, |
| | | label: { |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | color: function (params) { |
| | | var colorList = ['#00ee00', '#FCCE10']; |
| | | var colorList = ['#4ecee1', '#FCCE10']; |
| | | return colorList[params.dataIndex] |
| | | }, |
| | | label: { |
| | |
| | | this.closedLong = this.getTime(res.result.closeLong); |
| | | this.totalLong = parseInt(this.openingLong) + parseInt(this.closedLong); |
| | | this.draw(); |
| | | }else{ |
| | | this.draw() |
| | | } |
| | | }) |
| | | }, |
| | |
| | | let _this = this |
| | | getAction(this.url.getBaseTree).then((res) => { |
| | | if (res.success) { |
| | | // console.log(res.result[0].entity.tierName) |
| | | if(res.result[0]){ |
| | | _this.$set(this.queryParam, 'tierName', res.result[0].title) |
| | | _this.$set(this.queryParams, 'parentId', res.result[0].key) |
| | | _this.queryStatistical() } |
| | | // console.log(res.result[0].entity.tierName) |
| | | _this.queryStatistical() |
| | | } else { |
| | | // this.$message.warn(res.message) |
| | |
| | | containLabel: true |
| | | }, |
| | | legend:{ |
| | | selected:{ |
| | | "æ²çº¿":false, |
| | | }, |
| | | // selected:{ |
| | | // "æ²çº¿":false, |
| | | // }, |
| | | top:'0', |
| | | right:'10', |
| | | //设置åéå¤éæ¨¡å¼ |
| | | selectedMode:'single', |
| | | // selectedMode:'single', |
| | | icon:"pin", |
| | | data:[ |
| | | { |
| | | name:'æ²çº¿', |
| | | textStyle:{ |
| | | padding:4, |
| | | color:'#e957ff', |
| | | // borderWidth:1, |
| | | fontSize:16, |
| | | // borderColor:'#50E6D7' |
| | | } |
| | | }, |
| | | // { |
| | | // name:'æ²çº¿', |
| | | // textStyle:{ |
| | | // padding:4, |
| | | // color:'#e957ff', |
| | | // // borderWidth:1, |
| | | // fontSize:16, |
| | | // // borderColor:'#50E6D7' |
| | | // } |
| | | // }, |
| | | { |
| | | name:'æ±ç¶å¾', |
| | | textStyle:{ |
| | |
| | | } |
| | | }, |
| | | series:[ |
| | | { |
| | | name:'æ²çº¿', |
| | | type: 'line', |
| | | smooth:true, |
| | | symbol: 'circle', |
| | | symbolSize: 8, |
| | | label:{ |
| | | show:true, |
| | | position:"top", |
| | | textStyle:{ |
| | | color:'#000', |
| | | }, |
| | | formatter:"æ¶é¿ï¼{c}H" |
| | | }, |
| | | itemStyle: { |
| | | color: "rgb(87, 120, 225)", |
| | | borderColor: "#fff", |
| | | borderWidth: 2, |
| | | shadowColor: 'rgba(0, 0, 0, .3)', |
| | | }, |
| | | lineStyle: { |
| | | normal: { |
| | | color:"rgb(87, 120, 225)", |
| | | shadowColor: 'rgba(87, 120, 225, .4)', |
| | | shadowBlur: 8, |
| | | shadowOffsetY: 10, |
| | | shadowOffsetX: 0, |
| | | }, |
| | | }, |
| | | areaStyle: { |
| | | normal: { |
| | | color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | offset: 0, |
| | | color: 'rgba(87, 120, 225, .6)' |
| | | }, { |
| | | offset: 1, |
| | | color: 'rgba(87, 120, 225, .3)' |
| | | }]), |
| | | } |
| | | }, |
| | | data: [this.openingLong, this.closedLong, this.processLong,this.waitingLong], |
| | | }, |
| | | // { |
| | | // name:'æ²çº¿', |
| | | // type: 'line', |
| | | // smooth:true, |
| | | // symbol: 'circle', |
| | | // symbolSize: 8, |
| | | // label:{ |
| | | // show:true, |
| | | // position:"top", |
| | | // textStyle:{ |
| | | // color:'#000', |
| | | // }, |
| | | // formatter:"æ¶é¿ï¼{c}H" |
| | | // }, |
| | | // itemStyle: { |
| | | // color: "rgb(87, 120, 225)", |
| | | // borderColor: "#fff", |
| | | // borderWidth: 2, |
| | | // shadowColor: 'rgba(0, 0, 0, .3)', |
| | | // }, |
| | | // lineStyle: { |
| | | // normal: { |
| | | // color:"rgb(87, 120, 225)", |
| | | // shadowColor: 'rgba(87, 120, 225, .4)', |
| | | // shadowBlur: 8, |
| | | // shadowOffsetY: 10, |
| | | // shadowOffsetX: 0, |
| | | // }, |
| | | // }, |
| | | // areaStyle: { |
| | | // normal: { |
| | | // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ |
| | | // offset: 0, |
| | | // color: 'rgba(87, 120, 225, .6)' |
| | | // }, { |
| | | // offset: 1, |
| | | // color: 'rgba(87, 120, 225, .3)' |
| | | // }]), |
| | | // } |
| | | // }, |
| | | // data: [this.openingLong, this.closedLong, this.processLong,this.waitingLong], |
| | | // }, |
| | | { |
| | | name:'æ±ç¶å¾', |
| | | type: 'bar', |
| | | data: [this.openingLong, this.closedLong, this.processLong,this.waitingLong], |
| | | // data:[22,3,5,6], |
| | | barWidth: 25, |
| | | label:{ |
| | | show:true, |
| | |
| | | color: function(params) { |
| | | let colorList = [ |
| | | ["#6496e9","#6bded3"], |
| | | ["#ffbb65","#fdc68b"], |
| | | ["#849db8","#b4b8cc"], |
| | | ["#4fe1c5","#4ecee1"], |
| | | ["#9978fa","#88a1fa"], |
| | | // ["#9978fa","#88a1fa"], |
| | | ["#ffbb65","#fdc68b"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | |
| | | { |
| | | type: 'bar', |
| | | data: [this.openingLong,this.totalLong], |
| | | // data:[22,22], |
| | | barWidth: 25, |
| | | label:{ |
| | | show:true, |
| | | position:"top", |
| | | textStyle:{ |
| | | color:'#000', |
| | | }, |
| | | formatter:"æ¶é¿ï¼{c}H" |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: function(params) { |
| | | let colorList = [ |
| | | ["#6496e9","#6bded3"], |
| | | ["#ffbb65","#fdc68b"], |
| | | ["#9978fa","#88a1fa"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | |
| | | series: [{ |
| | | type: 'bar', |
| | | data: [this.processLong,this.openingLong], |
| | | // data:[22,22], |
| | | barWidth: 25, |
| | | label:{ |
| | | show:true, |
| | | position:"top", |
| | | textStyle:{ |
| | | color:'#000', |
| | | }, |
| | | formatter:"æ¶é¿ï¼{c}H" |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: function(params) { |
| | | let colorList = [ |
| | | ["#4fe1c5","#4ecee1"], |
| | | ["#9978fa","#88a1fa"], |
| | | ["#6496e9","#6bded3"], |
| | | ]; |
| | | // return colorList[params.dataIndex]; |
| | | let colorItem = colorList[params.dataIndex]; |
| | |
| | | this.totalLong = parseInt(this.openingLong) + parseInt(this.closedLong); |
| | | this.draw(); |
| | | } |
| | | else{ |
| | | this.draw(); |
| | | } |
| | | }) |
| | | }, |
| | | dataChange(val) { |
| | |
| | | let _this = this |
| | | getAction(this.url.getBaseTree).then((res) => { |
| | | if (res.success) { |
| | | // console.log(res.result[0].entity.tierName) |
| | | if(res.result[0]){ |
| | | _this.$set(this.queryParam, 'tierName', res.result[0].title) |
| | | } |
| | | // console.log(res.result[0].entity.tierName) |
| | | |
| | | } else { |
| | | // this.$message.warn(res.message) |
| | | this.$notification.warning({ |