提交 25ef0ca6 authored 作者: 安云鹏's avatar 安云鹏

Merge branch 'pre' of ssh://8.140.26.4:10004/caijian/risk-monitor into pre

...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: block;
} }
} }
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
const thinkTank = () => import('@/views/thinkTank/index.vue') const thinkTank = () => import('@/views/thinkTank/index.vue')
const ThinkTankDetail = () => import('@/views/thinkTank/ThinkTankDetail/index.vue') const ThinkTankDetail = () => import('@/views/thinkTank/ThinkTankDetail/index.vue')
const ReportDetail = () => import('@/views/thinkTank/ReportDetail/index.vue') const ReportDetail = () => import('@/views/thinkTank/ReportDetail/index.vue')
const SurveyProjectView = () => import('@/views/thinkTank/SurveyProjectView/index.vue')
const CongressHearingView = () => import('@/views/thinkTank/CongressHearingView/index.vue')
const ReportOriginal = () => import('@/views/thinkTank/reportOriginal/index.vue') const ReportOriginal = () => import('@/views/thinkTank/reportOriginal/index.vue')
const allThinkTank= () => import('@/views/thinkTank/allThinkTank/index.vue') const allThinkTank= () => import('@/views/thinkTank/allThinkTank/index.vue')
const MultiThinkTankViewAnalysis= () => import('@/views/thinkTank/MultiThinkTankViewAnalysis/index.vue') const MultiThinkTankViewAnalysis= () => import('@/views/thinkTank/MultiThinkTankViewAnalysis/index.vue')
...@@ -40,6 +42,16 @@ const thinktankRoutes = [ ...@@ -40,6 +42,16 @@ const thinktankRoutes = [
name: "ReportOriginal", name: "ReportOriginal",
component: ReportOriginal, component: ReportOriginal,
},
{
path: "/thinkTank/SurveyProjectView/:id",
name: "SurveyProjectView",
component: SurveyProjectView,
},
{
path: "/thinkTank/CongressHearingView/:id",
name: "CongressHearingView",
component: CongressHearingView,
}, },
{ {
path: "/thinkTank/allThinkTank", path: "/thinkTank/allThinkTank",
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
</div> </div>
</div> </div>
</div> --> </div> -->
<NewsList :newsList="leftList" @item-click="handleToNewsDetail" @more-click="handleToMoreNews" img="image" <NewsList :newsList="leftList" @item-click="item => gotoNewsDetail(item.id)" @more-click="handleToMoreNews"
title="title" content="content" from="from" /> img="image" title="title" content="content" from="from" />
<MessageBubble :messageList="rightList" imageUrl="personImage" @more-click="handleToSocialDetail" <MessageBubble :messageList="rightList" imageUrl="personImage" @more-click="handleToSocialDetail"
@person-click="handleToSocialDetail" name="name" content="content" source="orgName" image-url="image" /> @person-click="handleToSocialDetail" name="name" content="content" source="orgName" image-url="image" />
<!-- <div class="right"> <!-- <div class="right">
...@@ -60,6 +60,8 @@ import title03 from './assets/title03.png' ...@@ -60,6 +60,8 @@ import title03 from './assets/title03.png'
import title01bg from './assets/title01bg.png' import title01bg from './assets/title01bg.png'
import title02bg from './assets/title02bg.png' import title02bg from './assets/title02bg.png'
import title03bg from './assets/title03bg.png' import title03bg from './assets/title03bg.png'
import { useGotoNewsDetail } from '@/router/modules/news';
const gotoNewsDetail = useGotoNewsDetail()
// 合作限制-查询社交媒体接口 // 合作限制-查询社交媒体接口
const getCoopRestrictionSocialData = async () => { const getCoopRestrictionSocialData = async () => {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<el-carousel ref="carouselRef" height="412px" direction="horizontal" :autoplay="true" :interval="5000" <el-carousel ref="carouselRef" height="412px" direction="horizontal" :autoplay="true" :interval="5000"
arrow="never" indicator-position="none" @change="handleCarouselChange"> arrow="never" indicator-position="none" @change="handleCarouselChange">
<el-carousel-item v-for="(item, index) in coopRestrictionTrends" :key="item.ID || index"> <el-carousel-item v-for="(item, index) in coopRestrictionTrends" :key="item.ID || index">
<div class="carousel-item-content">
<div class="left-center"> <div class="left-center">
<img :src="item.IMAGEURL || defaultImg" alt="" /> <img :src="item.IMAGEURL || defaultImg" alt="" />
<div class="left-center-main"> <div class="left-center-main">
...@@ -44,7 +44,9 @@ ...@@ -44,7 +44,9 @@
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
<div class="left-center-type" v-if="item.type">{{ item.type }}</div>
<!-- <div class="left-center-title">{{ item.LIMITTYPE }}</div> --> <!-- <div class="left-center-title">{{ item.LIMITTYPE }}</div> -->
</div> </div>
<div class="left-bottom"> <div class="left-bottom">
...@@ -55,7 +57,7 @@ ...@@ -55,7 +57,7 @@
{{ item.INTRODUCTION || "暂无内容摘要" }} {{ item.INTRODUCTION || "暂无内容摘要" }}
</div> </div>
</div> </div>
</div>
</el-carousel-item> </el-carousel-item>
<!-- 无数据时的占位展示 --> <!-- 无数据时的占位展示 -->
...@@ -108,6 +110,7 @@ ...@@ -108,6 +110,7 @@
查看更多 查看更多
</div> </div>
</div> --> </div> -->
<RiskSignal :list="riskSignals" @more-click="handleToMoreRiskSignal" postDate="time" name="content" <RiskSignal :list="riskSignals" @more-click="handleToMoreRiskSignal" postDate="time" name="content"
riskLevel="title" @item-click="handleClickToDetail" /> riskLevel="title" @item-click="handleClickToDetail" />
</div> </div>
...@@ -233,7 +236,7 @@ onMounted(() => { ...@@ -233,7 +236,7 @@ onMounted(() => {
.left { .left {
width: 1064px; width: 1064px;
height: 460px; height: 450px;
margin-right: 16px; margin-right: 16px;
border-radius: 10px; border-radius: 10px;
background-color: #fff; background-color: #fff;
...@@ -330,6 +333,7 @@ onMounted(() => { ...@@ -330,6 +333,7 @@ onMounted(() => {
.left-center-main { .left-center-main {
width: 439px; width: 439px;
height: 175px; height: 175px;
position: relative;
.left-center-main-title { .left-center-main-title {
margin-left: 19px; margin-left: 19px;
...@@ -420,6 +424,29 @@ onMounted(() => { ...@@ -420,6 +424,29 @@ onMounted(() => {
} }
} }
} }
}
.left-center-type {
position: absolute;
top: 0;
right: 0;
height: 32px;
font-family: "Source Han Sans CN";
font-weight: 700;
font-size: 18px;
line-height: 24px;
letter-spacing: 0px;
text-align: left;
color: rgb(5, 95, 194);
background-color: rgb(231, 243, 255);
align-items: center;
border-radius: 4px;
padding-left: 8px;
padding-right: 8px;
padding-top: 3px;
padding-bottom: 5px;
} }
.left-center-title { .left-center-title {
...@@ -439,7 +466,7 @@ onMounted(() => { ...@@ -439,7 +466,7 @@ onMounted(() => {
} }
.left-bottom { .left-bottom {
margin: 17px 0 0 62px; margin: 17px 0 0 59px;
ul { ul {
list-style-position: inside; list-style-position: inside;
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<div class="main-content" ref="homeMainRef" :class="{ 'scroll-main': isShow }"> <div class="main-content" ref="homeMainRef" :class="{ 'scroll-main': isShow }">
<div class="home-top-bg"></div> <div class="home-top-bg"></div>
<!-- 搜索栏部分 --> <!-- 搜索栏部分 -->
<SearchContainer v-if="homeMainRef" placeholder="搜索合作限制" :containerRef="homeMainRef" areaName="" /> <SearchContainer v-if="homeMainRef" :countInfo="cooperationCountInfo" placeholder="搜索合作限制"
:containerRef="homeMainRef" areaName="" />
<!-- 最新动态 --> <!-- 最新动态 -->
<div class="newdata" id="position1"> <div class="newdata" id="position1">
...@@ -57,9 +58,36 @@ import newData from "./components/dataNew/index.vue"; ...@@ -57,9 +58,36 @@ import newData from "./components/dataNew/index.vue";
import askPage from "./components/askPage/index.vue"; import askPage from "./components/askPage/index.vue";
import dataSub from "./components/dataSub/index.vue"; import dataSub from "./components/dataSub/index.vue";
import resLib from "./components/resLib/index.vue"; import resLib from "./components/resLib/index.vue";
import { getCoopRestrictionStatistics } from "@/api/coopRestriction/coopRestriction.js";
import { useContainerScroll } from "@/hooks/useScrollShow"; import { useContainerScroll } from "@/hooks/useScrollShow";
const cooperationCountInfo = ref([]);
// const
const getCooperationCountInfo = async () => {
try {
const res = await getCoopRestrictionStatistics();
if (res && res.code === 200) {
// console.log('----getStatCountInfo', res.data)
cooperationCountInfo.value = [
{
name: "相关法案",
count: res.data.billCounts
},
{
name: "相关政令",
count: res.data.aocounts
},
{
name: "相关政府公告",
count: res.data.ggcounts
},
];
}
} catch (error) {
console.error("获取首页统计接口失败:", error);
}
};
// 搜索框 // 搜索框
const input = ref(""); const input = ref("");
const homeMainRef = ref(null); const homeMainRef = ref(null);
...@@ -71,7 +99,9 @@ const router = useRouter(); ...@@ -71,7 +99,9 @@ const router = useRouter();
const handleSearch = () => { const handleSearch = () => {
console.log("搜索内容:", input.value); console.log("搜索内容:", input.value);
}; };
onMounted(() => {
getCooperationCountInfo();
});
// 锚点跳转 // 锚点跳转
const handleToPosi = id => { const handleToPosi = id => {
const element = document.getElementById(id); const element = document.getElementById(id);
...@@ -106,6 +136,7 @@ const handleToPosi = id => { ...@@ -106,6 +136,7 @@ const handleToPosi = id => {
.coop-page { .coop-page {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex;
// .breadcrumb { // .breadcrumb {
// width: 100%; // width: 100%;
// height: 64px; // height: 64px;
...@@ -138,6 +169,12 @@ const handleToPosi = id => { ...@@ -138,6 +169,12 @@ const handleToPosi = id => {
top: -64px; top: -64px;
} }
:deep(.search-container .search-center) {
width: 440px;
gap: 40px;
justify-content: center;
}
.search { .search {
width: 960px; width: 960px;
height: 168px; height: 168px;
...@@ -467,8 +504,6 @@ const handleToPosi = id => { ...@@ -467,8 +504,6 @@ const handleToPosi = id => {
} }
} }
.scroll-main {
height: calc(100% - 144px) !important;
}
} }
</style> </style>
...@@ -474,7 +474,7 @@ const handleOpenReportOriginalFromSource = (sv) => { ...@@ -474,7 +474,7 @@ const handleOpenReportOriginalFromSource = (sv) => {
const id = String(sv?.report_id ?? "").trim() const id = String(sv?.report_id ?? "").trim()
if (!id) return if (!id) return
const route = router.resolve({ const route = router.resolve({
name: "ReportOriginal", name: "ReportDetail",
params: { id } params: { id }
}) })
window.open(route.href, "_blank") window.open(route.href, "_blank")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论