提交 0da3e462 authored 作者: 张伊明's avatar 张伊明

fix 政治献金接口调整

上级 9964300f
...@@ -636,7 +636,7 @@ const renderSankeyChart = () => { ...@@ -636,7 +636,7 @@ const renderSankeyChart = () => {
} }
}, },
...sourceList.map((item, index) => ({ ...sourceList.map((item, index) => ({
name: item.orgName, name: item.orgNameZh,
value: item.amount, value: item.amount,
itemStyle: { itemStyle: {
color: sankeyColors[index % sankeyColors.length] color: sankeyColors[index % sankeyColors.length]
...@@ -645,7 +645,7 @@ const renderSankeyChart = () => { ...@@ -645,7 +645,7 @@ const renderSankeyChart = () => {
]; ];
const links = sourceList.map(item => ({ const links = sourceList.map(item => ({
source: item.orgName, source: item.orgNameZhZh,
target: personName, target: personName,
value: item.amount value: item.amount
})); }));
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</div> </div>
</div> --> </div> -->
<AnalysisBox title="典型阶段耗时"> <AnalysisBox title="典型阶段耗时">
<div class="box1-main"> <div class="box1-main" :class="{ 'box1-main--full': !timeFooterText }">
<div class="box1-main-center" id="chart1"></div> <div class="box1-main-center" id="chart1"></div>
<div v-if="timeFooterText" class="box1-main-footer"> <div v-if="timeFooterText" class="box1-main-footer">
<div class="box-footer-left"> <div class="box-footer-left">
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</div> </div>
</div> --> </div> -->
<AnalysisBox title="修正案次数分析"> <AnalysisBox title="修正案次数分析">
<div class="box2-main"> <div class="box2-main" :class="{ 'box2-main--full': !amendFooterText }">
<div class="box2-main-center" id="chart2"></div> <div class="box2-main-center" id="chart2"></div>
<div v-if="amendFooterText" class="box2-main-footer"> <div v-if="amendFooterText" class="box2-main-footer">
<div class="box-footer-left"> <div class="box-footer-left">
...@@ -376,7 +376,7 @@ ...@@ -376,7 +376,7 @@
<span>反对票</span> <span>反对票</span>
</div> </div>
</div> </div>
<div class="box3-main"> <div class="box3-main" :class="{ 'box3-main--full': !voteFooterText }">
<div class="box3-main-center"> <div class="box3-main-center">
<div class="box3-main-center-header"> <div class="box3-main-center-header">
<div class="box3-main-center-header-box1">立法阶段</div> <div class="box3-main-center-header-box1">立法阶段</div>
...@@ -1105,9 +1105,15 @@ onMounted(async () => { ...@@ -1105,9 +1105,15 @@ onMounted(async () => {
.box1-main { .box1-main {
height: 368px; height: 368px;
&.box1-main--full {
.box1-main-center {
height: 340px;
}
}
.box1-main-center { .box1-main-center {
width: 792px; width: 792px;
height: 340px; height: 300px;
margin: 0 5px; margin: 0 5px;
overflow: hidden; overflow: hidden;
...@@ -1244,8 +1250,14 @@ onMounted(async () => { ...@@ -1244,8 +1250,14 @@ onMounted(async () => {
.box2-main { .box2-main {
height: 359px; height: 359px;
&.box2-main--full {
.box2-main-center {
height: 340px;
}
}
.box2-main-center { .box2-main-center {
height: 340px; height: 300px;
margin: 0 5px; margin: 0 5px;
display: flex; display: flex;
...@@ -1525,8 +1537,14 @@ onMounted(async () => { ...@@ -1525,8 +1537,14 @@ onMounted(async () => {
.box3-main { .box3-main {
height: 791px; height: 791px;
&.box3-main--full {
.box3-main-center {
height: 772px;
}
}
.box3-main-center { .box3-main-center {
height: 772px; height: 732px;
margin: 0 20px; margin: 0 20px;
overflow-x: hidden; overflow-x: hidden;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="side"> <div class="side">
<div class="side-box side-box-domain"> <div class="side-box side-box-domain">
<AnalysisBox title="涉及领域" width="520px" height="415px"> <AnalysisBox title="涉及领域" width="520px" height="415px">
<div class="right-box2-main" id="chart2"></div> <div :class="['right-box2-main', { 'right-box-main--full': !domainFooterText }]" id="chart2"></div>
<div v-if="domainFooterText" class="right-box2-footer"> <div v-if="domainFooterText" class="right-box2-footer">
<div class="right-box2-footer-left"> <div class="right-box2-footer-left">
<img src="./assets/icons/right-icon1.png" alt="" /> <img src="./assets/icons/right-icon1.png" alt="" />
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
<div class="side-box side-box-limit"> <div class="side-box side-box-limit">
<AnalysisBox title="限制手段" width="520px" height="415px"> <AnalysisBox title="限制手段" width="520px" height="415px">
<div class="right-box1-main" id="chart1"></div> <div :class="['right-box1-main', { 'right-box-main--full': !limitFooterText }]" id="chart1"></div>
<div v-if="limitFooterText" class="right-box1-footer"> <div v-if="limitFooterText" class="right-box1-footer">
<div class="right-box1-footer-left"> <div class="right-box1-footer-left">
<img src="./assets/icons/right-icon1.png" alt="" /> <img src="./assets/icons/right-icon1.png" alt="" />
...@@ -647,10 +647,14 @@ onMounted(async () => { ...@@ -647,10 +647,14 @@ onMounted(async () => {
height: 415px; height: 415px;
.right-box1-main { .right-box1-main {
width: 520px; width: 520px;
height: 375px; height: 315px;
padding: 16px; padding: 16px;
} }
.right-box-main--full {
height: 375px;
}
.right-box1-footer { .right-box1-footer {
width: 493px; width: 493px;
height: 40px; height: 40px;
...@@ -709,10 +713,14 @@ onMounted(async () => { ...@@ -709,10 +713,14 @@ onMounted(async () => {
height: 415px; height: 415px;
.right-box2-main { .right-box2-main {
width: 520px; width: 520px;
height: 375px; height: 315px;
padding: 16px; padding: 16px;
} }
.right-box-main--full {
height: 375px;
}
.right-box2-footer { .right-box2-footer {
width: 493px; width: 493px;
height: 40px; height: 40px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论