|
@@ -29,7 +29,7 @@
|
|
|
</view>
|
|
|
<view class="chart">
|
|
|
<view class="chart-b">
|
|
|
- <qiun-data-charts :canvas2d="true" type="bar" :opts="opts" :echartsH5="true" :chartData="chartData" />
|
|
|
+ <qiun-data-charts :tapLegend="false" :tooltipShow="false" :canvas2d="true" type="bar" :opts="opts" :echartsH5="true" :chartData="chartData" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="table">
|
|
@@ -60,7 +60,7 @@
|
|
|
opts: {
|
|
|
color: ["#FF8C00", "#0183FA", ],
|
|
|
// color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
|
|
|
- padding: [0, 30, 10, 10],
|
|
|
+ padding: [0, 30, 10, 0],
|
|
|
enableScroll: false,
|
|
|
legend: {
|
|
|
position: 'top',
|
|
@@ -69,8 +69,8 @@
|
|
|
},
|
|
|
xAxis: {
|
|
|
disabled: true,
|
|
|
- axisLine: false,
|
|
|
disableGrid: true,
|
|
|
+ axisLine: false,
|
|
|
fontColor: '#fff',
|
|
|
},
|
|
|
yAxis: {
|
|
@@ -173,7 +173,12 @@
|
|
|
let list2 = [];
|
|
|
data.data.hazardTotalSortSubs.forEach(function(item, index) {
|
|
|
if (index < 5) {
|
|
|
- name.push(item.deptSortName)
|
|
|
+ let newName = item.deptSortName;
|
|
|
+ if(newName.length > 6){
|
|
|
+ newName = newName.slice(0, 6) + '..';
|
|
|
+ }
|
|
|
+ // name.push(item.deptSortName)
|
|
|
+ name.push(newName)
|
|
|
list.push(item.chemical)
|
|
|
list2.push(item.coolHotdevice)
|
|
|
}
|