提交 1b868fee authored 作者: yanpeng's avatar yanpeng

部分内容修改

上级 e74a1041
...@@ -861,6 +861,7 @@ const checkedTime = ref(["全部时间"]); ...@@ -861,6 +861,7 @@ const checkedTime = ref(["全部时间"]);
// 跳转到单条制裁页面,单独打开一个新页面 // 跳转到单条制裁页面,单独打开一个新页面
const handleTitleClick = item => { const handleTitleClick = item => {
if (!item.summary) return;
window.sessionStorage.setItem("curTabName", `${item.year}-${item.dateStr}${item.title}》`); window.sessionStorage.setItem("curTabName", `${item.year}-${item.dateStr}${item.title}》`);
const route = router.resolve({ const route = router.resolve({
path: "/exportControl/singleSanction", path: "/exportControl/singleSanction",
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
<el-input v-model="searchKeyword" class="search-input" placeholder="搜索实体" :suffix-icon="Search" /> <el-input v-model="searchKeyword" class="search-input" placeholder="搜索实体" :suffix-icon="Search" />
<div class="filters"> <div class="filters">
<el-checkbox v-model="onlyChina" label="只看中国实体" /> <el-checkbox v-model="onlyChina" label="只看中国实体" />
<el-select v-model="order" placeholder="请选择排序方式" style="width: 160px">
<el-option v-for="item in orderOptions" :value="item.value" :key="item.value" :label="item.name" />
</el-select>
</div> </div>
</div> </div>
<div class="main"> <div class="main">
...@@ -242,6 +245,11 @@ import { useGotoCompanyPages } from "@/router/modules/company"; ...@@ -242,6 +245,11 @@ import { useGotoCompanyPages } from "@/router/modules/company";
const gotoCompanyPages = useGotoCompanyPages(); const gotoCompanyPages = useGotoCompanyPages();
const router = useRouter(); const router = useRouter();
const order = ref("asc");
const orderOptions = ref([
{ name: "正序", value: "asc" },
{ name: "倒序", value: "desc" }
]);
// 跳转公司详情页 // 跳转公司详情页
const handleCompClick = item => { const handleCompClick = item => {
console.log("item", item); console.log("item", item);
...@@ -257,7 +265,7 @@ const handleCompClick = item => { ...@@ -257,7 +265,7 @@ const handleCompClick = item => {
}; };
const searchKeyword = ref(""); const searchKeyword = ref("");
const onlyChina = ref(false); const onlyChina = ref(true);
const sanctionTime = ref(""); const sanctionTime = ref("");
const currentPage = ref(1); const currentPage = ref(1);
...@@ -460,7 +468,9 @@ const getExportControlListApi = async () => { ...@@ -460,7 +468,9 @@ const getExportControlListApi = async () => {
endDate, endDate,
keyword: searchKeyword.value || undefined, keyword: searchKeyword.value || undefined,
pageNum: currentPage.value, pageNum: currentPage.value,
pageSize: pageSize.value pageSize: pageSize.value,
sortOrder: order.value
// sortField: "sanctionTime" + order.value
}; };
try { try {
...@@ -484,7 +494,12 @@ const getExportControlListApi = async () => { ...@@ -484,7 +494,12 @@ const getExportControlListApi = async () => {
} }
}; };
watch(onlyChina, () => { // watch(onlyChina, () => {
// currentPage.value = 1;
// getExportControlListApi();
// });
watch([onlyChina, order], () => {
currentPage.value = 1; currentPage.value = 1;
getExportControlListApi(); getExportControlListApi();
}); });
...@@ -550,7 +565,7 @@ watch(customDateRange, () => { ...@@ -550,7 +565,7 @@ watch(customDateRange, () => {
} }
.filters { .filters {
// display: flex; display: flex;
// align-items: center; // align-items: center;
.el-checkbox { .el-checkbox {
...@@ -611,6 +626,7 @@ watch(customDateRange, () => { ...@@ -611,6 +626,7 @@ watch(customDateRange, () => {
margin-top: 8px; margin-top: 8px;
padding-right: 24px; padding-right: 24px;
box-sizing: border-box; box-sizing: border-box;
grid-column: 1 / -1;
:deep(.el-date-editor) { :deep(.el-date-editor) {
width: 100%; width: 100%;
......
...@@ -533,7 +533,8 @@ const getDomainNumData = async () => { ...@@ -533,7 +533,8 @@ const getDomainNumData = async () => {
const processedData = processDomainTrendData(res); const processedData = processDomainTrendData(res);
domainNumChartOption.value = getMultiLineChart(processedData); domainNumChartOption.value = getMultiLineChart(processedData);
console.log("获取实体清单-数据统计-processedData:", processedData); console.log("获取实体清单-数据统计-processedData:", processedData);
console.log("获取实体清单-数据统计-domainNumChartOption:", domainNumChartOption.value); console.log("获取实体清单-数据统计-domainNumChartOption:", res);
domainNumChart.interpret({ type: "折线图", name: "制裁实体领域数量变化情况", data: res });
} }
} catch (error) { } catch (error) {
console.error("获取实体清单-数据统计-制裁实体领域数量变化趋势失败:", error); console.error("获取实体清单-数据统计-制裁实体领域数量变化趋势失败:", error);
......
...@@ -92,7 +92,12 @@ ...@@ -92,7 +92,12 @@
<div class="content-item"> <div class="content-item">
<div class="item-label">依托制裁:</div> <div class="item-label">依托制裁:</div>
<div class="item-desc"> <div class="item-desc">
<div class="item-file" v-for="item in vertexInfo.relySanList" :key="item.id"> <div
class="item-file"
v-for="item in vertexInfo.relySanList"
:key="item.id"
@click="handleClickSan(item)"
>
<div class="item-file-name"> <div class="item-file-name">
{{ item.title }} {{ item.title }}
</div> </div>
...@@ -695,6 +700,18 @@ const formatChangeSummary = (addList, delList) => { ...@@ -695,6 +700,18 @@ const formatChangeSummary = (addList, delList) => {
return parts.length > 0 ? parts.join(",") : "无变动"; return parts.length > 0 ? parts.join(",") : "无变动";
}; };
const handleClickSan = item => {
window.sessionStorage.setItem("curTabName", `${item.postDate}${item.title}》`);
const route = router.resolve({
path: "/finance/singleSanction",
query: {
id: item.id,
sanTypeId: item.sanTypeId
}
});
window.open(route.href, "_blank");
};
const loading = ref(false); const loading = ref(false);
const sanctionList = ref([]); const sanctionList = ref([]);
const currentSanctionId = ref(5); const currentSanctionId = ref(5);
......
...@@ -253,7 +253,8 @@ const handleCompClick = item => { ...@@ -253,7 +253,8 @@ const handleCompClick = item => {
// } // }
// }); // });
// window.open(route.href, "_blank"); // window.open(route.href, "_blank");
gotoCompanyPages(item.id); if (!item.entityId) return;
gotoCompanyPages(item.entityId);
}; };
const searchKeyword = ref(""); const searchKeyword = ref("");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论