提交 398012e2 authored 作者: coderBryanFu's avatar coderBryanFu

fix:政令概览及详情

......@@ -417,6 +417,7 @@ const pageSize = ref(5); // 每页显示 5 条
const handleFieldChange = domainId => {
console.log("领域改变", domainId);
console.log("领域值 =>", selectedFieldForLatest.value);
newsCurrentPage.value = 1;
getUSGovernmentLatestDynamicData();
};
......
......@@ -210,7 +210,7 @@
</div>
</div>
<div class="bottom-content">
<CalendarHeatmap v-if="timelineData.length > 0" :timelineData="timelineData" />
<CalendarHeatmap v-if="timelineData.length > 0" :timelineData="timelineData" />
<!-- <div class="timeline-container">
<div class="timeline-list">
<div v-for="(dept, index) in timelineList" :key="index" class="dept-row">
......@@ -320,13 +320,11 @@ const monthNum = computed(() => {
}
});
// 全政府-美政府部门对我打压遏制时间线
const loadingHistory = ref(false);
const timelineData = ref([])
const timelineData = ref([]);
const getUSGovernmentSanctionHistoryData = async () => {
timelineData.value = [] // 初始化数据
timelineData.value = []; // 初始化数据
loadingHistory.value = true;
try {
const params = {
......@@ -378,7 +376,7 @@ const getUSGovernmentSanctionHistoryData = async () => {
// sanctionId: item.sanctionId
// });
// });
// //统计完成后生成新的数组
// let fArr = []
// rawList.forEach((item)=>{
......@@ -803,12 +801,17 @@ const handleGetSanList = async () => {
const res = await getSanTypeList(params);
console.log("制裁手段列表", res);
if (res.code === 200 && res.data) {
methodOptions.value = res.data.map(item => {
let _methodOptions = res.data.map(item => {
return {
label: item.name,
value: item.id
};
});
_methodOptions.unshift({
label: "全部制裁手段",
value: ""
});
methodOptions.value = _methodOptions;
methodValue.value = "";
}
} catch (error) {}
......
......@@ -1062,16 +1062,20 @@ const initRightDonut = async () => {
{
type: "graph",
layout: "circular",
circular: {
rotateLabel: true
},
symbolSize: 80,
roam: true,
label: {
show: true
show: true,
position: "outside"
},
edgeSymbol: ["circle", ""],
edgeSymbolSize: [4, 80],
edgeLabel: {
fontSize: 20,
show: false
show: true
},
data: data,
// links: [],
......@@ -1232,7 +1236,12 @@ const getPredictionList = async () => {
const res = await getPrediction();
if (res && res.code === 200) {
console.log("----getPredictionList", res.data);
warningList.value = res.data;
warningList.value = res.data.map(item => {
return {
...item,
statementList: item.statementList.reverse()
};
});
}
} catch (error) {
console.error("获取联盟动态接口失败:", error);
......@@ -2055,7 +2064,7 @@ watch(activeDate, async () => {
.area-left {
width: 792px;
height: 500px;
height: 520px;
box-sizing: border-box;
border-radius: var(---10, 10px);
/* 业务系统/模块阴影 */
......@@ -2098,7 +2107,7 @@ watch(activeDate, async () => {
.area-right {
width: 792px;
height: 500px;
height: 520px;
box-sizing: border-box;
border-radius: var(---10, 10px);
/* 业务系统/模块阴影 */
......@@ -2134,8 +2143,8 @@ watch(activeDate, async () => {
.right-content {
width: 100%;
height: calc(100% - 48px);
padding: 33px 48px 59px 50px;
height: 450px;
// padding: 33px 48px 59px 50px;
}
}
}
......
......@@ -18,8 +18,8 @@
<div
class="left-box-bottom-item"
:class="{ leftBoxBottomItemActive: activeTitle === item.name }"
v-for="(item, index) in mainHeaderBtnList"
:key="index"
v-for="item in mainHeaderBtnList"
:key="item.path"
@click="handleClickMainHeaderBtn(item)"
>
<div class="icon">
......@@ -133,6 +133,7 @@
import { ref, onMounted } from "vue";
import router from "@/router";
import { useRoute } from "vue-router";
import { ElMessage } from "element-plus";
import { getBillInfoGlobal, getBillFullText } from "@/api/bill";
const route = useRoute();
......@@ -227,6 +228,10 @@ const mainHeaderBtnList = ref([
const activeTitle = ref("法案概况");
const handleClickMainHeaderBtn = item => {
if (["影响分析", "相关情况"].includes(item.name)) {
ElMessage.warning("当前功能正在开发中,敬请期待!");
return;
}
activeTitle.value = item.name;
window.sessionStorage.setItem("activeTitle", activeTitle.value);
router.push({
......
......@@ -1024,16 +1024,19 @@ export const getMultipleBarChart_m = object => {
type: "value",
splitNumber: 5,
alignTicks: false,
name: "个",
nameLocation: "end",
nameGap: 10,
nameTextStyle: {
color: "rgba(95, 101, 108, 1)",
fontSize: 14,
fontWeight: 400,
fontFamily: "Microsoft YaHei",
padding: [0, 0, 0, 0]
axisLabel: {
formatter: "{value} 个"
}
// name: "个",
// nameLocation: "end",
// nameGap: 10,
// nameTextStyle: {
// color: "rgba(95, 101, 108, 1)",
// fontSize: 14,
// fontWeight: 400,
// fontFamily: "Microsoft YaHei",
// padding: [0, 0, 0, 0]
// }
},
series: datas
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论