Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
shop-vite-main
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
front-base-project
shop-vite-main
Commits
552b13b7
提交
552b13b7
authored
12月 16, 2024
作者:
郁骅焌
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
展开
上级
9a269f8d
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
14 行增加
和
0 行删除
+14
-0
index.vue
src/views/system/menuManagement/index.vue
+14
-0
没有找到文件。
src/views/system/menuManagement/index.vue
浏览文件 @
552b13b7
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
</vab-query-form-top-panel>
</vab-query-form-top-panel>
<vab-query-form-left-panel>
<vab-query-form-left-panel>
<el-button
icon=
"Plus"
type=
"primary"
@
click=
"handleAdd"
>
添加
</el-button>
<el-button
icon=
"Plus"
type=
"primary"
@
click=
"handleAdd"
>
添加
</el-button>
<el-button
icon=
"Sort"
plain
type=
"info"
@
click=
"toggleExpandAll"
>
展开/折叠
</el-button>
</vab-query-form-left-panel>
</vab-query-form-left-panel>
<vab-query-form-right-panel>
<vab-query-form-right-panel>
<div
class=
"custom-table-right-tools"
>
<div
class=
"custom-table-right-tools"
>
...
@@ -37,10 +38,12 @@
...
@@ -37,10 +38,12 @@
</vab-query-form-right-panel>
</vab-query-form-right-panel>
</vab-query-form>
</vab-query-form>
<el-table
<el-table
v-if=
"refreshTable"
ref=
"tableRef"
ref=
"tableRef"
v-loading=
"listLoading"
v-loading=
"listLoading"
border
border
:data=
"list"
:data=
"list"
:default-expand-all=
"isExpandAll"
row-key=
"menuId"
row-key=
"menuId"
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }"
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }"
>
>
...
@@ -85,6 +88,8 @@ const { sys_normal_disable } = proxy.useDict('sys_normal_disable')
...
@@ -85,6 +88,8 @@ const { sys_normal_disable } = proxy.useDict('sys_normal_disable')
const
{
exit
,
enter
,
isFullscreen
:
_isFullscreen
}
=
useFullscreen
()
const
{
exit
,
enter
,
isFullscreen
:
_isFullscreen
}
=
useFullscreen
()
const
isFullscreen
=
ref
<
boolean
>
(
false
)
const
isFullscreen
=
ref
<
boolean
>
(
false
)
const
isExpandAll
=
ref
(
false
)
const
refreshTable
=
ref
(
true
)
const
tableRef
=
ref
<
TableInstance
>
()
const
tableRef
=
ref
<
TableInstance
>
()
const
fold
=
ref
<
boolean
>
(
true
)
const
fold
=
ref
<
boolean
>
(
true
)
const
editRef
=
ref
<
any
>
(
null
)
const
editRef
=
ref
<
any
>
(
null
)
...
@@ -124,6 +129,15 @@ const handleFold = () => {
...
@@ -124,6 +129,15 @@ const handleFold = () => {
fold
.
value
=
!
fold
.
value
fold
.
value
=
!
fold
.
value
}
}
/** 展开/折叠操作 */
function
toggleExpandAll
()
{
refreshTable
.
value
=
false
isExpandAll
.
value
=
!
isExpandAll
.
value
nextTick
(()
=>
{
refreshTable
.
value
=
true
})
}
/** 查询菜单列表 */
/** 查询菜单列表 */
const
fetchData
=
async
()
=>
{
const
fetchData
=
async
()
=>
{
listLoading
.
value
=
true
listLoading
.
value
=
true
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论