| | |
| | | </transfer-panel> |
| | | </div> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import ElButton from 'element-ui/packages/button'; |
| | | import Emitter from 'element-ui/src/mixins/emitter'; |
| | |
| | | |
| | | targetData() { |
| | | if (this.targetOrder === 'original') { |
| | | console.log('11111') |
| | | return this.data.filter(item => this.value.indexOf(item) > -1 |
| | | ); |
| | | } else { |
| | | console.log('22222') |
| | | return this.value.reduce((arr, cur) => { |
| | | const val = this.dataObj[cur]; |
| | | if (val) { |
| | |
| | | ) { |
| | | // itemsToBeMoved = [itemKey] |
| | | itemsToBeMoved = [item] |
| | | console.log(itemsToBeMoved) |
| | | } |
| | | }); |
| | | // currentValue = itemsToBeMoved |
| | |
| | | } |
| | | }; |
| | | </script> |
| | | |