修改限制详情table的最大高度

This commit is contained in:
wulin 2020-08-25 16:51:51 +08:00
parent 9f0afd0561
commit b89c7f68a2
2 changed files with 9 additions and 4 deletions

View File

@ -13,14 +13,14 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/lz_management': {
target: 'http://192.168.43.94:8080',
target: 'http://localhost:8080',
changeOrigin: true
}
},
// Various Dev Server settings
// host: '192.168.43.94', // can be overwritten by process.env.HOST
host: '192.168.43.94', // can be overwritten by process.env.HOST
host: IP, // can be overwritten by process.env.HOST
port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,

View File

@ -53,6 +53,7 @@
:data="tableData"
:span-method="objectSpanMethod"
:cell-style="cellStyle"
:max-height="clientHeight"
v-loading.body="loading"
element-loading-text="Loading" border fit highlight-current-row>
<el-table-column label="考核维度" prop="checkRange" align="center" width="80"></el-table-column>
@ -63,7 +64,7 @@
</template>
</el-table-column>
<el-table-column label="关键结果" prop="keyResult" width="800" align="left">
<el-table-column label="关键结果" prop="keyResult" width="800" align="left">
<template slot-scope="scope">
<div v-html="scope.row.keyResult" class="rich">
</div>
@ -118,6 +119,9 @@ import ApprovalAddOrUpdate from './approval-add-or-update.vue'
export default {
created () {
console.log(window.innerHeight)
this.clientHeight = window.innerHeight - 273
console.log(this.clientHeight)
},
filters: {
getcheckWeightStr (val) {
@ -159,7 +163,8 @@ export default {
approvalVisible: false,
loading: false,
auth: [],
recordType: 0
recordType: 0,
clientHeight: 0
}
},
components: {