|
@@ -14,7 +14,7 @@
|
|
<section>
|
|
<section>
|
|
<article class="table">
|
|
<article class="table">
|
|
<el-table
|
|
<el-table
|
|
- ref="multipleTable"
|
|
|
|
|
|
+ ref="SlaughterBatch"
|
|
:data="tableData"
|
|
:data="tableData"
|
|
tooltip-effect="dark"
|
|
tooltip-effect="dark"
|
|
style="width: 30%"
|
|
style="width: 30%"
|
|
@@ -102,10 +102,10 @@ export default {
|
|
toggleSelection(rows) {
|
|
toggleSelection(rows) {
|
|
if (rows) {
|
|
if (rows) {
|
|
rows.forEach(row => {
|
|
rows.forEach(row => {
|
|
- this.$refs.multipleTableCreateBatch.toggleRowSelection(row);
|
|
|
|
|
|
+ this.$refs['SlaughterBatch'].toggleRowSelection(row);
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- this.$refs.multipleTableCreateBatch.clearSelection();
|
|
|
|
|
|
+ this.$refs['SlaughterBatch'].clearSelection();
|
|
}
|
|
}
|
|
},
|
|
},
|
|
create() {
|
|
create() {
|
|
@@ -117,6 +117,7 @@ export default {
|
|
this.$message.error(res.errMsg);
|
|
this.$message.error(res.errMsg);
|
|
} else {
|
|
} else {
|
|
this.$message.success("成功");
|
|
this.$message.success("成功");
|
|
|
|
+ this.toggleSelection()
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|