Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
52941ee8
提交
52941ee8
authored
1月 10, 2026
作者:
Vicky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
完善资源库
上级
9b95945a
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
26 行增加
和
6 行删除
+26
-6
SourceLibrary.vue
src/views/technologyFigures/component/SourceLibrary.vue
+17
-1
index.vue
src/views/technologyFigures/index.vue
+9
-5
没有找到文件。
src/views/technologyFigures/component/SourceLibrary.vue
浏览文件 @
52941ee8
...
...
@@ -46,13 +46,26 @@
<
script
setup
>
// 导入数据(建议使用更具语义的变量名)
import
sourceLibraryData
from
"../json/source.json"
;
import
{
ref
,
onMounted
}
from
"vue"
;
import
{
ref
,
onMounted
,
defineProps
,
watch
}
from
"vue"
;
import
{
useRouter
}
from
"vue-router"
;
import
DefaultIcon1
from
'@/assets/icons/default-icon1.png'
import
DefaultIcon2
from
'@/assets/icons/default-icon2.png'
import
{
getPersonResource
,
getPersonSummaryInfo
}
from
"@/api/technologyFigures/technologyFigures"
;
const
props
=
defineProps
({
typeId
:
{
type
:
String
,
default
:
"000"
}
}
);
watch
(()
=>
props
.
typeId
,
(
val
)
=>
{
handlegetPersonResourceFn
();
}
)
const
router
=
useRouter
();
const
total
=
ref
(
0
);
...
...
@@ -75,6 +88,9 @@ const handlegetPersonResourceFn = async () => {
currentPage
:
currentPage
.
value
-
1
,
// Standard Spring Boot page index is 0-based
pageSize
:
pageSize
.
value
}
;
if
(
props
.
typeId
!==
'000'
){
params
.
personTypeId
=
props
.
typeId
;
}
try
{
const
res
=
await
getPersonResource
(
params
,
abortController
.
value
.
signal
);
console
.
log
(
"人物资源库"
,
res
);
...
...
src/views/technologyFigures/index.vue
浏览文件 @
52941ee8
...
...
@@ -427,17 +427,17 @@
<div
class=
"btn-box"
>
<div
class=
"btn"
:class=
"{ btnActive: activeCate === cate }"
:class=
"{ btnActive: activeCate === cate
.typeName
}"
v-for=
"(cate, index) in categoryList"
:key=
"index"
@
click=
"handleClickCate(cate)"
>
{{ cate
}}
{{ cate
.typeName
}}
</div>
</div>
</div>
<div
class=
"home-main-footer-main"
>
<SourceLibrary
/>
<SourceLibrary
:typeId=
"typeId"
/>
</div>
</div>
</div>
...
...
@@ -518,6 +518,8 @@ const handlgetPersonTypeFn = async () => {
const
res
=
await
getPersonType
();
console
.
log
(
"人物类别"
,
res
);
PersonType
.
value
=
res
.
data
;
categoryList
.
value
=
res
.
data
;
categoryList
.
value
.
unshift
({
typeId
:
'000'
,
typeName
:
'全部人物'
});
}
catch
(
error
)
{
console
.
error
(
error
);
}
...
...
@@ -919,8 +921,10 @@ const yearList = ref([
const
categoryList
=
ref
([
"全部人物"
,
"国会议员"
,
"行政主官"
,
"科技领袖"
,
"顶尖科学家"
]);
const
activeCate
=
ref
(
"全部人物"
);
const
typeId
=
ref
(
"000"
);
const
handleClickCate
=
cate
=>
{
activeCate
.
value
=
cate
;
activeCate
.
value
=
cate
.
typeName
;
typeId
.
value
=
cate
.
typeId
;
};
// 查看更多风险信号
...
...
@@ -1922,7 +1926,7 @@ onMounted(async () => {
.home-main-footer
{
height
:
1000px
;
overflow
:
hidden
;
.home-main-footer-header
{
width
:
1600px
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论