|
|
@ -69,6 +69,7 @@ |
|
|
|
|
|
|
|
import { requestPost } from '@/js/dai/request' |
|
|
|
import elegantEdit from './elegantEdit.vue' |
|
|
|
import { mapGetters } from 'vuex' |
|
|
|
export default { |
|
|
|
|
|
|
|
data () { |
|
|
@ -79,7 +80,7 @@ export default { |
|
|
|
tableParams: { |
|
|
|
customerId: '' |
|
|
|
}, |
|
|
|
tableHeight: 500, |
|
|
|
// tableHeight: 500, |
|
|
|
search: '', |
|
|
|
dataList: [], |
|
|
|
|
|
|
@ -101,7 +102,14 @@ export default { |
|
|
|
} |
|
|
|
console.log('this.dataList', this.dataList) |
|
|
|
return this.dataList |
|
|
|
} |
|
|
|
}, |
|
|
|
tableHeight () { |
|
|
|
const h = this.clientHeight - 220 + this.iframeHeigh |
|
|
|
const _h = this.clientHeight - 220 |
|
|
|
return this.$store.state.inIframe ? h : _h |
|
|
|
}, |
|
|
|
|
|
|
|
...mapGetters(['clientHeight', 'iframeHeight']) |
|
|
|
}, |
|
|
|
components: { |
|
|
|
elegantEdit |
|
|
@ -112,10 +120,10 @@ export default { |
|
|
|
this.initData(user.customerId, user.customerName) |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.tableHeight = document.documentElement.clientHeight - 220 + 'px' |
|
|
|
console.log('tableHeight', this.tableHeight) |
|
|
|
}) |
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.tableHeight = document.documentElement.clientHeight - 220 + 'px' |
|
|
|
// console.log('tableHeight', this.tableHeight) |
|
|
|
// }) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
cellStyle ({ row, column, rowIndex, columnIndex }) { |
|
|
|