Skip to content

Commit fa00320

Browse files
committed
字典支持多选删除
1 parent 5c330a9 commit fa00320

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎src/api/system/dict.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ export function add(data) {
1515
})
1616
}
1717

18-
export function del(id) {
18+
export function del(ids) {
1919
return request({
20-
url: 'api/dict/' + id,
21-
method: 'delete'
20+
url: 'api/dict/',
21+
method: 'delete',
22+
data: ids
2223
})
2324
}
2425

‎src/views/system/dict/index.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</el-dialog>
1818
<!-- 字典列表 -->
1919
<el-row :gutter="10">
20-
<el-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10" style="margin-bottom: 10px">
20+
<el-col :xs="24" :sm="24" :md="10" :lg="11" :xl="11" style="margin-bottom: 10px">
2121
<el-card class="box-card">
2222
<!--工具栏-->
2323
<div class="head-container">
@@ -47,7 +47,7 @@
4747
</el-card>
4848
</el-col>
4949
<!-- 字典详情列表 -->
50-
<el-col :xs="24" :sm="24" :md="14" :lg="14" :xl="14">
50+
<el-col :xs="24" :sm="24" :md="14" :lg="13" :xl="13">
5151
<el-card class="box-card">
5252
<div slot="header" class="clearfix">
5353
<span>字典详情</span>

0 commit comments

Comments
 (0)