素材信息
This commit is contained in:
parent
9504ac13a9
commit
f684d1c3e7
@ -82,6 +82,7 @@
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
@click="handleDelete"
|
||||
:disabled="multiple"
|
||||
v-hasPermi="['manage:materials:remove']"
|
||||
>批量删除</el-button
|
||||
>
|
||||
@ -462,7 +463,13 @@ export default {
|
||||
// 复选框点击事件
|
||||
changecheck(e, item) {
|
||||
this.ids = this.materialsList.map(item => item.checked ? item.id : undefined).filter(e => e)
|
||||
// console.log(this.ids)
|
||||
if(this.ids.length>0){
|
||||
this.multiple = false
|
||||
}else{
|
||||
this.multiple = true
|
||||
}
|
||||
|
||||
console.log(this.ids)
|
||||
// console.log(item)
|
||||
// console.log(e)
|
||||
|
||||
@ -609,6 +616,8 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
this.getList();
|
||||
|
||||
console.log(this.ids)
|
||||
if(this.ids.length==0){
|
||||
this.$modal.msgError("请先选择一条数据");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user