提交 492a35de authored 作者: 张伊明's avatar 张伊明

合并分支 'zz-dev' 到 'pre'

feat:全部智库点击跳转功能完善;多智库功能鼠标悬浮小手 查看合并请求 !394
流水线 #650 已通过 于阶段
in 1 分 37 秒
...@@ -6,6 +6,10 @@ import 'echarts-wordcloud'; ...@@ -6,6 +6,10 @@ import 'echarts-wordcloud';
import router from '@/router/index' import router from '@/router/index'
// import { goToDataCountryBill, goToDataDecree, goToDataThinkTank } from './goToPage'; // import { goToDataCountryBill, goToDataDecree, goToDataThinkTank } from './goToPage';
import goToPage from './goToPage/index'; import goToPage from './goToPage/index';
/** 与 multiLineChart 等 option.graphic 约定一致:自定义图例翻页箭头 */
const LEGEND_ARROW_NAMES = new Set(['__legend_prev__', '__legend_next__']);
const setChart = (option, chartId, allowClick, selectParam, otherAreaList) => { const setChart = (option, chartId, allowClick, selectParam, otherAreaList) => {
let chartDom = document.getElementById(chartId); let chartDom = document.getElementById(chartId);
if (!chartDom) { if (!chartDom) {
......
...@@ -1449,6 +1449,7 @@ onMounted(async () => { ...@@ -1449,6 +1449,7 @@ onMounted(async () => {
border-bottom: 1px solid rgb(234, 236, 238); border-bottom: 1px solid rgb(234, 236, 238);
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
cursor: pointer;
/* 防止item被挤压变形 */ /* 防止item被挤压变形 */
.left { .left {
...@@ -2218,6 +2219,7 @@ onMounted(async () => { ...@@ -2218,6 +2219,7 @@ onMounted(async () => {
line-height: 30px; line-height: 30px;
letter-spacing: 0; letter-spacing: 0;
text-align: justify; text-align: justify;
cursor: pointer;
} }
.source-view-detail-org { .source-view-detail-org {
...@@ -2541,6 +2543,7 @@ onMounted(async () => { ...@@ -2541,6 +2543,7 @@ onMounted(async () => {
line-height: 30px; line-height: 30px;
letter-spacing: 0; letter-spacing: 0;
text-align: justify; text-align: justify;
cursor: pointer;
} }
.source-view-detail-org { .source-view-detail-org {
......
...@@ -205,7 +205,14 @@ const handleClick = tank => { ...@@ -205,7 +205,14 @@ const handleClick = tank => {
ElMessage.warning("当前智库id为空,无法进入详情页"); ElMessage.warning("当前智库id为空,无法进入详情页");
return; return;
} }
const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: tank.id, name: tank.name } }); let encoded;
try {
encoded = btoa(encodeURIComponent(String(tank.id)));
} catch (e) {
ElMessage.warning("当前智库id编码失败,无法进入详情页");
return;
}
const curRoute = router.resolve({ name: "ThinkTankDetail", params: { id: encoded } });
window.open(curRoute.href, "_blank"); window.open(curRoute.href, "_blank");
}; };
onMounted(async () => { onMounted(async () => {
...@@ -253,6 +260,7 @@ onMounted(async () => { ...@@ -253,6 +260,7 @@ onMounted(async () => {
min-height: 80px; min-height: 80px;
position: relative; position: relative;
.to-back-btn { .to-back-btn {
position: absolute; position: absolute;
left: calc(50% - 76px - 1600px/2 - 20px - 33px); left: calc(50% - 76px - 1600px/2 - 20px - 33px);
...@@ -266,6 +274,7 @@ onMounted(async () => { ...@@ -266,6 +274,7 @@ onMounted(async () => {
padding-left: 20px; padding-left: 20px;
margin-top: 24px; margin-top: 24px;
box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1); box-shadow: 0px 0px 20px 0px rgba(25, 69, 130, 0.1);
cursor: pointer;
.back-text { .back-text {
...@@ -468,6 +477,7 @@ onMounted(async () => { ...@@ -468,6 +477,7 @@ onMounted(async () => {
padding-top: 17px; padding-top: 17px;
padding-bottom: 21px; padding-bottom: 21px;
position: relative; position: relative;
cursor: pointer;
.red-info { .red-info {
color: rgb(255, 255, 255); color: rgb(255, 255, 255);
......
...@@ -1808,7 +1808,7 @@ const handleBox8ToDataLibrary = (item) => { ...@@ -1808,7 +1808,7 @@ const handleBox8ToDataLibrary = (item) => {
} }
// 资源库 // 资源库
const categoryList = ref(["智库报告", "调查项目", "国会听证会", "政策建议"]); const categoryList = ref(["智库报告", "调查项目", "国会听证会"]);
const activeCate = ref("智库报告"); const activeCate = ref("智库报告");
const resourceTabResetKey = ref(0) const resourceTabResetKey = ref(0)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论