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="()=>{
lg1.resize() if(lg1){
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="()=>{
lg2.resize() if(lg2){
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="()=>{
lg3.resize() if(lg3){
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="()=>{
lg4.resize() if(lg4){
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 ">
...@@ -141,8 +150,8 @@ ...@@ -141,8 +150,8 @@
<vueSeamless :class-option="optionSingleHeight" :data="listData" class="lbbody" style="overflow: hidden;"> <vueSeamless :class-option="optionSingleHeight" :data="listData" class="lbbody" style="overflow: hidden;">
<div class="full lbtit"> <div class="full lbtit">
<div style="line-height: 25px;display: flex;" v-for="item in listData"> <div style="line-height: 25px;display: flex;" v-for="item in listData">
<div style="color: #fff;white-space: nowrap; <div style="color: #fff;white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; ;" v-text="item.xmflname"></div> text-overflow: ellipsis; ;" v-text="item.xmflname"></div>
<div style="color: #fff ;" v-text="item.spjwcl"></div> <div style="color: #fff ;" v-text="item.spjwcl"></div>
<div style="color: #fff ;" v-text="item.gdgswcl"></div> <div style="color: #fff ;" v-text="item.gdgswcl"></div>
...@@ -168,7 +177,9 @@ ...@@ -168,7 +177,9 @@
测试图例 测试图例
</span> </span>
<div ref="sdt" v-echartResize="()=>{ <div ref="sdt" v-echartResize="()=>{
sdtCharts.resize() if(sdtCharts){
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: {
...@@ -1545,4 +1594,4 @@ ...@@ -1545,4 +1594,4 @@
<style lang="scss" scoped> <style lang="scss" scoped>
@import url("szkb.scss"); @import url("szkb.scss");
</style> </style>
\ No newline at end of file
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