提交 adf6d2a8 authored 作者: 胡卉清's avatar 胡卉清

合并分支 'dev_hhq' 到 'master'

部分显示问题修复 查看合并请求 !63
...@@ -141,6 +141,7 @@ body { ...@@ -141,6 +141,7 @@ body {
} }
.el-popover { .el-popover {
width: 100%;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
color: rgba(95, 101, 108, 1); color: rgba(95, 101, 108, 1);
font-style: Regular; font-style: Regular;
...@@ -150,6 +151,10 @@ body { ...@@ -150,6 +151,10 @@ body {
letter-spacing: 0px; letter-spacing: 0px;
text-align: justify; text-align: justify;
} }
.el-popper[data-popper-placement^=top]>.el-popper__arrow:before {
display: none;
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -3,19 +3,21 @@ ...@@ -3,19 +3,21 @@
<div class="header"> <div class="header">
<div class="header-top"> <div class="header-top">
<div class="header-top-left"> <div class="header-top-left">
<div class="title">{{ "中美经济竞争:复杂经济和地缘政治关系中的收益和风险" }}</div> <img :src="thinkInfo.contentUrl" alt="" />
<div>
<div class="title">{{ thinkInfo.name }}</div>
<div class="en-title"> <div class="en-title">
{{ "U.S.-China Economic CompetitionGains and Risks in a Complex Economic and Geopolitical Relationship" }} {{ thinkInfo.ename }}
</div> </div>
<div class="tag-box"> <div class="tag-box" v-for="value in thinkInfo.tags">
<div class="tag">{{ "外交" }}</div> <div class="tag">{{ value }}</div>
<div class="tag">{{ "军事" }}</div>
<div class="tag">{{ "经济" }}</div>
</div> </div>
</div> </div>
</div>
<div class="header-top-right"> <div class="header-top-right">
<div class="name">{{ "兰德科技智库" }}</div> <div class="name">{{ thinkInfo.thinkTankName }}</div>
<div class="time">{{ "2025年6月23日" }}</div> <div class="time">{{ thinkInfo.times }}</div>
</div> </div>
</div> </div>
<div class="header-bottom"> <div class="header-bottom">
...@@ -81,6 +83,9 @@ import { ...@@ -81,6 +83,9 @@ import {
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
const router = useRouter(); const router = useRouter();
const reportUrl = ref('') const reportUrl = ref('')
const thinkInfo = ref({})
// 获取报告全局信息 // 获取报告全局信息
const handleGetThinkTankReportSummary = async () => { const handleGetThinkTankReportSummary = async () => {
try { try {
...@@ -89,6 +94,7 @@ const handleGetThinkTankReportSummary = async () => { ...@@ -89,6 +94,7 @@ const handleGetThinkTankReportSummary = async () => {
console.log("报告全局信息", res); console.log("报告全局信息", res);
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
reportUrl.value = res.data.reportUrl reportUrl.value = res.data.reportUrl
thinkInfo.value = res.data
} }
} catch (error) { } catch (error) {
console.error("获取报告全局信息error", error); console.error("获取报告全局信息error", error);
...@@ -130,7 +136,15 @@ onMounted(async () => { ...@@ -130,7 +136,15 @@ onMounted(async () => {
margin-right: 160px; margin-right: 160px;
.header-top-left { .header-top-left {
display: flex;
img {
width: 88px;
height: 88px
}
.title { .title {
margin-left: 20px;
height: 26px; height: 26px;
color: rgba(59, 65, 75, 1); color: rgba(59, 65, 75, 1);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
...@@ -142,6 +156,7 @@ onMounted(async () => { ...@@ -142,6 +156,7 @@ onMounted(async () => {
} }
.en-title { .en-title {
margin-left: 20px;
height: 24px; height: 24px;
color: rgba(95, 101, 108, 1); color: rgba(95, 101, 108, 1);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
...@@ -156,6 +171,7 @@ onMounted(async () => { ...@@ -156,6 +171,7 @@ onMounted(async () => {
margin-top: 11px; margin-top: 11px;
display: flex; display: flex;
gap: 8px; gap: 8px;
margin-left: 20px;
.tag { .tag {
height: 26px; height: 26px;
......
...@@ -76,26 +76,26 @@ ...@@ -76,26 +76,26 @@
<div class="point"> <div class="point">
<img src="@/assets/images/dot.png" alt="" /> <img src="@/assets/images/dot.png" alt="" />
</div> </div>
<div class="line" v-if="index < 5"></div> <div class="line"></div>
</div> </div>
<div class="box2-item-center"> <div class="box2-item-center">
<div class="title">{{ item.sjbt }}</div> <div class="title">{{ item.newsTitle }}</div>
<div class="content">{{ item.sjnr }}</div> <div class="content">{{ item.newsContent }}</div>
</div> </div>
<div class="box2-item-right"> <div class="box2-item-right">
<div class="time">{{ item.time }}</div> <div class="time">{{ item.newsDate }}</div>
<div class="img-box"> <div class="img-box">
<img :src="item.imageUrl" alt="" /> <img :src="item.newsImage" alt="" />
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="box2-footer"> <!-- <div class="box2-footer">
<div class="text">{{ "查看更多" }}</div> <div class="text">{{ "查看更多" }}</div>
<div class="icon"> <div class="icon">
<img src="@/assets/images/icon-double-down.png" alt="" /> <img src="@/assets/images/icon-double-down.png" alt="" />
</div> </div>
</div> </div> -->
</div> </div>
</div> </div>
</template> </template>
...@@ -277,42 +277,42 @@ const handleGetThinkTankReportPolicy = async () => { ...@@ -277,42 +277,42 @@ const handleGetThinkTankReportPolicy = async () => {
// 相关政策动态 // 相关政策动态
const box2Data = ref([ const box2Data = ref([
{ // {
title: "这是示例标题a", // title: "这是示例标题a",
content: "这是示例内容", // content: "这是示例内容",
time: "2025-08-30", // time: "2025-08-30",
img: 1 // img: 1
}, // },
{ // {
title: "这是示例标题a", // title: "这是示例标题a",
content: "这是示例内容", // content: "这是示例内容",
time: "2025-08-30", // time: "2025-08-30",
img: 1 // img: 1
}, // },
{ // {
title: "这是示例标题a", // title: "这是示例标题a",
content: "这是示例内容", // content: "这是示例内容",
time: "2025-08-30", // time: "2025-08-30",
img: 1 // img: 1
}, // },
{ // {
title: "这是示例标题a", // title: "这是示例标题a",
content: "这是示例内容", // content: "这是示例内容",
time: "2025-08-30", // time: "2025-08-30",
img: 1 // img: 1
}, // },
{ // {
title: "这是示例标题a", // title: "这是示例标题a",
content: "这是示例内容", // content: "这是示例内容",
time: "2025-08-30", // time: "2025-08-30",
img: 1 // img: 1
}, // },
{ // {
title: "这是示例标题a", // title: "这是示例标题a",
content: "这是示例内容", // content: "这是示例内容",
time: "2025-08-30", // time: "2025-08-30",
img: 1 // img: 1
} // }
]); ]);
const handleGetThinkTankReportPolicyAction = async () => { const handleGetThinkTankReportPolicyAction = async () => {
...@@ -435,7 +435,7 @@ onMounted(async () => { ...@@ -435,7 +435,7 @@ onMounted(async () => {
overflow-y: auto; overflow-y: auto;
.box1-item { .box1-item {
height: 128px; // height: 128px;
border-bottom: 1px solid rgba(234, 236, 238, 1); border-bottom: 1px solid rgba(234, 236, 238, 1);
display: flex; display: flex;
position: relative; position: relative;
...@@ -462,7 +462,7 @@ onMounted(async () => { ...@@ -462,7 +462,7 @@ onMounted(async () => {
.title { .title {
margin-top: 16px; margin-top: 16px;
height: 24px; // height: 24px;
color: rgba(59, 65, 75, 1); color: rgba(59, 65, 75, 1);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-size: 18px; font-size: 18px;
......
...@@ -82,10 +82,10 @@ ...@@ -82,10 +82,10 @@
</div> </div>
<div class="right"> <div class="right">
<div class="tag" v-for="(val, idx) in item.hylyList" :key="idx"> <div class="tag" v-for="(val, idx) in item.hylyList" :key="idx">
{{ val.name }} {{ val }}
</div> </div>
<div class="tag" v-for="(val, idx) in item.serialNum" :key="idx"> <div class="tag" v-for="(val, idx) in item.serialNum" :key="idx">
{{ val.name }} {{ val }}
</div> </div>
</div> </div>
<div class="more"> <div class="more">
...@@ -381,7 +381,7 @@ const handleCurrentChange = page => { ...@@ -381,7 +381,7 @@ const handleCurrentChange = page => {
const handleGetThinkTankReportContent = async () => { const handleGetThinkTankReportContent = async () => {
try { try {
const res = await getThinkTankReportContent(router.currentRoute._value.params.id); const res = await getThinkTankReportContent(router.currentRoute._value.params.id);
console.log("主要观点", res.data.totalElements); console.log("主要观点", res.data);
if (res.code === 200 && res.data) { if (res.code === 200 && res.data) {
majorOpinions.value = res.data.content; majorOpinions.value = res.data.content;
total.value = res.data.totalElements total.value = res.data.totalElements
...@@ -646,15 +646,18 @@ onMounted(() => { ...@@ -646,15 +646,18 @@ onMounted(() => {
} }
.center { .center {
width: 770px; height: 64px;
width: 910px;
margin-left: 13px; margin-left: 13px;
overflow: hidden; display: flex;
text-overflow: ellipsis; align-items: center;
white-space: nowrap; // overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
.title { .title {
margin-top: 12px; margin-top: 12px;
height: 26px; // height: 55px;
color: rgba(59, 65, 75, 1); color: rgba(59, 65, 75, 1);
font-family: Microsoft YaHei; font-family: Microsoft YaHei;
font-size: 16px; font-size: 16px;
...@@ -663,8 +666,12 @@ onMounted(() => { ...@@ -663,8 +666,12 @@ onMounted(() => {
letter-spacing: 0px; letter-spacing: 0px;
text-align: left; text-align: left;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; // text-overflow: ellipsis;
white-space: nowrap; // white-space: nowrap;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
} }
.desc { .desc {
...@@ -687,8 +694,11 @@ onMounted(() => { ...@@ -687,8 +694,11 @@ onMounted(() => {
width: 180px; width: 180px;
height: 22px; height: 22px;
display: flex; display: flex;
gap: 8px; margin-top: 26px;
justify-content: flex-end; margin-left: 20px;
height: 22px;
display: flex;
.tag { .tag {
height: 22px; height: 22px;
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<div class="title-right">{{ item.country }}</div> <div class="title-right">{{ item.country }}</div>
</div> </div>
<el-popover effect="dark" trigger="click" :content="item.desc" placement="top-start"> <el-popover effect="dark" :content="item.desc" placement="top-start">
<template #reference> <template #reference>
<div class="content">{{ item.desc }}</div> <div class="content">{{ item.desc }}</div>
</template> </template>
...@@ -168,9 +168,14 @@ ...@@ -168,9 +168,14 @@
{{ item.status || "一般风险" }} {{ item.status || "一般风险" }}
</div> </div>
<div class="item-right"> <div class="item-right">
<el-popover effect="dark" :content="item.title" placement="top-start">
<template #reference>
<div class="text"> <div class="text">
{{ item.title }} {{ item.title }}
</div> </div>
</template>
</el-popover>
<div class="time">{{ item.time }}</div> <div class="time">{{ item.time }}</div>
</div> </div>
</div> </div>
...@@ -205,7 +210,13 @@ ...@@ -205,7 +210,13 @@
<div class="title">{{ news.newsTitle }}</div> <div class="title">{{ news.newsTitle }}</div>
<div class="time">{{ news.newsOrg }}</div> <div class="time">{{ news.newsOrg }}</div>
</div> </div>
<el-popover effect="dark" :content="news.newsContent" placement="top-start">
<template #reference>
<div class="right-footer">{{ news.newsContent }}</div> <div class="right-footer">{{ news.newsContent }}</div>
</template>
</el-popover>
</div> </div>
</div> </div>
</div> </div>
...@@ -314,10 +325,15 @@ ...@@ -314,10 +325,15 @@
:class="{ itemBold1: index === 0, itemBold2: index === 1, itemBold3: index === 2 }"> :class="{ itemBold1: index === 0, itemBold2: index === 1, itemBold3: index === 2 }">
{{ index + 1 }} {{ index + 1 }}
</div> </div>
<el-popover effect="dark" :content="item.clause" placement="top-start">
<template #reference>
<div class="item-center" <div class="item-center"
:class="{ itemBold1: index === 0, itemBold2: index === 1, itemBold3: index === 2 }"> :class="{ itemBold1: index === 0, itemBold2: index === 1, itemBold3: index === 2 }">
{{ item.clause }} {{ item.clause }}
</div> </div>
</template>
</el-popover>
<div class="item-right">{{ `${item.count}份报告 >` }}</div> <div class="item-right">{{ `${item.count}份报告 >` }}</div>
</div> </div>
</div> </div>
...@@ -388,9 +404,14 @@ ...@@ -388,9 +404,14 @@
<div class="footer-card-top"> <div class="footer-card-top">
<img :src="item.imageUrl" alt="" /> <img :src="item.imageUrl" alt="" />
</div> </div>
<el-popover effect="dark" :content="item.name" placement="top-start">
<template #reference>
<div class="footer-card-title"> <div class="footer-card-title">
{{ item.name }} {{ item.name }}
</div> </div>
</template>
</el-popover>
<div class="footer-card-footer"> <div class="footer-card-footer">
<div class="time">{{ item.times }}</div> <div class="time">{{ item.times }}</div>
<div class="from">{{ item.thinkTankName }}</div> <div class="from">{{ item.thinkTankName }}</div>
...@@ -2178,6 +2199,7 @@ onMounted(async () => { ...@@ -2178,6 +2199,7 @@ onMounted(async () => {
} }
.time { .time {
width: 90px;
margin-left: 10px; margin-left: 10px;
line-height: 47px; line-height: 47px;
color: rgba(132, 136, 142, 1); color: rgba(132, 136, 142, 1);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论