|
|
@@ -213,13 +213,14 @@ export default {
|
|
|
|
|
|
},
|
|
|
selected() {
|
|
|
+ let _arr = []
|
|
|
if (!this.selection.length) {
|
|
|
this.$message.error('请至少选择一条数据');
|
|
|
return;
|
|
|
}
|
|
|
if (this.type == 'add') {
|
|
|
- let _arr = []
|
|
|
- _arr = this.selection.map(m => {
|
|
|
+
|
|
|
+ _arr = this.selection.map(m => {
|
|
|
m.categoryId = m.id
|
|
|
delete m.id
|
|
|
return {
|