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