Skip to content
项目
群组
代码片段
帮助
正在加载...
登录/注册
切换导航
广
广东建设用地-前端
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
广东建设用地
广东建设用地-前端
Commits
9b9ad6a5
提交
9b9ad6a5
authored
4月 28, 2024
作者:
张耀丹
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
系统管理=》去掉批量删除
上级
b43364fc
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
3 行增加
和
40 行删除
+3
-40
index.vue
src/views/system/dict/index.vue
+2
-16
index.vue
src/views/system/menu/index.vue
+1
-24
没有找到文件。
src/views/system/dict/index.vue
浏览文件 @
9b9ad6a5
<
template
>
<!--引用表格-->
<BasicTable
@
register=
"registerTable"
:rowSelection=
"rowSelection"
>
<BasicTable
@
register=
"registerTable"
>
<!--插槽:table标题-->
<template
#
tableTitle
>
<a-button
type=
"primary"
preIcon=
"ant-design:plus-outlined"
@
click=
"handleCreate"
v-auth=
"'system:dict:add'"
>
新增
</a-button>
...
...
@@ -8,21 +8,6 @@
<j-upload-button
type=
"primary"
preIcon=
"ant-design:import-outlined"
@
click=
"onImportXls"
v-auth=
"'system:dict:import'"
>
导入
</j-upload-button>
<a-button
type=
"primary"
@
click=
"handlerRefreshCache"
preIcon=
"ant-design:sync-outlined"
v-auth=
"'system:dict:refresh'"
>
刷新缓存
</a-button>
<a-button
type=
"primary"
@
click=
"openRecycleModal(true)"
preIcon=
"ant-design:hdd-outlined"
v-auth=
"'system:dict:recycleBin'"
>
回收站
</a-button>
<a-dropdown
v-if=
"selectedRowKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
v-auth=
"'system:dict:delete'"
>
<Icon
icon=
"ant-design:delete-outlined"
></Icon>
删除
</a-menu-item>
</a-menu>
</
template
>
<a-button
>
批量操作
<Icon
icon=
"ant-design:down-outlined"
></Icon>
</a-button>
</a-dropdown>
</
template
>
<!--操作栏-->
<
template
#
action=
"{ record }"
>
...
...
@@ -70,6 +55,7 @@
title
:
'数据字典'
,
api
:
list
,
columns
:
columns
,
showIndexColumn
:
true
,
formConfig
:
{
schemas
:
searchFormSchema
,
},
...
...
src/views/system/menu/index.vue
浏览文件 @
9b9ad6a5
<
template
>
<div
class=
"p-4"
>
<BasicTable
@
register=
"registerTable"
:rowSelection=
"rowSelection"
>
<BasicTable
@
register=
"registerTable"
>
<template
#
tableTitle
>
<a-button
type=
"primary"
v-auth=
"'system:permission:add'"
preIcon=
"ant-design:plus-outlined"
@
click=
"handleCreate"
>
新增菜单
</a-button>
<a-button
type=
"primary"
preIcon=
"ic:round-expand"
@
click=
"expandAll"
>
展开全部
</a-button>
<a-button
type=
"primary"
preIcon=
"ic:round-compress"
@
click=
"collapseAll"
>
折叠全部
</a-button>
<a-dropdown
v-if=
"checkedKeys.length > 0"
>
<template
#
overlay
>
<a-menu>
<a-menu-item
key=
"1"
@
click=
"batchHandleDelete"
v-auth=
"'system:permission:deleteBatch'"
>
<Icon
icon=
"ant-design:delete-outlined"
/>
删除
</a-menu-item>
</a-menu>
</
template
>
<a-button
>
批量操作
<Icon
icon=
"ant-design:down-outlined"
/>
</a-button>
</a-dropdown>
</
template
>
<
template
#
action=
"{ record }"
>
<TableAction
:actions=
"getTableAction(record)"
/>
...
...
@@ -52,10 +37,8 @@
size
:
'small'
,
pagination
:
false
,
isTreeTable
:
true
,
striped
:
true
,
useSearchForm
:
true
,
showTableSetting
:
true
,
bordered
:
true
,
showIndexColumn
:
false
,
tableSetting
:
{
fullScreen
:
true
},
formConfig
:
{
...
...
@@ -141,12 +124,6 @@
async
function
handleDelete
(
record
)
{
await
deleteMenu
({
id
:
record
.
id
},
reload
);
}
/**
* 批量删除事件
*/
async
function
batchHandleDelete
()
{
await
batchDeleteMenu
({
ids
:
checkedKeys
.
value
},
reload
);
}
/**
* 成功回调
*/
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论