|
@@ -120,7 +120,7 @@
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" @click="AddExport">生成</el-button>
|
|
|
+ <el-button type="primary" @click="AddExport">生成</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div class="descript">
|
|
@@ -218,17 +218,27 @@ export default {
|
|
|
/* 设置初始视窗高度*/
|
|
|
onLoadHeight() {
|
|
|
this.$nextTick(() => {
|
|
|
- this.tableheight = document.body.clientHeight - 350;
|
|
|
+ let actual = this.getFontSize()
|
|
|
+ this.tableheight = document.body.clientHeight - actual;
|
|
|
});
|
|
|
},
|
|
|
/* 设置窗口变化高度*/
|
|
|
changeWindow() {
|
|
|
window.onresize = () => {
|
|
|
return (() => {
|
|
|
- this.tableheight = document.body.clientHeight - 350;
|
|
|
+ let actual = this.getFontSize()
|
|
|
+ this.tableheight = document.body.clientHeight - actual;
|
|
|
})();
|
|
|
};
|
|
|
},
|
|
|
+ //得到根标签的值
|
|
|
+ getFontSize(){
|
|
|
+ let num = getComputedStyle(window.document.documentElement)[
|
|
|
+ "font-size"
|
|
|
+ ]; //得到html中fontSize的值
|
|
|
+ let size = num.substring(0, num.length - 2); //去除px
|
|
|
+ return (350 / 80) * size;
|
|
|
+ },
|
|
|
selectAll() {
|
|
|
if (this.robotValue.length < this.logOptions.length) {
|
|
|
this.robotValue = [];
|
|
@@ -407,7 +417,7 @@ export default {
|
|
|
::v-deep .el-table__fixed {
|
|
|
height: calc(100% - 10px) !important;
|
|
|
}
|
|
|
-::v-deep .el-table th.is-leaf{
|
|
|
+::v-deep .el-table th.is-leaf {
|
|
|
font-size: 15px !important;
|
|
|
height: 36px !important;
|
|
|
line-height: 36px !important;
|
|
@@ -417,5 +427,4 @@ export default {
|
|
|
width: 70px;
|
|
|
height: 40px;
|
|
|
} */
|
|
|
-
|
|
|
</style>
|