提交 6e253904 authored 作者: 李顺's avatar 李顺

合并分支 'ls_dev' 到 'master'

Ls dev 查看合并请求 !101
import request from "@/api/request.js";
// 全联盟-获取联盟列表
/**
* @header token
*/
export function getAllUnionList() {
return request({
method: 'GET',
url: `/api/union/union/unionList`
})
}
// 全联盟-获取排华数量
/**
* @header token
*/
export function getUnionCount() {
return request({
method: 'GET',
url: `/api/union/union/unionCount`
})
}
// 全联盟-获取排华联盟动态
/**
* @header token
*/
export function getDynamic() {
return request({
method: 'GET',
url: `/api/union/union/dynamic`
})
}
// 全联盟-获取排华联盟预警
/**
* @param {Object} params
* @param {Integer} params.id - 上一接口查询的EccnCategoryID
* @header token
*/
export function getPrediction() {
return request({
method: 'GET',
url: `/api/union/union/prediction`
})
}
// 全联盟-获取排华联盟领域分布
/**
* @param {Object} params
* @param {Integer} params.id - 上一接口查询的EccnCategoryID
* @header token
*/
export function getIndustry() {
return request({
method: 'GET',
url: `/api/union/union/industry`
})
}
// 全联盟-获取排华联盟国家紧密度
/**
* @param {Object} params
* @param {Integer} params.id - 上一接口查询的EccnCategoryID
* @header token
*/
export function getCountryRelation() {
return request({
method: 'GET',
url: `/api/union/union/countryRelation`
})
}
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="left-title"> <div class="left-title">
<img src="./assets/icon01.png" alt /> <img src="./assets/icon01.png" alt />
<div class="tit">新闻资讯</div> <div class="tit">新闻资讯</div>
<div class="more" @click="handleToMoreNews">更多 +</div> <div class="more" @click="handleToNewsDetail">更多 +</div>
</div> </div>
<div class="left-main"> <div class="left-main">
<div v-for="item in leftList" :key="item.newsId" class="main-item"> <div v-for="item in leftList" :key="item.newsId" class="main-item">
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<div class="right-title"> <div class="right-title">
<img src="./assets/icon02.png" alt /> <img src="./assets/icon02.png" alt />
<div class="tit">社交媒体</div> <div class="tit">社交媒体</div>
<div class="more" @click="handleToSocialDetail">更多 +</div>
</div> </div>
<div class="right-main"> <div class="right-main">
<div class="trump" v-for="item in rightList"> <div class="trump" v-for="item in rightList">
......
...@@ -160,12 +160,12 @@ const getRiskSignalInfo = async () => { ...@@ -160,12 +160,12 @@ const getRiskSignalInfo = async () => {
} }
} }
// // 跳转详情 // 跳转详情
// const handleClickToDetail = () => { const handleClickToDetail = () => {
// // router.push("/decreeLayout"); // router.push("/decreeLayout");
// // const route = router.resolve(""); // const route = router.resolve("");
// window.open(`/ruleRestrictions/detail?id=${latestUpdateList.value[latestUpdateIndex.value].RULEID}`, "_blank"); window.open(`/ruleRestrictions/detail?id=${latestUpdateList.value[latestUpdateIndex.value].RULEID}`, "_blank");
// }; };
// 左侧展示的主动态 // 左侧展示的主动态
const mainTrend = computed(() => { const mainTrend = computed(() => {
...@@ -183,18 +183,18 @@ const handleToRiskDetail = (item) => { ...@@ -183,18 +183,18 @@ const handleToRiskDetail = (item) => {
}; };
// 点击查看详情 // 点击查看详情
const handleClickToDetail = item => { // const handleClickToDetail = item => {
const activeItem = item && item.RULEID ? item : mainTrend.value; // const activeItem = item && item.RULEID ? item : mainTrend.value;
const id = activeItem?.RULEID; // const id = activeItem?.RULEID;
if (!id) return; // if (!id) return;
window.sessionStorage.setItem("curTabName", activeItem?.RULENAMEZH); // window.sessionStorage.setItem("curTabName", activeItem?.RULENAMEZH);
const curRoute = router.resolve({ // const curRoute = router.resolve({
path: "/ruleRestrictions/detail", // path: "/ruleRestrictions/detail",
query: { id: id } // query: { id: id }
}); // });
window.open(curRoute.href, "_blank"); // window.open(curRoute.href, "_blank");
}; // };
// 查看更多动态 // 查看更多动态
const handleToMoreRiskSignal = () => { const handleToMoreRiskSignal = () => {
......
...@@ -2,17 +2,21 @@ ...@@ -2,17 +2,21 @@
<div class="cooperation-restrictions-detail"> <div class="cooperation-restrictions-detail">
<div class="nav"> <div class="nav">
<div class="nav-main"> <div class="nav-main">
<img src="./assets/image01.png" alt /> <div style="display: flex; align-items: center">
<div class="content"> <img src="./assets/image01.png" alt />
<div class="cl1">美国联邦通信委员会(FCC)启动程序撤销对 TUV/宁波的认可</div> <div class="content">
<div class="cl2">FCC Begins Proceedings to Withdraw Recognition of TUV/Ningbo</div> <div class="cl1">{{ overviewInfo.RULENAMEZH }}</div>
<div class="cl3">2025年10月24日 10:33 · 美国联邦通信委员会</div> <div class="cl2">{{ overviewInfo.RULENAME || '暂无' }}</div>
<div class="cl3">{{ getTime(overviewInfo.PUBLISHDATE) }} · {{ overviewInfo.ORGNAME }}</div>
</div>
</div> </div>
<div class="btn"> <div class="btn">
<button class="btn1"> <button class="btn1">
<img src="./assets/icon01.png" alt />查看原文 <img src="./assets/icon01.png" alt />查看原文
</button> </button>
<!-- <button class="btn1"><img src="./assets/icon02.png" alt="" />查看官网</button> --> <button class="btn1">
<img src="./assets/icon02.png" alt />查看官网
</button>
<button class="btn1 active"> <button class="btn1 active">
<img src="./assets/icon03.png" alt />分析报告 <img src="./assets/icon03.png" alt />分析报告
</button> </button>
...@@ -20,8 +24,8 @@ ...@@ -20,8 +24,8 @@
</div> </div>
</div> </div>
<div class="title"> <div class="title">
<span class="title-one">当前合作限制数据已关联至行政令</span> <span class="title-one">当前规则限制数据已关联至{{ overviewInfo.Relation[0].TYPE }}</span>
<span class="title-two">《美国联邦通信委员会(FCC)启动程序撤销对 TUV/宁波的认可》2025年10月24日</span> <span class="title-two">{{ overviewInfo.Relation[0].RELATIONNAME }} &nbsp;{{ overviewInfo.Relation[0].RELATIONDATE }}</span>
<img src="./assets/right.png" alt /> <img src="./assets/right.png" alt />
</div> </div>
<div class="main"> <div class="main">
...@@ -33,27 +37,24 @@ ...@@ -33,27 +37,24 @@
<img class="img2" src="./assets/下载按钮.png" alt /> <img class="img2" src="./assets/下载按钮.png" alt />
<img class="img3" src="./assets/收藏按钮.png" alt /> <img class="img3" src="./assets/收藏按钮.png" alt />
<div class="left-top-content"> <div class="left-top-content">
<span> <span>{{ overviewInfo.RULENAMEZH }}</span>
美国联邦通信委员会(FCC)启动程序撤销对德国莱茵 TÜV
集团/中国检验认证集团(宁波)有限公司作为测试认可实验室的认证。
</span>
</div> </div>
<div class="left-top-bottom"> <div class="left-top-bottom">
<div> <div>
<span class="tit">限制时间:</span> <span class="tit">限制时间:</span>
<span class="tit1">2025年10月24日</span> <span class="tit1">{{ getTime(overviewInfo.PUBLISHDATE) }}</span>
</div> </div>
<div> <div>
<span class="tit">限制机构:</span> <span class="tit">限制机构:</span>
<span class="tit1 tit2">美国联邦通信委员会(FCC) ></span> <span class="tit1 tit2">{{ overviewInfo.ORGNAME }}</span>
</div> </div>
<div> <div>
<span class="tit">限制手段:</span> <span class="tit">限制手段:</span>
<span class="tit1">行政令</span> <span class="tit1">{{ overviewInfo.RULEMEANS }}</span>
</div> </div>
<div> <div>
<span class="tit">限制领域:</span> <span class="tit">限制领域:</span>
<span class="tit3">集成电路</span> <span class="tit3" v-for="ele in overviewInfo.Area">{{ ele }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -177,6 +178,7 @@ import swb from "./assets/商务部.png"; ...@@ -177,6 +178,7 @@ import swb from "./assets/商务部.png";
import bg from "./assets/白宫.png"; import bg from "./assets/白宫.png";
import czb from "./assets/财政部.png"; import czb from "./assets/财政部.png";
import gh from "./assets/国会.png"; import gh from "./assets/国会.png";
import { getSanctionOverview } from '@/api/ruleRestriction/index.js'
const dataList = ref([ const dataList = ref([
{ {
...@@ -281,15 +283,35 @@ const dataList3 = ref([ ...@@ -281,15 +283,35 @@ const dataList3 = ref([
]); ]);
const overviewInfo = ref({}) const overviewInfo = ref({})
const sanRecordId = ref('')
const getUrlParams = () => {
const urlParams = new URLSearchParams(window.location.search);
sanRecordId.value = urlParams.get("id") || ""
}
// const getUrlParams = () => { const getSanctionOverviewInfo = async () => {
// const urlParams = new URLSearchParams(window.location.search); try {
// sanRecordId.value = urlParams.get("id") || "" const res = await getSanctionOverview(sanRecordId.value);
// } console.log('------getSanctionOverviewInfo res', res)
if (res && res.code === 200) {
console.log('----getSanctionOverviewInfo', res.data)
overviewInfo.value = res.data
}
} catch (error) {
console.error("获取最新动态接口失败:", error);
}
}
onMounted(() => { const getTime = (time) => {
// getUrlParams() if (time) {
const array = time.split('-')
return `${array[0]}${array[1]}${array[2]}日`
}
}
onMounted(() => {
getUrlParams()
getSanctionOverviewInfo()
}) })
</script> </script>
...@@ -319,15 +341,16 @@ const overviewInfo = ref({}) ...@@ -319,15 +341,16 @@ const overviewInfo = ref({})
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
img { img {
width: 72px; width: 72px;
height: 72px; height: 72px;
margin-right: 16px; margin-right: 16px;
} }
.content { .content {
width: 758px; // width: 758px;
height: 81px; height: 81px;
margin-right: 378px; // margin-right: 378px;
.cl1 { .cl1 {
font-size: 24px; font-size: 24px;
font-weight: 700; font-weight: 700;
...@@ -524,6 +547,7 @@ const overviewInfo = ref({}) ...@@ -524,6 +547,7 @@ const overviewInfo = ref({})
.tit3 { .tit3 {
display: inline-block; display: inline-block;
border-radius: 4px; border-radius: 4px;
margin-right: 8px;
background-color: rgba(255, 241, 240, 1); background-color: rgba(255, 241, 240, 1);
border: 1px solid rgba(255, 163, 158, 1); border: 1px solid rgba(255, 163, 158, 1);
color: rgba(245, 34, 45, 1); color: rgba(245, 34, 45, 1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论