Browse Source

任务填报列高度不正确

feture-12345
mk 6 months ago
parent
commit
684665384d
  1. 9
      src/views/modules/base/smartExcel/filling.vue

9
src/views/modules/base/smartExcel/filling.vue

@ -1,5 +1,5 @@
<template>
<div class="g-main" :style="{ height: tableHeight }">
<div class="g-main">
<div v-show="pageType == 'list'">
<div class="m-search">
<el-form :inline="true" :model="formData" ref="ref_searchform" :label-width="'100px'">
@ -51,7 +51,7 @@
</div>
<div class="m-table">
<el-table :data="tableData" border class="m-table-item" style="width: 100%" :height="maxTableHeight">
<el-table :data="tableData" border class="m-table-item" style="width: 100%" :height="tableHeight">
<el-table-column label="" fixed="left" type="selection" align="center" width="50" />
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="agencyName" align="center" label="发布组织" :show-overflow-tooltip="true">
@ -189,8 +189,9 @@ export default {
},
computed: {
tableHeight() {
return (this.clientHeight - 140) + 'px'
const h = this.clientHeight - this.searchH - 200 + this.iframeHeight;
const _h = this.clientHeight - 200 - this.searchH;
return this.$store.state.inIframe ? h : _h;
},
...mapGetters(['clientHeight', 'resolution']),
},

Loading…
Cancel
Save