Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
daf92468
提交
daf92468
authored
3月 24, 2026
作者:
hsx
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'hsx' 到 'master'
feat:新闻的翻译高亮实体 查看合并请求
!198
上级
774b99b3
7f04e169
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
11 行删除
+15
-11
.gitignore
.gitignore
+1
-0
index.vue
src/views/home/index.vue
+3
-3
NewsDetial.vue
src/views/newsBrief/NewsDetial.vue
+4
-3
NewsMain.vue
src/views/newsBrief/NewsMain.vue
+7
-5
没有找到文件。
.gitignore
浏览文件 @
daf92468
...
...
@@ -14,6 +14,7 @@ lerna-debug.log*
# Dependencies
node_modules
*node_modules
.pnpm
.npm
...
...
src/views/home/index.vue
浏览文件 @
daf92468
...
...
@@ -77,7 +77,7 @@ import { useRoute } from "vue-router";
import
AiBox
from
"@/components/AiBox.vue"
;
import
{
getPersonType
}
from
"@/api/common/index"
;
// import { useDraggable } from "@vueuse/core";
import
ModuleHeader
from
'@/components/base/
M
oduleHeader/index.vue'
import
ModuleHeader
from
'@/components/base/
m
oduleHeader/index.vue'
import
Menu1
from
"@/assets/icons/overview/menu1.png"
;
import
Menu2
from
"@/assets/icons/overview/menu2.png"
;
...
...
@@ -120,7 +120,7 @@ const handleGetPersonType = async () => {
personTypeList
.
value
=
[];
}
window
.
sessionStorage
.
setItem
(
"personTypeList"
,
JSON
.
stringify
(
personTypeList
.
value
));
}
catch
(
error
)
{}
}
catch
(
error
)
{
}
};
const
isCurrentOverview
=
computed
(()
=>
{
...
...
@@ -298,7 +298,7 @@ body {
text-align
:
justify
;
}
.el-popper
[
data-popper-placement
^=
"top"
]
>
.el-popper__arrow
:before
{
.el-popper
[
data-popper-placement
^=
"top"
]
>
.el-popper__arrow
:before
{
display
:
none
;
}
...
...
src/views/newsBrief/NewsDetial.vue
浏览文件 @
daf92468
...
...
@@ -110,11 +110,12 @@ onMounted(async () => {
}
);
async
function
handleHighlightEntity
()
{
if
(
textEntities
.
value
.
length
>
0
)
return
const
{
result
:
entityDataZh
}
=
await
extractTextEntity
(
newsDetail
.
value
?.
contentZh
??
''
);
if
(
textEntities
.
value
.
length
>
0
||
(
!
newsDetail
.
value
?.
contentZh
&&
!
newsDetail
.
value
?.
content
))
return
const
{
result
:
entityDataZh
}
=
await
extractTextEntity
(
newsDetail
.
value
.
contentZh
??
''
);
textEntities
.
value
=
[...
entityDataZh
??
[]]
if
(
newsDetail
.
value
.
contentZh
!==
newsDetail
.
value
.
content
)
{
const
{
result
:
entityData
}
=
await
extractTextEntity
(
newsDetail
.
value
?
.
content
??
''
);
const
{
result
:
entityData
}
=
await
extractTextEntity
(
newsDetail
.
value
.
content
??
''
);
textEntities
.
value
=
[...
textEntities
.
value
,
...
entityData
??
[]]
}
console
.
log
(
isHightLightEntity
.
value
)
...
...
src/views/newsBrief/NewsMain.vue
浏览文件 @
daf92468
...
...
@@ -25,18 +25,19 @@
<img
src=
"@/assets/icons/subject-icon.png"
/>
</
template
>
<el-space
:size=
"16"
direction=
"vertical"
fill
class=
"full-width common-padding"
>
<el-space
v-for=
"(item, index) in subjectData.slice(0, 3)"
:key=
"index"
class=
"mouse-hover"
<el-space
v-for=
"(item, index) in subjectData.slice(0, 3)"
:key=
"index"
@
click=
"() => gotoNewsDetail(item.newsId)"
alignment=
"center"
>
<common-text
class=
"text-bold"
<common-text
class=
"text-bold
text-hover
"
:color=
"index === 0 ? 'var(--color-red-100)' : (index === 1 ? 'var(--color-orange-100)' : 'var(--text-primary-65-color)')"
>
{{ `${index + 1}` }}
</common-text>
<common-text
class=
"text-bold"
color=
"var(--text-primary-80-color)"
>
{{
<common-text
class=
"text-bold
text-hover
"
color=
"var(--text-primary-80-color)"
>
{{
item.newsTitle
}}
</common-text>
</el-space>
<el-space
v-for=
"(item, index) in subjectData.slice(3)"
:key=
"index"
class=
"mouse-hover"
>
<common-text
class=
"text-regular"
color=
"var(--text-primary-80-color)"
>
{{
<el-space
v-for=
"(item, index) in subjectData.slice(3)"
:key=
"index"
@
click=
"() => gotoNewsDetail(item.newsId)"
>
<common-text
class=
"text-regular text-hover"
color=
"var(--text-primary-80-color)"
>
{{
"• " + item.newsTitle
}}
</common-text>
</el-space>
...
...
@@ -48,6 +49,7 @@
</template>
<
script
setup
>
import
{
ref
,
onMounted
}
from
"vue"
;
import
'@/styles/common.scss'
;
import
'@/styles/container.scss'
;
import
'@/styles/radio.scss'
;
import
{
useGotoNewsModule
,
useGotoNewsDetail
}
from
"@/router/modules/news"
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论