Commit 5580d035 by LJM

js

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