7999a96c by renchao@pashanhoo.com

style:table组件得修改

1 parent 35140902
......@@ -24,7 +24,7 @@
</lb-column>
</el-table>
<el-table v-else ref="elTable" id="heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }"
<el-table v-else ref="elTable" class="table-fixed heightNumSetting" :row-style="{ height: '50px' }"
:border='border' :row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs"
:max-height="maxHeight" :height="tableHeight" v-on="$listeners" :data="data" style="width: 100%"
:span-method="this.merge ? this.mergeMethod : this.spanMethod">
......@@ -47,6 +47,7 @@
</template>
<script>
import { log } from 'bpmn-js-token-simulation'
import LbColumn from './lb-column'
export default {
props: {
......@@ -185,9 +186,11 @@
_this.tableHeight = window.innerHeight - _this.heightNum
}
} else {
// this.tableHeight = this.heightNum
this.$nextTick(() => {
this.minHeight && (document.getElementById('heightNumSetting').style.minHeight = this.minHeight + 'px')
let arr = document.getElementsByClassName('heightNumSetting');
[...arr].forEach(item => {
this.minHeight && (item.style.minHeight = this.minHeight + 'px')
})
})
}
},
......
......@@ -5,7 +5,7 @@
-->
<template>
<div>
<lb-table :column="column" :pagination="false" :key="key" :heightNumSetting="true" :minHeight="150"
<lb-table :column="column" :pagination="false" :key="key" :heightNumSetting="true"
:data="tableDataList">
</lb-table>
<addQlr v-model="dialog" :details="details" :showButton="!isDisabled" @updateDetail="handleupdateDetail" />
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-31 09:15:01
* @LastEditTime: 2023-08-02 09:03:45
-->
<template>
<!-- 抵押权利信息查询 -->
......@@ -39,7 +39,7 @@
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="handleSearch" :loading="loading">查询</el-button>
<el-button type="primary" @click="resetForm(true)">重置</el-button>
<!-- <el-button type="primary" @click="resetForm(true)">重置</el-button> -->
</el-form-item>
</el-col>
</el-row>
......