diff --git a/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue b/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue index 9ace255..5467a1d 100644 --- a/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue +++ b/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue @@ -268,7 +268,7 @@ orient: 'vertical', icon: 'circle', right: '5%', - top: '5%', + top: '10%', y: 'center', show: true, itemGap: 20, diff --git a/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue b/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue index 9ace255..5467a1d 100644 --- a/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue +++ b/src/views/oneMap/Echarts/tslyqk_constituent_3d.vue @@ -268,7 +268,7 @@ orient: 'vertical', icon: 'circle', right: '5%', - top: '5%', + top: '10%', y: 'center', show: true, itemGap: 20, diff --git a/src/views/oneMap/OverallOverview/RightBox.vue b/src/views/oneMap/OverallOverview/RightBox.vue index 99db179..f7191b5 100644 --- a/src/views/oneMap/OverallOverview/RightBox.vue +++ b/src/views/oneMap/OverallOverview/RightBox.vue @@ -23,23 +23,48 @@
- -
- +
+
+ {{ item.num }} +
+ +
+ {{ item.dw }} +
+
@@ -141,10 +166,10 @@ refresh: 1, }); const riskData = ref([ - { name: '燃气', num: '234', sl: 70, Imgurl: ranqi_icon, dw: '公里', refresh: 1 }, - { name: '排水', num: '234', sl: 80, Imgurl: ps_icon, dw: '公里', refresh: 1 }, - { name: '桥梁', num: '1', sl: 90, Imgurl: qiaoliang, dw: '座', refresh: 1 }, - { name: '隧道', num: '1', sl: 60, Imgurl: sd_icon, dw: '座', refresh: 1 }, + { name: '燃气', num: 234, sl: 178, Imgurl: ranqi_icon, dw: '公里' }, + { name: '排水', num: 234, sl: 118, Imgurl: ps_icon, dw: '公里' }, + { name: '桥梁', num: 84, sl: 0, Imgurl: qiaoliang, dw: '座' }, + { name: '隧道', num: 1, sl: 0, Imgurl: sd_icon, dw: '座' }, ]); const tableData = ref([ { name: '预警数据', num: '60', gm: '较多', Imgurl: yjsj }, @@ -156,8 +181,14 @@ function yearclick(val) { activedname.value = val.name; } -const format = percentage => { - return percentage ? `${percentage}` : `${percentage}`; +// 动态计算盒子的宽度 +const getWidth = (item, Num) => { + let widthNum = 0; + if (Num == 1) { + widthNum = (item.sl / (item.num + item.sl)) * 100; + console.log(widthNum, 'widthNum'); + } + return `width:${widthNum}%`; }; const showPanel = ref(true); //面板展开收起 // 面板内容展开收起控制 @@ -179,7 +210,7 @@