Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
698d3362
提交
698d3362
编写于
6月 25, 2025
作者:
Cano1997
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复分页导航激活页标识异常
上级
81bcd39f
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
10 行增加
和
4 行删除
+10
-4
tab-exp-view.tsx
app_Web/src/components/views/tab-exp-view/tab-exp-view.tsx
+10
-4
未找到文件。
app_Web/src/components/views/tab-exp-view/tab-exp-view.tsx
浏览文件 @
698d3362
...
@@ -35,6 +35,8 @@ export const TabExpView = defineComponent({
...
@@ -35,6 +35,8 @@ export const TabExpView = defineComponent({
const
deactivateAll
=
ref
(
false
);
const
deactivateAll
=
ref
(
false
);
const
router
=
useRouter
(
proxy
);
const
router
=
useRouter
(
proxy
);
const
cacheTab
=
ref
(
''
);
const
tabExpPagesHistory
:
{
const
tabExpPagesHistory
:
{
[
page
:
string
]:
string
;
[
page
:
string
]:
string
;
}
=
{};
}
=
{};
...
@@ -44,7 +46,7 @@ export const TabExpView = defineComponent({
...
@@ -44,7 +46,7 @@ export const TabExpView = defineComponent({
const
route
=
useRoute
(
proxy
);
const
route
=
useRoute
(
proxy
);
// 标签切换前缓存当前路径
// 标签切换前缓存当前路径
const
fullPath
=
route
.
fullPath
;
const
fullPath
=
route
.
fullPath
;
tabExpPagesHistory
[
activ
eTab
.
value
]
=
fullPath
;
tabExpPagesHistory
[
cach
eTab
.
value
]
=
fullPath
;
// 找到对应分页模型并初始化分页视图模型
// 找到对应分页模型并初始化分页视图模型
const
embedView
=
c
.
getEmbedViewByName
(
name
);
const
embedView
=
c
.
getEmbedViewByName
(
name
);
...
@@ -72,10 +74,12 @@ export const TabExpView = defineComponent({
...
@@ -72,10 +74,12 @@ export const TabExpView = defineComponent({
setTimeout
(()
=>
{
setTimeout
(()
=>
{
deactivateAll
.
value
=
false
;
deactivateAll
.
value
=
false
;
activeTab
.
value
=
name
;
activeTab
.
value
=
name
;
cacheTab
.
value
=
name
;
},
0
);
},
0
);
}
else
if
(
!
lazyList
.
value
.
includes
(
name
))
{
}
else
if
(
!
lazyList
.
value
.
includes
(
name
))
{
lazyList
.
value
.
push
(
name
);
lazyList
.
value
.
push
(
name
);
activeTab
.
value
=
name
;
activeTab
.
value
=
name
;
cacheTab
.
value
=
name
;
}
}
};
};
...
@@ -93,6 +97,7 @@ export const TabExpView = defineComponent({
...
@@ -93,6 +97,7 @@ export const TabExpView = defineComponent({
});
});
if
(
page
)
{
if
(
page
)
{
activeTab
.
value
=
page
.
name
;
activeTab
.
value
=
page
.
name
;
cacheTab
.
value
=
page
.
name
;
}
}
}
}
}
}
...
@@ -185,6 +190,7 @@ export const TabExpView = defineComponent({
...
@@ -185,6 +190,7 @@ export const TabExpView = defineComponent({
lazyList
,
lazyList
,
deactivateAll
,
deactivateAll
,
activeTab
,
activeTab
,
cacheTab
,
keyHistory
,
keyHistory
,
embedViewModal
,
embedViewModal
,
renderDrTab
,
renderDrTab
,
...
@@ -202,7 +208,7 @@ export const TabExpView = defineComponent({
...
@@ -202,7 +208,7 @@ export const TabExpView = defineComponent({
<
i
-
tabs
<
i
-
tabs
class=
{
this
.
ns
.
e
(
'tab'
)
}
class=
{
this
.
ns
.
e
(
'tab'
)
}
name=
{
this
.
c
.
model
.
codeName
}
name=
{
this
.
c
.
model
.
codeName
}
model
-
value
=
{
this
.
activeTab
}
v
-
model
=
{
this
.
activeTab
}
on
-
on
-
click=
{
this
.
onTabClick
}
on
-
on
-
click=
{
this
.
onTabClick
}
>
>
{
this
.
renderDrTab
()
}
{
this
.
renderDrTab
()
}
...
@@ -212,8 +218,8 @@ export const TabExpView = defineComponent({
...
@@ -212,8 +218,8 @@ export const TabExpView = defineComponent({
<
div
class=
{
this
.
ns
.
e
(
'route-content'
)
}
>
<
div
class=
{
this
.
ns
.
e
(
'route-content'
)
}
>
<
router
-
view
<
router
-
view
// manualKey=
{
this
.
c
.
tabExpPages
[
this
.
activeTab
]
.
key
}
// manualKey=
{
this
.
c
.
tabExpPages
[
this
.
activeTab
]
.
key
}
key=
{
this
.
c
.
tabExpPages
[
this
.
activ
eTab
].
key
}
key=
{
this
.
c
.
tabExpPages
[
this
.
cach
eTab
].
key
}
on
-
neuron
-
init=
{
this
.
c
.
nerve
.
onNeuronInit
(
this
.
activ
eTab
)
}
on
-
neuron
-
init=
{
this
.
c
.
nerve
.
onNeuronInit
(
this
.
cach
eTab
)
}
>
>
{
({
Component
}:
{
Component
:
string
})
=>
{
{
({
Component
}:
{
Component
:
string
})
=>
{
return
(
return
(
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录