Commit d8d002e4 by maxiaohan

用户组管理

用户管理
查询与认定
删除打开批量选择
parent c5abd7f6
......@@ -74,7 +74,7 @@
<div class="operation">
<div class="btn1" @click="batch">批量操作</div>
<div class="btns">
<div class="btn1" @click="del('1')">删除</div>
<div class="btn1" @click="delMore()">删除</div>
<div class="add" @click="open">
<svg-icon
style="width: .8125rem;height: .8125rem;margin-bottom: -0.0625rem;margin-right: .25rem"
......@@ -834,6 +834,16 @@ export default {
}
});
},
// 批量删除
delMore() {
this.isSelected = true;
if (this.isSelected === true && this.multipleSelection.length > 0) {
var ids = "";
this.multipleSelection.forEach((item, index) => {
ids = ids + item.id;
});
}
},
// 删除
del(id) {
console.info(id);
......
......@@ -57,7 +57,7 @@
<div class="operation">
<div class="btn1" @click="batch">批量操作</div>
<div class="btns">
<div class="btn1" @click="del(7)">删除</div>
<div class="btn1" @click="delMore()">删除</div>
<div class="add" @click="open">
<svg-icon
style="width: .8125rem;height: .8125rem;margin-bottom: -.0625rem;margin-right: .25rem"
......@@ -883,6 +883,15 @@ export default {
})
.catch(failResponse => {});
},
delMore() {
this.isSelected = true;
if (this.isSelected === true && this.multipleSelection.length > 0) {
var ids = "";
this.multipleSelection.forEach((item, index) => {
ids = ids + item.id;
});
}
},
del(id) {
console.info("删除方法", id);
var user = new URLSearchParams();
......
......@@ -663,6 +663,7 @@ export default {
// 多选删除
delMore() {
// 检查table选择的数据 如果没有选择则不可以删除
this.isSelected = !this.isSelected;
if (this.selectionData.length === 0) {
this.$message.error("请选择需要删除的数据!");
return;
......
......@@ -1337,7 +1337,7 @@ div {
font-size: 16px;
font-family: MicrosoftYaHei-Bold, MicrosoftYaHei;
font-weight: bold;
color: #333333;
color: #fa9500;
line-height: 22px;
margin-top: 14px;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment