Commit d47f4a6a authored by 李苏's avatar 李苏 💬

大屏数据排序。接口取值调整,部分字段样式调整,resize优化

parent a8d51252
...@@ -21,7 +21,10 @@ ...@@ -21,7 +21,10 @@
{{lqndylName1}} {{lqndylName1}}
</span> </span>
<div v-echartResize="()=>{ <div v-echartResize="()=>{
if(lg1){
lg1.resize() lg1.resize()
}
}" ref="lg1" class="com-count-body"> }" ref="lg1" class="com-count-body">
</div> </div>
...@@ -31,7 +34,9 @@ ...@@ -31,7 +34,9 @@
{{lqndylName2}} {{lqndylName2}}
</span> </span>
<div v-echartResize="()=>{ <div v-echartResize="()=>{
if(lg2){
lg2.resize() lg2.resize()
}
}" ref="lg2" class="com-count-body"> }" ref="lg2" class="com-count-body">
</div> </div>
...@@ -41,7 +46,7 @@ ...@@ -41,7 +46,7 @@
</div> </div>
<div class="second"> <div class="second">
<div class="itemtitle maintitle " style=""> <div class="itemtitle maintitle " style="">
淮安公司预算执行进度全排名:{{hapm}} 淮安公司预算执行进度全排名:{{hapm}}
</div> </div>
<!-- 地图--> <!-- 地图-->
<div class="itemmain boxall "> <div class="itemmain boxall ">
...@@ -70,7 +75,9 @@ ...@@ -70,7 +75,9 @@
{{lhName1}} {{lhName1}}
</span> </span>
<div v-echartResize="()=>{ <div v-echartResize="()=>{
if(lg3){
lg3.resize() lg3.resize()
}
}" ref="lg3" class="com-count-body"> }" ref="lg3" class="com-count-body">
</div> </div>
...@@ -80,7 +87,9 @@ ...@@ -80,7 +87,9 @@
{{lhName2}} {{lhName2}}
</span> </span>
<div v-echartResize="()=>{ <div v-echartResize="()=>{
if(lg4){
lg4.resize() lg4.resize()
}
}" ref="lg4" class="com-count-body"> }" ref="lg4" class="com-count-body">
</div> </div>
...@@ -112,10 +121,10 @@ ...@@ -112,10 +121,10 @@
<i class="i3"></i> <i class="i3"></i>
<i class="i4"></i> <i class="i4"></i>
<div class="full "> <div class="full ">
<span class="com-count-title"> <!-- <span class="com-count-title">
预算执行进度-淮安本部 预算执行进度-淮安本部
</span> </span> -->
<div class="com-count-body"> <div class="com-count-body" style="height: 100%;" >
<!-- 标题--> <!-- 标题-->
<div class="lbbt"> <div class="lbbt">
<div class="flex1 text-center "> <div class="flex1 text-center ">
...@@ -168,7 +177,9 @@ ...@@ -168,7 +177,9 @@
测试图例 测试图例
</span> </span>
<div ref="sdt" v-echartResize="()=>{ <div ref="sdt" v-echartResize="()=>{
if(sdtCharts){
sdtCharts.resize() sdtCharts.resize()
}
}" class="com-count-body"> }" class="com-count-body">
</div> </div>
</div> </div>
...@@ -213,6 +224,11 @@ ...@@ -213,6 +224,11 @@
}, },
data() { data() {
return { return {
/* echart实例*/
lg1:null,
lg2:null,
lg3:null,
lg4:null,
/* 定时器id*/ /* 定时器id*/
DELAYNUM: null, DELAYNUM: null,
/* 两区农电预算一览 */ /* 两区农电预算一览 */
...@@ -257,17 +273,6 @@ ...@@ -257,17 +273,6 @@
let habbList = records.filter(item => { let habbList = records.filter(item => {
return item.bmName == '淮安供电公司本部' return item.bmName == '淮安供电公司本部'
}) })
/* 展示数据查询*/
if (habbList.length > 0) {
let bmid = habbList[0].bmid
this.$post('hafms/yszxjdlog/queryRepDetail', {
bmid: bmid
}).then(res => {
if (res.success) {
this.listData = res.data.records || []
}
})
}
let jhxList = records.filter(item => { let jhxList = records.filter(item => {
return item.bmName == '金湖县供电公司' return item.bmName == '金湖县供电公司'
}) })
...@@ -280,7 +285,15 @@ ...@@ -280,7 +285,15 @@
let lsxList = records.filter(item => { let lsxList = records.filter(item => {
return item.bmName == '涟水县供电公司' return item.bmName == '涟水县供电公司'
}) })
/* 滚动表格数据*/
this.$post('hafms/yszxjdlog/queryRepDetail', {
}).then(res => {
if (res.success) {
this.listData = res.data.records.filter(item=>{
return item.gsbz=='Y'
})
}
})
// 初始地图JSON数据 // 初始地图JSON数据
this.$nextTick(() => { this.$nextTick(() => {
document.getElementById("szkb").addEventListener('dblclick', function(e) { document.getElementById("szkb").addEventListener('dblclick', function(e) {
...@@ -339,6 +352,12 @@ ...@@ -339,6 +352,12 @@
/* 开始构建参数*/ /* 开始构建参数*/
const LENGTH = 6 const LENGTH = 6
/* 选取前LENGTH个展示*/ /* 选取前LENGTH个展示*/
lxh1.sort(function(a, b) {
return b.ndysmb - a.ndysmb;
});
lxh2.sort(function(a, b) {
return b.ndysmb - a.ndysmb;
});
let showLxg1 = lxh1.filter((item, index) => { let showLxg1 = lxh1.filter((item, index) => {
if (index < LENGTH) { if (index < LENGTH) {
return true return true
...@@ -378,6 +397,12 @@ ...@@ -378,6 +397,12 @@
}) })
const LENGTH = 6 const LENGTH = 6
lxh1.sort(function(a, b) {
return b.ndysmb - a.ndysmb;
});
lxh2.sort(function(a, b) {
return b.ndysmb - a.ndysmb;
});
/* 选取前LENGTH个展示*/ /* 选取前LENGTH个展示*/
let showLxg1 = lxh1.filter((item, index) => { let showLxg1 = lxh1.filter((item, index) => {
if (index < LENGTH) { if (index < LENGTH) {
...@@ -877,6 +902,12 @@ ...@@ -877,6 +902,12 @@
}, },
}, },
axisLabel: { axisLabel: {
formatter: function(value) {
if (value.length > 7) {
return value.slice(0, 7) + '...';
}
return value;
},
color: "#fff", color: "#fff",
fontSize: 10, fontSize: 10,
interval: 0, interval: 0,
...@@ -1031,6 +1062,12 @@ ...@@ -1031,6 +1062,12 @@
color: "#fff", color: "#fff",
fontSize: 10, fontSize: 10,
interval: 0, interval: 0,
formatter: function(value) {
if (value.length > 7) {
return value.slice(0,7) + '...';
}
return value;
},
}, },
}, },
yAxis: { yAxis: {
...@@ -1183,6 +1220,12 @@ ...@@ -1183,6 +1220,12 @@
color: "#fff", color: "#fff",
fontSize: 10, fontSize: 10,
interval: 0, interval: 0,
formatter: function(value) {
if (value.length > 7) {
return value.slice(0, 7) + '...';
}
return value;
},
}, },
}, },
yAxis: { yAxis: {
...@@ -1335,6 +1378,12 @@ ...@@ -1335,6 +1378,12 @@
color: "#fff", color: "#fff",
fontSize: 10, fontSize: 10,
interval: 0, interval: 0,
formatter: function(value) {
if (value.length > 7) {
return value.slice(0, 7) + '...';
}
return value;
},
}, },
}, },
yAxis: { yAxis: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment