提交 03637e95 authored 作者: 闫鹏's avatar 闫鹏

合并分支 'yp-dev' 到 'pre'

Yp dev 查看合并请求 !356
流水线 #513 已通过 于阶段
in 5 分 27 秒
...@@ -145,7 +145,9 @@ ...@@ -145,7 +145,9 @@
item.sanTypeId == allSanTypeIds[0] ? "新增中国实体" : "新增物项" item.sanTypeId == allSanTypeIds[0] ? "新增中国实体" : "新增物项"
}}</span> }}</span>
</div> </div>
<div class="box1-absolute-num">{{ item.cnEntityCount }}</div> <div class="box1-absolute-num">
{{ item.cnEntityCount }}{{ item.sanTypeId == allSanTypeIds[0] ? "家" : "类" }}
</div>
</div> </div>
</div> </div>
</el-carousel-item> </el-carousel-item>
...@@ -328,9 +330,10 @@ ...@@ -328,9 +330,10 @@
<div <div
style="display: flex; justify-content: center; align-items: center; gap: 5px" style="display: flex; justify-content: center; align-items: center; gap: 5px"
> >
<el-tag v-for="tag in scope.row.tags" :key="tag" :type="getTagType(tag)">{{ <AreaTag v-for="tag in scope.row.tags" :key="tag" :tagName="tag" />
<!-- <el-tag v-for="tag in scope.row.tags" :key="tag" :type="getTagType(tag)">{{
tag tag
}}</el-tag> }}</el-tag> -->
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
...@@ -838,7 +841,7 @@ const handleToPosi = id => { ...@@ -838,7 +841,7 @@ const handleToPosi = id => {
const isRiskOverviewDetailOpen = ref(false); const isRiskOverviewDetailOpen = ref(false);
const riskOverviewDetailRow = ref(null); const riskOverviewDetailRow = ref(null);
const handleToRiskSignalDetail = (item) => { const handleToRiskSignalDetail = item => {
riskOverviewDetailRow.value = item ?? null; riskOverviewDetailRow.value = item ?? null;
isRiskOverviewDetailOpen.value = true; isRiskOverviewDetailOpen.value = true;
}; };
...@@ -3783,7 +3786,7 @@ const handleMediaClick = item => { ...@@ -3783,7 +3786,7 @@ const handleMediaClick = item => {
position: absolute; position: absolute;
right: 0px; right: 0px;
bottom: 15px; bottom: 15px;
z-index: 2; z-index: 999;
:deep(.ai-pane-wrapper) { :deep(.ai-pane-wrapper) {
display: none; display: none;
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<div class="content"> <div class="content">
<div class="info"> <div class="info">
<div class="title">近期制裁新增</div> <div class="title">近期制裁新增</div>
<!-- <div class="subtitle">{{ totalCount.latestTime }}</div> --> <div class="subtitle">{{ totalCount.latestTime }}</div>
</div> </div>
<div class="number"> <div class="number">
<span class="num">{{ totalCount.latestTimeCount }}</span> <span class="num">{{ totalCount.latestTimeCount }}</span>
...@@ -412,8 +412,8 @@ const totalCount = ref(0); ...@@ -412,8 +412,8 @@ const totalCount = ref(0);
const getTotalCountData = async () => { const getTotalCountData = async () => {
try { try {
const res = await getTotalCount(sanTypeId.value); const res = await getTotalCount(sanTypeId.value);
console.log('统计', res); console.log("统计", res);
totalCount.value = res.data || 0; totalCount.value = res.data || 0;
} catch (error) { } catch (error) {
console.error("获取实体清单-数据统计-总量统计失败:", error); console.error("获取实体清单-数据统计-总量统计失败:", error);
...@@ -1195,49 +1195,49 @@ const handlePieChartClick1 = val => { ...@@ -1195,49 +1195,49 @@ const handlePieChartClick1 = val => {
query: params query: params
}); });
window.open(route.href, "_blank"); window.open(route.href, "_blank");
} };
// 跳转到数据资源库 // 跳转到数据资源库
const handleToDataLibrary = () => { const handleToDataLibrary = () => {
const route = router.resolve({ const route = router.resolve({
path: "/dataLibrary/dataEntityList", path: "/dataLibrary/dataEntityList",
query:{ query: {
isCnEntityOnly: true isCnEntityOnly: true
} }
}); });
window.open(route.href, "_blank"); window.open(route.href, "_blank");
} };
const handleToDataLibrary1 = () => { const handleToDataLibrary1 = () => {
const route = router.resolve({ const route = router.resolve({
path: "/dataLibrary/dataEntityList", path: "/dataLibrary/dataEntityList",
query:{ query: {
isCnEntityOnly: true, isCnEntityOnly: true,
isHalfRule: true isHalfRule: true
} }
}); });
window.open(route.href, "_blank"); window.open(route.href, "_blank");
} };
const handleToDataLibrary2 = () => { const handleToDataLibrary2 = () => {
const route = router.resolve({ const route = router.resolve({
path: "/dataLibrary/dataEntityList", path: "/dataLibrary/dataEntityList",
query:{ query: {
selectedDate: JSON.stringify([currentYear+'01-01', currentYear+ '12-31']) selectedDate: JSON.stringify([currentYear + "01-01", currentYear + "12-31"])
} }
}); });
window.open(route.href, "_blank"); window.open(route.href, "_blank");
} };
const handleToDataLibrary3 = (time) => { const handleToDataLibrary3 = time => {
const route = router.resolve({ const route = router.resolve({
path: "/dataLibrary/dataEntityList", path: "/dataLibrary/dataEntityList",
query:{ query: {
selectedDate: JSON.stringify([time, time]) selectedDate: JSON.stringify([time, time])
} }
}); });
window.open(route.href, "_blank"); window.open(route.href, "_blank");
} };
onMounted(() => { onMounted(() => {
sanTypeId.value = route.query.sanTypeId || ""; sanTypeId.value = route.query.sanTypeId || "";
...@@ -1280,7 +1280,7 @@ onMounted(() => { ...@@ -1280,7 +1280,7 @@ onMounted(() => {
box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1); box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1);
position: relative; position: relative;
cursor: pointer; cursor: pointer;
&:hover{ &:hover {
background: var(--color-primary-2); background: var(--color-primary-2);
} }
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<div class="content"> <div class="content">
<div class="info"> <div class="info">
<div class="title">近期制裁新增</div> <div class="title">近期制裁新增</div>
<!-- <div class="subtitle">{{ totalCount.latestTime }}</div> --> <div class="subtitle">{{ totalCount.latestTime }}</div>
</div> </div>
<div class="number"> <div class="number">
<span class="num">{{ totalCount.latestTimeCount }}</span> <span class="num">{{ totalCount.latestTimeCount }}</span>
...@@ -1296,7 +1296,7 @@ onMounted(() => { ...@@ -1296,7 +1296,7 @@ onMounted(() => {
width: 1601px; width: 1601px;
margin: 0 auto; margin: 0 auto;
padding-top: 16px; padding-top: 16px;
padding-bottom: 50px; // padding-bottom: 50px;
.nav { .nav {
width: 100%; width: 100%;
...@@ -1723,7 +1723,7 @@ onMounted(() => { ...@@ -1723,7 +1723,7 @@ onMounted(() => {
position: absolute; position: absolute;
right: 0px; right: 0px;
bottom: 15px; bottom: 15px;
z-index: 2; z-index: 999;
:deep(.ai-pane-wrapper) { :deep(.ai-pane-wrapper) {
display: none; display: none;
} }
......
...@@ -815,7 +815,7 @@ const handleToPosi = id => { ...@@ -815,7 +815,7 @@ const handleToPosi = id => {
const isRiskOverviewDetailOpen = ref(false); const isRiskOverviewDetailOpen = ref(false);
const riskOverviewDetailRow = ref(null); const riskOverviewDetailRow = ref(null);
const handleToRiskSignalDetail = (item) => { const handleToRiskSignalDetail = item => {
riskOverviewDetailRow.value = item ?? null; riskOverviewDetailRow.value = item ?? null;
isRiskOverviewDetailOpen.value = true; isRiskOverviewDetailOpen.value = true;
}; };
...@@ -1144,7 +1144,7 @@ const radarOption = ref({ ...@@ -1144,7 +1144,7 @@ const radarOption = ref({
confine: true confine: true
}, },
legend: { legend: {
show: false, show: true,
top: "0%", top: "0%",
icon: "circle", icon: "circle",
itemWidth: 12, itemWidth: 12,
...@@ -1212,7 +1212,7 @@ const fetchRadarData = async checked => { ...@@ -1212,7 +1212,7 @@ const fetchRadarData = async checked => {
"rgba(159, 122, 234, 1)", "rgba(159, 122, 234, 1)",
"rgba(90, 200, 220, 1)" "rgba(90, 200, 220, 1)"
]; ];
console.log("图例 chaxun =>", data);
const seriesData = data.map((sanItem, index) => { const seriesData = data.map((sanItem, index) => {
// 创建一个映射,将领域名称映射到数量 // 创建一个映射,将领域名称映射到数量
const domainMap = {}; const domainMap = {};
...@@ -1237,6 +1237,8 @@ const fetchRadarData = async checked => { ...@@ -1237,6 +1237,8 @@ const fetchRadarData = async checked => {
}; };
}); });
console.log("图例 chaxun 12 =>", seriesData);
// 更新雷达图指标 // 更新雷达图指标
let maxValue = Math.max(...seriesData.flatMap(item => item.value)) * 1.2; let maxValue = Math.max(...seriesData.flatMap(item => item.value)) * 1.2;
// 向上取整到最近的100的倍数,避免小数导致 ticks 不可读警告 // 向上取整到最近的100的倍数,避免小数导致 ticks 不可读警告
...@@ -1258,6 +1260,7 @@ const fetchRadarData = async checked => { ...@@ -1258,6 +1260,7 @@ const fetchRadarData = async checked => {
} }
}; };
}); });
console.log("图例 =>", radarOption.value);
radarChart.interpret({ type: "雷达图", name: "实体清单领域分布情况", data: data }); radarChart.interpret({ type: "雷达图", name: "实体清单领域分布情况", data: data });
} }
} catch (error) { } catch (error) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论