From bd2f187c3f6e24576919e71c794cf8cb9f8c8bac Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 29 十二月 2022 11:21:41 +0800
Subject: [PATCH] 1.初级实现项目换肤功能
---
src/views/xtsz/bmgz.vue | 40 ++++++++++++++++++++++++++++++++++------
1 files changed, 34 insertions(+), 6 deletions(-)
diff --git a/src/views/xtsz/bmgz.vue b/src/views/xtsz/bmgz.vue
index 12dfea6..ea2cb51 100644
--- a/src/views/xtsz/bmgz.vue
+++ b/src/views/xtsz/bmgz.vue
@@ -5,12 +5,12 @@
<el-form
ref="form"
:model="form"
- label-width="80px"
+ label-width="100px"
inline
style="display: flex;justify-content: space-between"
>
- <div class="elForm">
- <el-form-item label="缂栫爜鍚嶇О" style=" display: flex;">
+ <div class="elForm" style="justify-content: flex-start">
+ <el-form-item label="缂栫爜鍚嶇О" label-width="70px" style=" display: flex;">
<el-input v-model="form.rightname" placeholder="璇疯緭鍏�" style="width: 200px" />
</el-form-item>
<el-form-item label="鍥哄畾瀛楃" style=" display: flex;">
@@ -33,6 +33,9 @@
<el-button type="info" icon="el-icon-refresh" @click="reset">閲嶇疆</el-button>
</div>
</el-form>
+ <div
+ class="bodyTopFormExpand"
+ />
</div>
<div style="margin-left: 10px;display: flex">
@@ -42,6 +45,8 @@
<!-- <el-divider />-->
<div class="elTableDiv">
<el-table
+ ref="tableDataRef"
+ class="tableFixed"
:data="tableData"
:height="tableHeight"
border
@@ -63,13 +68,27 @@
fixed
/>
<el-table-column
+ show-tooltip-when-overflow
+ prop="right_code"
+ label="缂栫爜"
+ sortable="custom"
+ />
+ <el-table-column
prop="right_name"
label="缂栫爜鍚嶇О"
+ show-tooltip-when-overflow
sortable="custom"
+ />
+ <el-table-column
+ prop="Type"
+ label="绫诲瀷"
+ sortable="custom"
+ show-tooltip-when-overflow
/>
<el-table-column
prop="prefix"
label="鍥哄畾瀛楃"
+ show-tooltip-when-overflow
sortable="custom"
>
<template slot-scope="{row}">
@@ -80,6 +99,7 @@
<el-table-column
prop="filingdate"
label="鎻愪氦鏃ユ湡"
+ show-tooltip-when-overflow
sortable="custom"
>
<template slot-scope="{row}">
@@ -89,6 +109,7 @@
</el-table-column>
<el-table-column
prop="incbit"
+ show-tooltip-when-overflow
label="鑷浣嶆暟"
sortable="custom"
>
@@ -116,7 +137,6 @@
</div>
<!--鍒嗛〉-->
<pagination
- v-show="total>0"
:total="total"
:page.sync="form.page"
:limit.sync="form.rows"
@@ -382,7 +402,8 @@
getHeight() {
this.$nextTick(() => {
this.mainHeight = window.innerHeight - 85
- this.tableHeight = this.mainHeight - 140
+ this.tableHeight = this.mainHeight - 135
+ this.$refs.tableDataRef.doLayout()
})
}
}
@@ -490,7 +511,14 @@
.userDialogVisible ::v-deep .el-form-item {
margin-bottom: 0;
}
-
+.tableFixed{
+ ::v-deep .el-table__fixed-right{
+ height: 100% !important;
+ }
+ ::v-deep .el-table__fixed{
+ height: 100% !important;
+ }
+}
</style>
<style>
--
Gitblit v1.9.3