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

fix:政令概览及详情

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