Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
2759ede8
提交
2759ede8
authored
3月 06, 2026
作者:
朱政
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:删除一些有问题的引用,以及提高NewList的兼容性
上级
69298145
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
34 行增加
和
31 行删除
+34
-31
NewsList.vue
src/components/NewsList.vue
+21
-11
index.vue
src/views/coopRestriction/components/askPage/index.vue
+3
-7
index.vue
src/views/coopRestriction/index.vue
+0
-2
index.vue
src/views/exportControl/index.vue
+1
-1
index.vue
src/views/finance/index.vue
+1
-1
index.vue
src/views/innovationSubject/index.vue
+1
-6
index.vue
...views/marketAccessRestrictions/marketAccessHome/index.vue
+5
-1
index.vue
src/views/ruleRestriction/components/askPage/index.vue
+1
-1
index.vue
src/views/scientificFunding/components/askPage/index.vue
+1
-1
没有找到文件。
src/components/NewsList.vue
浏览文件 @
2759ede8
...
...
@@ -10,23 +10,20 @@
</div>
</div>
<div
class=
"box3-main"
>
<div
class=
"box3-item"
v-for=
"(news, index) in list"
:key=
"index"
@
click=
"handleClickToNewsDetail(news)"
>
<div
class=
"box3-item"
v-for=
"(news, index) in normalizedList"
:key=
"index"
@
click=
"handleClickToNewsDetail(news)"
>
<div
class=
"left"
>
<img
:src=
"getProxyUrl(news.newsImage) || defaultImg"
alt=
""
referrerpolicy=
"no-referrer"
@
error=
"e => (e.target.src = errImg||News1)"
/>
<img
:src=
"getProxyUrl(news.newsImage) || defaultImg"
alt=
""
referrerpolicy=
"no-referrer"
@
error=
"e => (e.target.src = errImg || News1)"
/>
</div>
<div
class=
"right"
>
<div
class=
"right-top"
>
<div
class=
"title"
>
{{
news
.
newsTitle
||
news
.
title
}}
</div>
<div
class=
"title"
>
{{
news
.
newsTitle
||
news
.
title
}}
</div>
<div
class=
"time"
>
{{
news
.
newsDate
?
news
.
newsDate
.
slice
(
5
)
:
""
}}
{{
news
.
newsOrg
?
"-"
+
news
.
newsOrg
:
""
}}
</div>
</div>
<div
class=
"right-footer"
>
{{
news
.
newsContent
||
news
.
description
}}
</div>
<div
class=
"right-footer"
>
{{
news
.
newsContent
||
news
.
description
}}
</div>
</div>
</div>
</div>
...
...
@@ -34,15 +31,21 @@
</
template
>
<
script
setup
>
import
{
computed
}
from
"vue"
;
import
router
from
"@/router/index"
;
import
News1
from
"@/assets/images/news1.png"
;
// 错误图片
import
defaultNew
from
"@/assets/images/default-icon-news.png"
;
// 默认图片
let
{
list
,
errImg
,
defaultImg
}
=
defineProps
({
let
{
list
,
newsList
,
errImg
,
defaultImg
}
=
defineProps
({
list
:
{
type
:
Array
,
default
:
()
=>
[]
},
// 兼容历史用法:部分页面使用 newsList 作为入参
newsList
:
{
type
:
Array
,
default
:
undefined
},
defaultImg
:
{
type
:
String
,
default
:
defaultNew
...
...
@@ -53,6 +56,11 @@ let { list,errImg,defaultImg } = defineProps({
}
});
// 统一对外渲染数据源:优先使用 list,其次兼容 newsList
const
normalizedList
=
computed
(()
=>
{
return
(
Array
.
isArray
(
list
)
&&
list
.
length
?
list
:
newsList
)
||
[];
});
// 处理图片代理
const
getProxyUrl
=
url
=>
{
if
(
!
url
)
return
""
;
...
...
@@ -74,7 +82,7 @@ const handleClickToNewsDetail = news => {
const
route
=
router
.
resolve
({
path
:
"/newsAnalysis"
,
query
:
{
newsId
:
news
.
newsId
newsId
:
news
.
newsId
??
news
.
id
}
});
window
.
open
(
route
.
href
,
"_blank"
);
...
...
@@ -183,9 +191,11 @@ const handleToMoreNews = () => {
width
:
657px
;
display
:
flex
;
justify-content
:
space-between
;
&
:hover
{
text-decoration
:
underline
;
color
:
var
(
--
color-main-active
);
.title
{
color
:
var
(
--
color-main-active
);
}
...
...
src/views/coopRestriction/components/askPage/index.vue
浏览文件 @
2759ede8
...
...
@@ -50,14 +50,10 @@
</
template
>
<
script
setup
>
import
NewsList
from
"@/components/NewsList
/NewsList
.vue"
;
import
NewsList
from
"@/components/NewsList.vue"
;
import
{
ref
,
onMounted
}
from
"vue"
;
import
router
from
'@/router'
import
{
getCoopRestrictionNews
,
getCoopRestrictionSocial
}
from
'@/api/coopRestriction/coopRestriction'
import
CommonPrompt
from
"../../commonPrompt/index.vue"
;
import
defaultNews
from
"../../assets/images/default-icon-news.png"
import
defaultAvatar
from
"../../assets/images/default-icon1.png"
import
title01
from
'./assets/title01.png'
import
title02
from
'./assets/title02.png'
import
title03
from
'./assets/title03.png'
...
...
@@ -92,7 +88,7 @@ const getCoopRestrictionSocialData = async () => {
console
.
error
(
"获取合作限制社交媒体数据失败:"
,
error
);
}
};
const
leftList
=
ref
([])
// 合作限制-查询新闻资讯接口
const
getCoopRestrictionNewsData
=
async
()
=>
{
...
...
@@ -114,7 +110,7 @@ const getCoopRestrictionNewsData = async () => {
};
const
leftList
=
ref
([])
const
rightList
=
ref
([])
...
...
src/views/coopRestriction/index.vue
浏览文件 @
2759ede8
...
...
@@ -52,8 +52,6 @@
<
script
setup
>
import
{
ref
,
onMounted
,
nextTick
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
HeaderMenu
from
"@/components/headerMenu.vue"
;
import
headerInfo
from
"@/components/headerInfo.vue"
;
import
comTitle
from
"./common/comTitle.vue"
;
import
newData
from
"./components/dataNew/index.vue"
;
import
askPage
from
"./components/askPage/index.vue"
;
...
...
src/views/exportControl/index.vue
浏览文件 @
2759ede8
...
...
@@ -598,7 +598,7 @@
</template>
<
script
setup
>
import
NewsList
from
"@/components/NewsList
/NewsList
.vue"
;
import
NewsList
from
"@/components/NewsList.vue"
;
import
RiskSignal
from
"@/components/RiskSignal/RiskSignal.vue"
;
import
{
onMounted
,
ref
,
computed
,
reactive
,
shallowRef
,
watch
,
nextTick
}
from
"vue"
;
import
{
useContainerScroll
}
from
"@/hooks/useScrollShow"
;
...
...
src/views/finance/index.vue
浏览文件 @
2759ede8
...
...
@@ -477,7 +477,7 @@ import CustomContainer from "@/components/Container/index.vue";
import
ClickableCard
from
"./components/link.vue"
;
import
InfoCard
from
"./components/info.vue"
;
import
CustomTitle
from
"./components/title.vue"
;
import
NewsList
from
"@/components/NewsList
/NewsList
.vue"
;
import
NewsList
from
"@/components/NewsList.vue"
;
import
trumpAvatar
from
"@/assets/images/icon-trump.png"
;
import
elongAvatar
from
"@/assets/images/icon-elong.png"
;
...
...
src/views/innovationSubject/index.vue
浏览文件 @
2759ede8
...
...
@@ -375,17 +375,12 @@
<
script
setup
>
import
RiskSignal
from
"@/components/RiskSignal/RiskSignal.vue"
;
import
NewsList
from
"@/components/NewsList
/NewsList
.vue"
;
import
NewsList
from
"@/components/NewsList.vue"
;
import
{
onMounted
,
ref
,
computed
}
from
"vue"
;
import
*
as
echarts
from
"echarts"
;
import
router
from
"@/router"
;
import
DivideHeader
from
"@/components/DivideHeader.vue"
;
import
scrollToTop
from
"@/utils/scrollToTop"
;
import
{
useContainerScroll
}
from
"@/hooks/useScrollShow"
;
import
getBarChart
from
"./utils/barChart"
;
import
getPieChart
from
"./utils/piechart"
;
import
getCalendarHeatChart
from
"./utils/cleandarHeat"
;
import
EChart
from
"@/components/Chart/index.vue"
;
import
{
pieOption
,
raderOption
}
from
"./utils/charts"
;
import
{
...
...
src/views/marketAccessRestrictions/marketAccessHome/index.vue
浏览文件 @
2759ede8
...
...
@@ -530,7 +530,7 @@
<
/template
>
<
script
setup
>
import
NewsList
from
"@/components/NewsList
/NewsList
.vue"
;
import
NewsList
from
"@/components/NewsList.vue"
;
import
RiskSignal
from
"@/components/RiskSignal/RiskSignal.vue"
;
import
{
onMounted
,
ref
}
from
"vue"
;
import
setChart
from
"@/utils/setChart"
;
...
...
@@ -2366,9 +2366,11 @@ onMounted(async () => {
display
:
flex
;
justify
-
content
:
center
;
gap
:
16
px
;
.
box3
{
width
:
792
px
;
height
:
450
px
;
.
box3
-
header
{
height
:
48
px
;
border
-
bottom
:
1
px
solid
rgba
(
240
,
242
,
244
,
1
);
...
...
@@ -2507,6 +2509,7 @@ onMounted(async () => {
.
box4
{
width
:
792
px
;
height
:
450
px
;
.
box4
-
header
{
width
:
792
px
;
height
:
48
px
;
...
...
@@ -2626,6 +2629,7 @@ onMounted(async () => {
.
box5
{
width
:
1064
px
;
height
:
460
px
;
.
box
-
header
-
right
{
height
:
48
px
;
display
:
flex
;
...
...
src/views/ruleRestriction/components/askPage/index.vue
浏览文件 @
2759ede8
...
...
@@ -61,7 +61,7 @@
</
template
>
<
script
setup
>
import
NewsList
from
"@/components/NewsList
/NewsList
.vue"
;
import
NewsList
from
"@/components/NewsList.vue"
;
import
{
ref
,
onBeforeMount
}
from
"vue"
;
import
router
from
"@/router"
...
...
src/views/scientificFunding/components/askPage/index.vue
浏览文件 @
2759ede8
...
...
@@ -53,7 +53,7 @@
</
template
>
<
script
setup
>
import
NewsList
from
"@/components/NewsList
/NewsList
.vue"
;
import
NewsList
from
"@/components/NewsList.vue"
;
import
{
ref
,
onMounted
}
from
"vue"
;
import
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论