装备配置样式修改

This commit is contained in:
cwchen 2025-10-29 17:30:57 +08:00
parent 004018d42e
commit e2c3721773
2 changed files with 115 additions and 13 deletions

View File

@ -7,25 +7,28 @@
ref="searchFormRef" ref="searchFormRef"
:model="searchParams" :model="searchParams"
> >
<el-form-item> </el-form>
<el-button
<el-card class="content-box">
<el-row>
<el-col :span="24" style="text-align: right;">
<el-button
@click="handleAddAddress" @click="handleAddAddress"
type="primary" type="primary"
class="primary-lease" class="primary-lease"
> >
新建收货地址 新建收货地址
</el-button> </el-button>
</el-form-item> </el-col>
</el-form> </el-row>
<div class="table-container">
<!-- 表格 --> <!-- 表格 -->
<el-table <el-table
:data="leaseList" :data="leaseList"
show-overflow-tooltip show-overflow-tooltip
:header-cell-style="{ border
color: '#fff', stripe
background: '#00a288', height="100%"
}"
> >
<el-table-column align="center" label="序号" type="index" width="80" /> <el-table-column align="center" label="序号" type="index" width="80" />
<el-table-column align="center" label="收货地址"> <el-table-column align="center" label="收货地址">
@ -46,15 +49,17 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<div class="pagination-wrapper">
<pagination <pagination
:total="total" :total="total"
@pagination="getLeaseListData" @pagination="getLeaseListData"
:page.sync="searchParams.pageNum" :page.sync="searchParams.pageNum"
:limit.sync="searchParams.pageSize" :limit.sync="searchParams.pageSize"
/> />
</div>
</el-card>
<!-- 新增修改对话框 --> <!-- 新增修改对话框 -->
<el-dialog <el-dialog
width="40%" width="40%"
@ -432,5 +437,100 @@ export default {
} }
} }
} }
::v-deep .el-table {
//
&.el-table--striped .el-table__body {
tr.el-table__row--striped td {
background-color: #F6FBFA !important; //
}
}
.el-table__header {
background: #E9F0EE;
th {
background: #E9F0EE !important;
color: #606266;
font-weight: 600;
height: 50px;
}
}
&.el-table--striped .el-table__body tr.el-table__row:hover>td.el-table__cell {
background-color: #CCF1E9 !important;
}
}
.content-box {
border-radius: 8px;
height: calc(100vh - 120px);
display: flex;
flex-direction: column;
overflow: hidden;
::v-deep .el-card__body {
display: flex !important;
flex-direction: column !important;
height: 100% !important;
padding: 20px;
}
.el-row:first-child {
margin-bottom: 16px;
flex-shrink: 0;
.el-col {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 12px;
}
}
.table-container {
flex: 1;
overflow: hidden;
margin-bottom: 0;
min-height: 0;
display: flex;
flex-direction: column;
}
.pagination-wrapper {
flex-shrink: 0;
padding-top: 6px;
margin-top: auto;
::v-deep .pagination-container {
padding: 0px 20px !important;
margin-bottom: 30px;
}
}
::v-deep .el-table {
//
&.el-table--striped .el-table__body {
tr.el-table__row--striped td {
background-color: #F6FBFA !important; //
}
}
.el-table__header {
background: #E9F0EE;
th {
background: #E9F0EE !important;
color: #606266;
font-weight: 600;
height: 50px;
}
}
&.el-table--striped .el-table__body tr.el-table__row:hover>td.el-table__cell {
background-color: #CCF1E9 !important;
}
}
}
</style> </style>

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="equipment-table"> <div class="equipment-table">
<h2 class="title">机械化机械化施工装备配置率</h2> <h2 class="title">机械化机械化施工装备配置率</h2>
<el-card class="content-box">
<div v-if="!showSecondPage"> <div v-if="!showSecondPage">
<el-table <el-table
:data="tableData" :data="tableData"
@ -41,6 +41,7 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
</el-card>
<!-- <Line <!-- <Line
v-if="showSecondPage" v-if="showSecondPage"
@ -195,6 +196,7 @@ export default {
text-align: center; text-align: center;
} }
::v-deep .el-table { ::v-deep .el-table {
// //
&.el-table--striped .el-table__body { &.el-table--striped .el-table__body {