Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
risk-monitor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
2
合并请求
2
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
蔡建
risk-monitor
Commits
a7069f1e
提交
a7069f1e
authored
3月 30, 2026
作者:
yanpeng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
合并
上级
ec4dc0ac
流水线
#196
已通过 于阶段
in 1 分 56 秒
变更
3
流水线
1
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
75 行增加
和
29 行删除
+75
-29
index.vue
src/components/base/moduleHeader/index.vue
+30
-29
LeftBtn.vue
src/components/base/pageBtn/LeftBtn.vue
+23
-0
RightBtn.vue
src/components/base/pageBtn/RightBtn.vue
+22
-0
没有找到文件。
src/components/base/moduleHeader/index.vue
浏览文件 @
a7069f1e
...
...
@@ -9,13 +9,8 @@
<SearchBar
v-show=
"isShowSearchBar"
/>
<div
class=
"title-box"
v-show=
"!isShowSearchBar"
>
<!--
<div
class=
"title-box"
v-if=
"false"
>
-->
<div
class=
"title"
v-for=
"(item, index) in homeTitleList"
:key=
"index"
@
mouseenter=
"handleShowMenu(index, true)"
@
click=
"handleClickTitle(item, index)"
>
<div
class=
"title"
v-for=
"(item, index) in homeTitleList"
:key=
"index"
@
mouseenter=
"handleShowMenu(index, true)"
@
click=
"handleClickTitle(item, index)"
>
<div
class=
"text text-title-1-show"
:class=
"
{ textActive: homeActiveTitleIndex === index }">
{{
item
.
name
}}
</div>
...
...
@@ -35,7 +30,8 @@
<div
class=
"name text-regular"
>
{{
"管理员"
}}
</div>
</div>
</div>
<div
class=
"menu-box"
v-show=
"isShowMenu"
@
mouseenter=
"handleHoverMenu(true)"
@
mouseleave=
"handleHoverMenu(false)"
>
<div
class=
"menu-box"
v-show=
"isShowMenu"
@
mouseenter=
"handleHoverMenu(true)"
@
mouseleave=
"handleHoverMenu(false)"
>
<div
class=
"menu-content"
>
<div
class=
"menu-item"
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"handleToModule(item, 1)"
>
<div
class=
"icon"
>
...
...
@@ -45,7 +41,8 @@
</div>
</div>
</div>
<div
class=
"tool-box"
v-show=
"isShowTool"
@
mouseenter=
"handleHoverTool(true)"
@
mouseleave=
"handleHoverTool(false)"
>
<div
class=
"tool-box"
v-show=
"isShowTool"
@
mouseenter=
"handleHoverTool(true)"
@
mouseleave=
"handleHoverTool(false)"
>
<div
class=
"menu-content"
>
<div
class=
"menu-item"
v-for=
"(item, index) in toolList"
:key=
"index"
@
click=
"handleToModule(item, 2)"
>
<div
class=
"icon"
>
...
...
@@ -78,8 +75,8 @@ import Menu9 from "@/assets/icons/overview/menu9.png";
import
Menu10
from
"@/assets/icons/overview/menu10.png"
;
import
Menu11
from
"@/assets/icons/overview/menu11.png"
;
import
Menu12
from
"@/assets/icons/overview/menu12.png"
;
import
Tool1
from
"./tool1.svg"
;
import
Tool2
from
"./tool2.svg"
;
import
Tool1
from
'./tool1.svg'
import
Tool2
from
'./tool2.svg'
import
{
ElMessage
}
from
"element-plus"
;
import
{
useWrittingAsstaintStore
}
from
"@/stores/writtingAsstaintStore"
;
const
store
=
useWrittingAsstaintStore
();
...
...
@@ -87,7 +84,7 @@ let isShowSearchBar = computed(() => {
return
store
.
isShowSearchBar
;
});
const
router
=
useRouter
();
const
route
=
useRoute
()
;
const
route
=
useRoute
()
const
personTypeList
=
ref
([]);
...
...
@@ -102,11 +99,12 @@ const handleGetPersonType = async () => {
personTypeList
.
value
=
[];
}
window
.
sessionStorage
.
setItem
(
"personTypeList"
,
JSON
.
stringify
(
personTypeList
.
value
));
}
catch
(
error
)
{}
}
catch
(
error
)
{
}
};
// 概览页标题列表
const
homeTitleList
=
ref
([
{
name
:
"首页"
,
path
:
"/ZMOverView"
,
...
...
@@ -138,10 +136,10 @@ const handleShowMenu = (index, isShow) => {
isShowMenu
.
value
=
isShow
;
isShowTool
.
value
=
false
;
}
else
if
(
index
===
2
)
{
isShowMenu
.
value
=
false
;
isShowMenu
.
value
=
false
isShowTool
.
value
=
isShow
;
}
else
{
isShowMenu
.
value
=
false
;
isShowMenu
.
value
=
false
isShowTool
.
value
=
false
;
}
};
...
...
@@ -219,6 +217,7 @@ const handleHoverTool = isShow => {
isShowTool
.
value
=
isShow
;
};
const
toolList
=
ref
([
{
title
:
"智能问答"
,
...
...
@@ -229,16 +228,16 @@ const toolList = ref([
title
:
"智能写报"
,
icon
:
Tool2
,
path
:
"/writtingAsstaint"
}
])
;
}
,
])
const
handleToModule
=
(
item
,
index
)
=>
{
window
.
sessionStorage
.
setItem
(
"homeActiveTitleIndex"
,
index
);
window
.
sessionStorage
.
setItem
(
'homeActiveTitleIndex'
,
index
)
if
(
index
===
1
)
{
homeActiveTitleIndex
.
value
=
index
;
homeActiveTitleIndex
.
value
=
index
router
.
push
({
path
:
item
.
path
})
;
})
}
else
{
const
curRoute
=
router
.
resolve
({
path
:
item
.
path
,
...
...
@@ -249,15 +248,16 @@ const handleToModule = (item, index) => {
window
.
open
(
curRoute
.
href
,
"_blank"
);
}
isShowMenu
.
value
=
false
;
isShowTool
.
value
=
false
;
isShowMenu
.
value
=
false
isShowTool
.
value
=
false
};
const
handleClickTitle
=
(
item
,
index
)
=>
{
if
(
index
===
0
||
index
===
3
)
{
window
.
sessionStorage
.
setItem
(
"homeActiveTitleIndex"
,
index
);
homeActiveTitleIndex
.
value
=
index
;
router
.
push
(
item
.
path
)
;
window
.
sessionStorage
.
setItem
(
'homeActiveTitleIndex'
,
index
)
homeActiveTitleIndex
.
value
=
index
router
.
push
(
item
.
path
)
}
};
...
...
@@ -268,15 +268,16 @@ const handleClickToolBox = () => {
onMounted
(()
=>
{
handleGetPersonType
();
if
(
route
.
query
.
titleIndex
)
{
homeActiveTitleIndex
.
value
=
Number
(
route
.
query
.
titleIndex
)
;
homeActiveTitleIndex
.
value
=
Number
(
route
.
query
.
titleIndex
)
}
else
{
homeActiveTitleIndex
.
value
=
Number
(
window
.
sessionStorage
.
getItem
(
"homeActiveTitleIndex"
));
homeActiveTitleIndex
.
value
=
Number
(
window
.
sessionStorage
.
getItem
(
'homeActiveTitleIndex'
))
}
});
onUnmounted
(()
=>
{
window
.
sessionStorage
.
removeItem
(
"homeActiveTitleIndex"
);
})
;
window
.
sessionStorage
.
removeItem
(
'homeActiveTitleIndex'
)
})
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/components/base/pageBtn/LeftBtn.vue
0 → 100644
浏览文件 @
a7069f1e
<
template
>
<div
class=
"left-btn-wrapper"
>
<img
src=
"@/assets/images/icon/card-btn-left.png"
alt=
""
>
</div>
</
template
>
<
script
setup
>
</
script
>
<
style
lang=
"scss"
scoped
>
.left-btn-wrapper
{
width
:
24px
;
height
:
48px
;
cursor
:
pointer
img
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
\ No newline at end of file
src/components/base/pageBtn/RightBtn.vue
0 → 100644
浏览文件 @
a7069f1e
<
template
>
<div
class=
"right-btn-wrapper"
>
<img
src=
"@/assets/images/icon/card-btn-right.png"
alt=
""
>
</div>
</
template
>
<
script
setup
>
</
script
>
<
style
lang=
"scss"
scoped
>
.right-btn-wrapper
{
width
:
24px
;
height
:
48px
;
cursor
:
pointer
img
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论