提交 d2be76a4 authored 作者: yanpeng's avatar yanpeng

bugfix-6

上级 9688726b
...@@ -178,3 +178,11 @@ export function getVertexInfo(sanRecordId) { ...@@ -178,3 +178,11 @@ export function getVertexInfo(sanRecordId) {
export function getEdgeInfo(edgeId) { export function getEdgeInfo(edgeId) {
return http.get(`/api/sanctionList/invFin/getEdgeInfo?edgeId=${edgeId}`); return http.get(`/api/sanctionList/invFin/getEdgeInfo?edgeId=${edgeId}`);
} }
/**
* 获取字典列表-实体类型
* url:/commonDict/entity/san-type
*/
export function getEntityTypeList() {
return http.get("/api/commonDict/entity/san-type");
}
...@@ -18,7 +18,8 @@ const financeRoutes = [ ...@@ -18,7 +18,8 @@ const financeRoutes = [
name: "sdnlistOverview", name: "sdnlistOverview",
component: () => import("@/views/finance/entityList/index.vue"), component: () => import("@/views/finance/entityList/index.vue"),
meta: { meta: {
title: "SDN制裁清单概览" title: "SDN制裁清单概览",
dynamicTitle: true
} }
}, },
// V2.0单条制裁详情 // V2.0单条制裁详情
......
...@@ -85,6 +85,7 @@ ...@@ -85,6 +85,7 @@
import { ref, onMounted, shallowReactive, shallowRef, watch } from "vue"; import { ref, onMounted, shallowReactive, shallowRef, watch } from "vue";
import CardCustom from "../../components/CardCustom.vue"; import CardCustom from "../../components/CardCustom.vue";
import Echarts from "@/components/Chart/index.vue"; import Echarts from "@/components/Chart/index.vue";
import { ElMessage } from "element-plus";
import Hint from "./hint.vue"; import Hint from "./hint.vue";
import ButtonList from "@/components/buttonList/buttonList.vue"; import ButtonList from "@/components/buttonList/buttonList.vue";
import Fishbone from "./fishbone.vue"; import Fishbone from "./fishbone.vue";
...@@ -164,6 +165,10 @@ const handleEttClick = item => { ...@@ -164,6 +165,10 @@ const handleEttClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
// 处理点击事件 // 处理点击事件
......
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
import { ref, shallowRef, onMounted, watch } from "vue"; import { ref, shallowRef, onMounted, watch } from "vue";
import CardCustom from "../../components/CardCustom.vue"; import CardCustom from "../../components/CardCustom.vue";
import { Search } from "@element-plus/icons-vue"; import { Search } from "@element-plus/icons-vue";
import { ElMessage } from "element-plus";
import Echarts from "@/components/Chart/index.vue"; import Echarts from "@/components/Chart/index.vue";
import { getBarChart, getLineChart } from "../../utils/charts"; import { getBarChart, getLineChart } from "../../utils/charts";
import Hint from "./hint.vue"; import Hint from "./hint.vue";
...@@ -350,6 +351,10 @@ const handleOrgClick = item => { ...@@ -350,6 +351,10 @@ const handleOrgClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
</script> </script>
......
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
import { ref, shallowRef, onMounted, watch } from "vue"; import { ref, shallowRef, onMounted, watch } from "vue";
import CardCustom from "../../components/CardCustom.vue"; import CardCustom from "../../components/CardCustom.vue";
import { Search } from "@element-plus/icons-vue"; import { Search } from "@element-plus/icons-vue";
import { ElMessage } from "element-plus";
import Echarts from "@/components/Chart/index.vue"; import Echarts from "@/components/Chart/index.vue";
import { getBarChart, getLineChart } from "../../utils/charts"; import { getBarChart, getLineChart } from "../../utils/charts";
import _ from "lodash"; import _ from "lodash";
...@@ -313,6 +314,10 @@ const handleOrgClick = item => { ...@@ -313,6 +314,10 @@ const handleOrgClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
</script> </script>
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
<script setup> <script setup>
import { ref, defineProps, defineEmits, computed, watch } from "vue"; import { ref, defineProps, defineEmits, computed, watch } from "vue";
import { Close } from "@element-plus/icons-vue"; import { Close } from "@element-plus/icons-vue";
import { ElMessage } from "element-plus";
import defaultIcon from "@/assets/icons/default-icon1.png"; import defaultIcon from "@/assets/icons/default-icon1.png";
import { useGotoCompanyPages } from "@/router/modules/company"; import { useGotoCompanyPages } from "@/router/modules/company";
const gotoCompanyPages = useGotoCompanyPages(); const gotoCompanyPages = useGotoCompanyPages();
...@@ -155,6 +156,10 @@ const getTagStyle = tag => { ...@@ -155,6 +156,10 @@ const getTagStyle = tag => {
// 跳转公司详情页 // 跳转公司详情页
const handleCompClick = item => { const handleCompClick = item => {
console.log("item", item); console.log("item", item);
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
window.sessionStorage.setItem("curTabName", item.name || item.orgName); window.sessionStorage.setItem("curTabName", item.name || item.orgName);
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
......
差异被折叠。
...@@ -688,6 +688,7 @@ ...@@ -688,6 +688,7 @@
import NewsList from "@/components/base/newsList/index.vue"; import NewsList from "@/components/base/newsList/index.vue";
import RiskSignal from "@/components/base/riskSignal/index.vue"; import RiskSignal from "@/components/base/riskSignal/index.vue";
import SimplePagination from "@/components/SimplePagination.vue"; import SimplePagination from "@/components/SimplePagination.vue";
import { ElMessage } from "element-plus";
import { getChartAnalysis } from "@/api/aiAnalysis/index"; import { getChartAnalysis } from "@/api/aiAnalysis/index";
import RiskSignalOverviewDetailDialog from "@/components/base/RiskSignalOverviewDetailDialog/index.vue"; import RiskSignalOverviewDetailDialog from "@/components/base/RiskSignalOverviewDetailDialog/index.vue";
import { onMounted, ref, computed, reactive, shallowRef, watch, nextTick } from "vue"; import { onMounted, ref, computed, reactive, shallowRef, watch, nextTick } from "vue";
...@@ -702,7 +703,7 @@ import tipsIcon from "./assets/icons/info-icon.png"; ...@@ -702,7 +703,7 @@ import tipsIcon from "./assets/icons/info-icon.png";
import AiButton from "@/components/base/Ai/AiButton/index.vue"; import AiButton from "@/components/base/Ai/AiButton/index.vue";
import AiPane from "@/components/base/Ai/AiPane/index.vue"; import AiPane from "@/components/base/Ai/AiPane/index.vue";
import AreaTag from "@/components/base/AreaTag/index.vue"; import AreaTag from "@/components/base/AreaTag/index.vue";
import { useChartInterpretation } from "@/views/exportControl/utils/common"; // import { useChartInterpretation } from "@/views/exportControl/utils/common";
import { TAGTYPE } from "@/public/constant"; import { TAGTYPE } from "@/public/constant";
import { useGotoCompanyPages } from "@/router/modules/company"; import { useGotoCompanyPages } from "@/router/modules/company";
import { useGotoNewsDetail } from "@/router/modules/news"; import { useGotoNewsDetail } from "@/router/modules/news";
...@@ -846,9 +847,12 @@ const handleTitleClick = item => { ...@@ -846,9 +847,12 @@ const handleTitleClick = item => {
const handleCompClick = item => { const handleCompClick = item => {
// console.log("item", item); // console.log("item", item);
if (!item.id) return; if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
window.sessionStorage.setItem("curTabName", item.name); window.sessionStorage.setItem("curTabName", item.name);
gotoCompanyPages(item.entityId); gotoCompanyPages(item.id);
}; };
const tagsType = ["primary", "success", "warning", "danger"]; const tagsType = ["primary", "success", "warning", "danger"];
...@@ -1186,6 +1190,10 @@ const processYearDomainCountData = yearDomainCountData => { ...@@ -1186,6 +1190,10 @@ const processYearDomainCountData = yearDomainCountData => {
const handleEntityClick = item => { const handleEntityClick = item => {
console.log("item", item); console.log("item", item);
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
window.sessionStorage.setItem("curTabName", item.name || item.entityNameZh); window.sessionStorage.setItem("curTabName", item.name || item.entityNameZh);
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
...@@ -2596,14 +2604,14 @@ const handleMediaClick = item => { ...@@ -2596,14 +2604,14 @@ const handleMediaClick = item => {
} }
.box4-footer { .box4-footer {
// position: absolute; position: absolute;
// margin-top: auto; // margin-top: auto;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
bottom: 30px; bottom: 0px;
left: 50%; left: 50%;
margin-left: -30px; margin-left: -40px;
// margin-bottom: 30px; // margin-bottom: 30px;
} }
} }
......
...@@ -270,6 +270,7 @@ import { ...@@ -270,6 +270,7 @@ import {
getTechDomainCount, getTechDomainCount,
getEntityTypeCount getEntityTypeCount
} from "@/api/exportControlV2.0"; } from "@/api/exportControlV2.0";
import { getChartAnalysis } from "@/api/aiAnalysis/index";
import EChart from "@/components/Chart/index.vue"; import EChart from "@/components/Chart/index.vue";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
<script setup> <script setup>
import { ref, computed, watch } from "vue"; import { ref, computed, watch } from "vue";
import router from "@/router"; import router from "@/router";
import { ElMessage } from "element-plus";
import { Close } from "@element-plus/icons-vue"; import { Close } from "@element-plus/icons-vue";
import defaultIcon from "@/assets/icons/default-icon1.png"; import defaultIcon from "@/assets/icons/default-icon1.png";
import { useGotoCompanyPages } from "@/router/modules/company"; import { useGotoCompanyPages } from "@/router/modules/company";
...@@ -155,6 +156,10 @@ const getTagStyle = tag => { ...@@ -155,6 +156,10 @@ const getTagStyle = tag => {
// 跳转公司详情页 // 跳转公司详情页
const handleCompClick = item => { const handleCompClick = item => {
console.log("item", item); console.log("item", item);
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
window.sessionStorage.setItem("curTabName", item.name || item.orgName); window.sessionStorage.setItem("curTabName", item.name || item.orgName);
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
......
...@@ -184,6 +184,7 @@ ...@@ -184,6 +184,7 @@
<script setup> <script setup>
import { ref, computed, onMounted, watch } from "vue"; import { ref, computed, onMounted, watch } from "vue";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { ElMessage } from "element-plus";
import { Search } from "@element-plus/icons-vue"; import { Search } from "@element-plus/icons-vue";
import defaultIcon from "../../../../../assets/icons/default-avatar.png"; import defaultIcon from "../../../../../assets/icons/default-avatar.png";
import RuleSubsidiaryDialog from "./RuleSubsidiaryDialog.vue"; import RuleSubsidiaryDialog from "./RuleSubsidiaryDialog.vue";
...@@ -203,6 +204,10 @@ const orderOptions = ref([ ...@@ -203,6 +204,10 @@ const orderOptions = ref([
// 跳转公司详情页 // 跳转公司详情页
const handleCompClick = item => { const handleCompClick = item => {
console.log("item", item); console.log("item", item);
if (!item.entityId) {
ElMessage.warning("暂无对应数据");
return;
}
window.sessionStorage.setItem("curTabName", item.entityNameZh || item.entityName); window.sessionStorage.setItem("curTabName", item.entityNameZh || item.entityName);
// const route = router.resolve({ // const route = router.resolve({
// name: "companyPages", // name: "companyPages",
......
...@@ -124,7 +124,7 @@ const headerNavList = ref([ ...@@ -124,7 +124,7 @@ const headerNavList = ref([
height: 148px; height: 148px;
background-color: #fff; background-color: #fff;
padding-top: 16px; padding-top: 16px;
position: sticky; // position: sticky;
top: 0; top: 0;
z-index: 1000; z-index: 1000;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
......
...@@ -150,6 +150,7 @@ ...@@ -150,6 +150,7 @@
<div class="map-wrapper"> <div class="map-wrapper">
<div class="map-chart" ref="mapChartRef"></div> <div class="map-chart" ref="mapChartRef"></div>
<div class="rank-list"> <div class="rank-list">
<div class="rank-list-if" v-if="regionDistribution.length > 0">
<div <div
class="rank-item" class="rank-item"
v-for="(item, index) in regionDistribution" v-for="(item, index) in regionDistribution"
...@@ -170,6 +171,8 @@ ...@@ -170,6 +171,8 @@
<div class="rank-value">{{ item.count }}</div> <div class="rank-value">{{ item.count }}</div>
</div> </div>
</div> </div>
<el-empty v-else :style="{ height: '90%' }" />
</div>
</div> </div>
<div class="data-origin-box"> <div class="data-origin-box">
<div class="data-origin-icon"> <div class="data-origin-icon">
...@@ -215,10 +218,10 @@ import { ...@@ -215,10 +218,10 @@ import {
import { getChartAnalysis } from "@/api/aiAnalysis/index"; import { getChartAnalysis } from "@/api/aiAnalysis/index";
import { useChartInterpretation } from "@/views/exportControl/utils/common"; import { useChartInterpretation } from "@/views/exportControl/utils/common";
const domainChart = useChartInterpretation(); // const domainChart = useChartInterpretation();
const typeChart = useChartInterpretation(); // const typeChart = useChartInterpretation();
const countryDistributionChart = useChartInterpretation(); // const countryDistributionChart = useChartInterpretation();
const regionDistributionChart = useChartInterpretation(); // const regionDistributionChart = useChartInterpretation();
const route = useRoute(); const route = useRoute();
// 单次制裁-数据统计-制裁实体地域分布情况 // 单次制裁-数据统计-制裁实体地域分布情况
......
...@@ -80,11 +80,19 @@ ...@@ -80,11 +80,19 @@
<div class="content">{{ item.content }}</div> <div class="content">{{ item.content }}</div>
</div> </div>
</div> </div>
<div class="view-more" v-if="hasMore" @click="loadMore"> <!-- <div class="view-more" v-if="hasMore" @click="loadMore">
查看更多 查看更多
<el-icon class="icon-more"> <el-icon class="icon-more">
<DArrowRight /> <DArrowRight />
</el-icon> </el-icon>
</div> -->
<div class="left-bottom-footer">
<simple-pagination
v-model:current-page="timelinePage"
:page-size="timelinePageSize"
:total="totalNum"
@page-change="handleListPageChange"
/>
</div> </div>
</div> </div>
</AnalysisBox> </AnalysisBox>
...@@ -361,8 +369,16 @@ const getSanctionOverviewList = async () => { ...@@ -361,8 +369,16 @@ const getSanctionOverviewList = async () => {
// 单次制裁-制裁概况-制裁背景 // 单次制裁-制裁概况-制裁背景
const timelinePage = ref(1); const timelinePage = ref(1);
const timelinePageSize = ref(5); const timelinePageSize = ref(5);
const totalNum = ref(0);
const hasMore = ref(true); const hasMore = ref(true);
const handleListPageChange = pageNum => {
console.log("页面修改 =>", pageNum);
timelinePage.value = pageNum;
getSanctionBackground();
};
const getSanctionBackground = async (isLoadMore = false) => { const getSanctionBackground = async (isLoadMore = false) => {
try { try {
const res = await getSingleSanctionBackground({ const res = await getSingleSanctionBackground({
...@@ -386,6 +402,7 @@ const getSanctionBackground = async (isLoadMore = false) => { ...@@ -386,6 +402,7 @@ const getSanctionBackground = async (isLoadMore = false) => {
// 判断是否还有更多数据 // 判断是否还有更多数据
const totalElements = res.data.totalElements || 0; const totalElements = res.data.totalElements || 0;
totalNum.value = totalElements;
hasMore.value = timelineData.value.length < totalElements; hasMore.value = timelineData.value.length < totalElements;
} }
} catch (error) { } catch (error) {
...@@ -783,7 +800,7 @@ onMounted(() => { ...@@ -783,7 +800,7 @@ onMounted(() => {
.left-bottom { .left-bottom {
width: 100%; width: 100%;
height: 521px; height: auto;
.left-bottom-content { .left-bottom-content {
padding: 20px 25px 0 25px; padding: 20px 25px 0 25px;
......
...@@ -292,7 +292,7 @@ onMounted(() => { ...@@ -292,7 +292,7 @@ onMounted(() => {
height: 148px; height: 148px;
background-color: #fff; background-color: #fff;
padding-top: 16px; padding-top: 16px;
position: sticky; // position: sticky;
top: 0; top: 0;
z-index: 1000; z-index: 1000;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05); box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
......
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
<script setup> <script setup>
import { ref, onMounted, shallowReactive, shallowRef, watch } from "vue"; import { ref, onMounted, shallowReactive, shallowRef, watch } from "vue";
import { ElMessage } from "element-plus";
import CardCustom from "../../components/CardCustom.vue"; import CardCustom from "../../components/CardCustom.vue";
import Echarts from "@/components/Chart/index.vue"; import Echarts from "@/components/Chart/index.vue";
import Hint from "./hint.vue"; import Hint from "./hint.vue";
...@@ -164,6 +165,10 @@ const handleEttClick = item => { ...@@ -164,6 +165,10 @@ const handleEttClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
// 处理点击事件 // 处理点击事件
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
<script setup> <script setup>
import { ref, shallowRef, onMounted, watch } from "vue"; import { ref, shallowRef, onMounted, watch } from "vue";
import { ElMessage } from "element-plus";
import CardCustom from "../../components/CardCustom.vue"; import CardCustom from "../../components/CardCustom.vue";
import { Search } from "@element-plus/icons-vue"; import { Search } from "@element-plus/icons-vue";
import Echarts from "@/components/Chart/index.vue"; import Echarts from "@/components/Chart/index.vue";
...@@ -350,6 +351,10 @@ const handleOrgClick = item => { ...@@ -350,6 +351,10 @@ const handleOrgClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
</script> </script>
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
<script setup> <script setup>
import { ref, shallowRef, onMounted, watch } from "vue"; import { ref, shallowRef, onMounted, watch } from "vue";
import { ElMessage } from "element-plus";
import CardCustom from "../../components/CardCustom.vue"; import CardCustom from "../../components/CardCustom.vue";
import { Search } from "@element-plus/icons-vue"; import { Search } from "@element-plus/icons-vue";
import Echarts from "@/components/Chart/index.vue"; import Echarts from "@/components/Chart/index.vue";
...@@ -313,6 +314,10 @@ const handleOrgClick = item => { ...@@ -313,6 +314,10 @@ const handleOrgClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
</script> </script>
......
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
<CardCustom title="美国前序相关制裁、前序相关事件列表" :style="{ width: '600px', height: '678px' }"> <CardCustom title="美国前序相关制裁、前序相关事件列表" :style="{ width: '600px', height: '678px' }">
<div class="panel6"> <div class="panel6">
<div class="panel6-list"> <div class="panel6-list">
<div class="item" v-for="(item, idx) in panel6" :key="item.title"> <div class="item" v-for="item in panel6" :key="item.title">
<div class="left"> <div class="left">
<div class="icon"></div> <div class="icon"></div>
<div class="line"></div> <div class="line"></div>
...@@ -182,6 +182,7 @@ ...@@ -182,6 +182,7 @@
<script setup> <script setup>
import CardCustom from "../../components/CardCustom.vue"; import CardCustom from "../../components/CardCustom.vue";
import PieCharts from "../components/pieCharts.vue"; import PieCharts from "../components/pieCharts.vue";
import { ElMessage } from "element-plus";
import MapCharts from "../components/mapCharts.vue"; import MapCharts from "../components/mapCharts.vue";
import ButtonList from "@/components/buttonList/buttonList.vue"; import ButtonList from "@/components/buttonList/buttonList.vue";
import Hint from "../components/hint.vue"; import Hint from "../components/hint.vue";
...@@ -415,6 +416,10 @@ const handleOrgClick = item => { ...@@ -415,6 +416,10 @@ const handleOrgClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
if (!item.id) {
ElMessage.warning("暂无对应数据");
return;
}
gotoCompanyPages(item.id); gotoCompanyPages(item.id);
}; };
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论