提交 9105a8c9 authored 作者: yanpeng's avatar yanpeng

api 5

上级 8aa2bdf8
......@@ -393,13 +393,13 @@ export function getDomainDistribution(sanctionDate = "2025-11-11") {
* startTime: string
* }[]>}
*/
export function getEntitiesList(sanTypeIds = ["1"], pageNum = 1, pageSize = 10, sanctionDate = "", isCn = false) {
export function getEntitiesList(sanTypeId="1", pageNum = 1, pageSize = 10, sanctionDate = "", isCn = false) {
return request200(
request({
method: "POST",
url: "/api/sanctionList/pageQuery",
data: {
sanTypeIds,
sanTypeId,
pageNum,
pageSize,
sanctionDate,
......
......@@ -105,13 +105,13 @@
></el-image>
<div v-else class="box1-bottom-content-item-imgUndefined">
{{
(ett.entityNameZh || ett.enName)?.match(
(ett.orgName || ett.orgNameZh)?.match(
/[\u4e00-\u9fa5a-zA-Z0-9]/
)?.[0]
}}
</div>
<div class="box1-bottom-content-item-txt">
{{ ett.name || ett.entityNameZh }}
{{ ett.orgName || ett.orgNameZh }}
</div>
</div>
</div>
......@@ -1494,7 +1494,7 @@ watch(
const fetchEntitiesList = async (page = 1, size = 10) => {
try {
console.log("activeResourceTabItem.value.id", activeResourceTabItem.value.id);
const res = await getEntitiesList(activeResourceTabItem.value.id.join(","), page, size);
const res = await getEntitiesList(activeResourceTabItem.value.id, page, size);
if (res) {
entitiesList.value = res.content.map(item => ({
...item,
......
......@@ -271,6 +271,14 @@ onMounted(() => {
getUrlParams();
getSingleSanctionOverviewData();
});
// 新增 onActivated,用于从缓存恢复时触发
onActivated(() => {
console.log("出口管制-单次制裁 (从缓存激活)");
// 重新获取 URL 参数和数据
getUrlParams();
getSingleSanctionOverviewData();
});
</script>
<style scoped lang="scss">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论