Commit 5580d035 by LJM

js

parent f0b8cebe
Showing with 5 additions and 3 deletions
...@@ -80,8 +80,8 @@ export default { ...@@ -80,8 +80,8 @@ export default {
listPop: [], listPop: [],
selectedIndexs: [], selectedIndexs: [],
index: 0, index: 0,
array: ['扫描digikey', '扫描Mouser', '扫描Arrow', '扫描Rochester', '扫描TME', '扫描Chip1stop'], array: ['扫描digikey', '扫描Rochester', '扫描TME', '扫描Chip1stop'],
arrar_val: ['digikey', 'Mouser', 'Arrow', 'Rochester', 'TME', 'Chip1stop'] arrar_val: ['digikey', 'Rochester', 'TME', 'Chip1stop']
}; };
}, },
methods: { methods: {
...@@ -121,7 +121,7 @@ export default { ...@@ -121,7 +121,7 @@ export default {
}); });
}, },
getBoxSnAndNum() { getBoxSnAndNum() {
this.request(API.getBoxSnAndNum, 'POST', { box_sn: this.box_sn }, false).then(res => { this.request(API.getBoxSnAndNum, 'POST', { box_sn: this.box_sn }, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
this.list = res.data; this.list = res.data;
} else { } else {
...@@ -161,6 +161,7 @@ export default { ...@@ -161,6 +161,7 @@ export default {
}, },
selectionChange(e) { selectionChange(e) {
this.selectedIndexs = e.detail.index; this.selectedIndexs = e.detail.index;
this.selectedIndexs.sort();
}, },
scanChange(event) { scanChange(event) {
clearTimeout(this.timer); clearTimeout(this.timer);
...@@ -193,6 +194,7 @@ export default { ...@@ -193,6 +194,7 @@ export default {
console.log(this.selectedIndexs[i]); console.log(this.selectedIndexs[i]);
this.list.splice(this.selectedIndexs[i], 1); this.list.splice(this.selectedIndexs[i], 1);
} }
this.$forceUpdate(); this.$forceUpdate();
this.$refs.table.clearSelection(); this.$refs.table.clearSelection();
}, },
......
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 sign in to comment