Commit ad57cd5b by 米嘉伟

列表操作清空已选

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