Commit ad57cd5b by 米嘉伟

列表操作清空已选

parent c89d8834
......@@ -918,7 +918,9 @@ export default {
this.disabled = !this.disabled;
this.selectBoo = !this.selectBoo;
this.isShowTip = !this.isShowTip;
this.toggleSelection();
if (this.selectBoo) {
this.toggleSelection();
}
// this.$set(this.multipleSelection, [])
},
cancel () {
......
......@@ -433,7 +433,10 @@ export default {
showType (newNum, oldNum) {
// ...
//console.log(newNum, 123);
this.search();
this.selectBoo = false// 是否批量操作
this.isShowTip = false;
this.multipleSelection = [];
// this.search();
this.clear()
},
},
......@@ -496,6 +499,8 @@ export default {
},
// 复制条码号 获取选中条码值
getBarcode () {
this.selectBoo = true// 是否批量操作
this.isShowTip = true
let self = this;
this.ysxtAsjxgrybh = [];
if (this.multipleSelection.length === 0) {
......@@ -536,7 +541,9 @@ export default {
batch () {
this.selectBoo = !this.selectBoo;
this.isShowTip = !this.isShowTip;
this.toggleSelection();
if (!this.selectBoo) {
this.toggleSelection();
}
},
cancel () {
alert(888);
......@@ -614,6 +621,8 @@ export default {
} else {
this.$refs.multipleTable.clearSelection();
}
this.selectBoo = false;// 是否批量操作
this.isShowTip = false;
//console.log(this.multipleSelection);
},
disabledDate (a) {
......
......@@ -750,6 +750,9 @@ export default {
// ...
//console.log(newNum, 123);
// this.search();
this.selectBoo = false// 是否批量操作
this.isShowTip = false;
this.multipleSelection = [];
this.clear()
},
},
......@@ -1077,7 +1080,9 @@ export default {
batch () {
this.selectBoo = !this.selectBoo;
this.isShowTip = !this.isShowTip;
this.toggleSelection();
if (!this.selectBoo) {
this.toggleSelection();
}
},
cancel () {
alert(888);
......@@ -1160,6 +1165,8 @@ export default {
} else {
this.$refs.multipleTable.clearSelection();
}
this.selectBoo = false;// 是否批量操作
this.isShowTip = false;
//console.log(this.multipleSelection);
},
disabledDate (a) {
......
......@@ -347,7 +347,7 @@
<el-table-column
fixed="right"
label="操作"
width="auto"
:width="width4"
>
<template slot-scope="scope">
<div class="ops">
......@@ -780,6 +780,9 @@ export default {
showType (newNum, oldNum) {
// ...
//console.log(newNum, 123);
this.selectBoo = false// 是否批量操作
this.isShowTip = false;
this.multipleSelection = [];
this.search();
this.clear()
},
......@@ -1092,7 +1095,9 @@ export default {
batch () {
this.selectBoo = !this.selectBoo;
this.isShowTip = !this.isShowTip;
this.toggleSelection();
if (!this.selectBoo) {
this.toggleSelection();
}
},
cancel () {
alert(888);
......@@ -1175,6 +1180,8 @@ export default {
} else {
this.$refs.multipleTable.clearSelection();
}
this.selectBoo = false;// 是否批量操作
this.isShowTip = false
//console.log(this.multipleSelection);
},
disabledDate (a) {
......
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