| | |
| | | // mainTableHt = document.documentElement.clientHeight - t_head - t_formhead - t_tablePage - t_actionBar - t_footer |
| | | mainTableHt = t_boxOutWrap - t_formhead - t_tablePage - t_actionBar |
| | | mainTableHt = mainTableHt - 120 //减掉其他间隙 padding |
| | | console.log('最大的盒子' + t_boxOutWrap) |
| | | console.log('form高' + t_formhead) |
| | | console.log('表格操作栏高' + t_actionBar) |
| | | console.log('表格高度:' + mainTableHt) |
| | | // console.log('最大的盒子' + t_boxOutWrap) |
| | | // console.log('form高' + t_formhead) |
| | | // console.log('表格操作栏高' + t_actionBar) |
| | | // console.log('表格高度:' + mainTableHt) |
| | | if (mainTableHt <= 0) { |
| | | mainTableHt = 30 |
| | | } |
| | |
| | | data() { |
| | | return { |
| | | loading: false, |
| | | confirmLoading: false, |
| | | containerStatusData: [], |
| | | list: [], |
| | | columns: [ |
| | |
| | | }, |
| | | handleSubmit() { |
| | | var selectedRowsArrMy = this.$refs.showList.selectedRows; |
| | | console.log("3333333") |
| | | console.log(selectedRowsArrMy) |
| | | if(this.list.length==0){ |
| | | this.list = selectedRowsArrMy |
| | | }else{ |
| | | var arr1 = [] |
| | | selectedRowsArrMy.forEach(item => { |
| | | var itemArr = this.list.filter(v=>v.custCode != item.custCode) |
| | | if(itemArr.length>0){ |
| | | arr1 = arr1.concat(itemArr) |
| | | var itemArr = this.list.filter(v=>v.custCode == item.custCode) |
| | | if(itemArr.length==0){ |
| | | this.list.push(item) |
| | | } |
| | | }) |
| | | this.list = [...arr1,...this.list] |
| | | } |
| | | this.visible = false |
| | | }, |