style: 修复表格标题居中的问题

main
sankeyangshu 2024-12-13 19:58:19 +08:00
parent 9e5747a96a
commit 4fb4db7de3
12 changed files with 102 additions and 104 deletions

View File

@ -9,4 +9,4 @@ NODE_ENV = 'development'
# 如果没有跨域问题,直接在这里配置即可 # 如果没有跨域问题,直接在这里配置即可
# VITE_APP_BASE_API = 'http://192.168.1.116:8080' # VITE_APP_BASE_API = 'http://192.168.1.116:8080'
# VITE_APP_BASE_API = 'http://121.41.36.72:8080' # VITE_APP_BASE_API = 'http://121.41.36.72:8080'
VITE_APP_BASE_API = 'http://www.cvlip.com:8080' VITE_APP_BASE_API = 'http://www.cvlip.com:9003'

View File

@ -2,7 +2,7 @@
NODE_ENV = "production" NODE_ENV = "production"
# 线上环境接口地址 # 线上环境接口地址
VITE_APP_BASE_API = '/api' VITE_APP_BASE_API = 'http://www.cvlip.com:8080'
# 是否启用 gzip 或 brotli 压缩打包,如果需要多个压缩规则,可以使用 “,” 分隔 # 是否启用 gzip 或 brotli 压缩打包,如果需要多个压缩规则,可以使用 “,” 分隔
# Optional: gzip | brotli | none # Optional: gzip | brotli | none

View File

@ -67,8 +67,9 @@ const onClickChangeApiType = async (item: apiInterface) => {
if (item === currentApiType.value) return; if (item === currentApiType.value) return;
currentApiType.value = item; currentApiType.value = item;
loadMoreState.value = 'load';
currentPage.value = 1; currentPage.value = 1;
await getTableDataList(); tableData.value = [];
}; };
// //

View File

@ -8,7 +8,7 @@
</div> </div>
</div> </div>
<div class="header-title">船货信息表</div> <div class="header-title">船货信息表</div>
<div></div> <div style="height: 50px"></div>
</div> </div>
<div class="footer"> <div class="footer">
@ -60,7 +60,7 @@
</div> </div>
<!-- 分页 --> <!-- 分页 -->
<div class="footer-pagination"> <div class="footer-pagination">
<div class="notice">仅列出最近十日收到的订阅船期信息</div> <div class="notice-wrap"><div class="notice">仅列出最近十日收到的订阅船期信息</div></div>
</div> </div>
</div> </div>
@ -187,6 +187,7 @@ const onClickCellOpenDetail = (row: BoatInfoType) => {
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
.header { .header {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
@ -217,6 +218,8 @@ const onClickCellOpenDetail = (row: BoatInfoType) => {
} }
} }
.header-title { .header-title {
position: absolute;
left: 50%;
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 0 16px; padding: 0 16px;
@ -224,6 +227,7 @@ const onClickCellOpenDetail = (row: BoatInfoType) => {
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
color: #fff; color: #fff;
transform: translateX(-50%);
} }
} }
.footer { .footer {
@ -297,25 +301,27 @@ const onClickCellOpenDetail = (row: BoatInfoType) => {
} }
.footer-pagination { .footer-pagination {
box-sizing: border-box; box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
width: 100%; width: 100%;
margin-top: 40px; padding: 16px;
.notice { .notice-wrap {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 700px; .notice {
height: 40px; display: flex;
margin-top: 30px; align-items: center;
overflow: hidden; justify-content: center;
font-size: 16px; width: 700px;
color: #d7d7d7; height: 40px;
text-overflow: ellipsis; margin-top: 30px;
white-space: nowrap; overflow: hidden;
background-color: rgb(127 127 127 / 100%); font-size: 16px;
border-radius: 20px; color: #d7d7d7;
text-overflow: ellipsis;
white-space: nowrap;
background-color: rgb(127 127 127 / 100%);
border-radius: 20px;
}
} }
} }
} }

View File

@ -31,14 +31,11 @@
<div class="table-content"> <div class="table-content">
<div class="table-header"> <div class="table-header">
<div style="width: 36px"></div> <div style="width: 36px"></div>
<div class="table-header-title"> <div class="table-header-title">舱单信息</div>
舱单信息 <div class="left-export">
<div class="left-export"> <svg-icon icon="Export" className="icon"></svg-icon>
<svg-icon icon="Export" className="icon"></svg-icon> <div class="export-text" @click="onClickExportManifest"></div>
<div class="export-text" @click="onClickExportManifest"></div>
</div>
</div> </div>
<div style="width: 480px"></div>
</div> </div>
<el-table <el-table
:data="manifestTable" :data="manifestTable"
@ -87,14 +84,11 @@
<div class="table-content"> <div class="table-content">
<div class="table-header"> <div class="table-header">
<div style="width: 36px"></div> <div style="width: 36px"></div>
<div class="table-header-title" style="margin-left: 183px"> <div class="table-header-title">舱单明细</div>
舱单明细 <div class="left-export">
<div class="left-export"> <svg-icon icon="Export" className="icon"></svg-icon>
<svg-icon icon="Export" className="icon"></svg-icon> <div class="export-text" @click="onClickExportManifestDetail"></div>
<div class="export-text" @click="onClickExportManifestDetail"></div>
</div>
</div> </div>
<div style="width: 480px"></div>
</div> </div>
<el-table <el-table
v-loading="tableLoading" v-loading="tableLoading"
@ -319,6 +313,7 @@ const onClickExportManifestDetail = () => {
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
.header { .header {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
@ -335,8 +330,11 @@ const onClickExportManifestDetail = () => {
color: #b4b4b4; color: #b4b4b4;
} }
.title { .title {
position: absolute;
left: 50%;
font-size: 32px; font-size: 32px;
font-weight: 700; font-weight: 700;
transform: translateX(-50%);
} }
.api-btn { .api-btn {
display: flex; display: flex;
@ -365,57 +363,50 @@ const onClickExportManifestDetail = () => {
.table-content { .table-content {
box-sizing: border-box; box-sizing: border-box;
flex: 1; flex: 1;
padding: 16px; padding: 16px 0;
.table-header { .table-header {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
height: 50px;
padding: 16px 16px 0; padding: 16px 16px 0;
margin-bottom: 15px; margin-bottom: 15px;
color: #fff; color: #fff;
.table-header-title { .table-header-title {
position: absolute;
left: 50%;
display: flex; display: flex;
align-items: center; align-items: center;
margin-left: 157px;
font-size: 32px; font-size: 32px;
font-weight: 700; font-weight: 700;
.left-export { transform: translateX(-50%);
box-sizing: border-box;
display: flex;
align-items: center;
width: fit-content;
height: 50px;
padding: 0 10px;
margin-left: 10px;
font-size: 18px;
color: #00bfbf;
border-bottom: #00bfbf 1px solid;
.icon {
width: 40px;
height: 40px;
font-weight: 400;
line-height: normal;
color: #00bfbf;
}
.export-text {
margin-left: 15px;
}
.export-text:hover {
color: rgb(2 167 240);
cursor: pointer;
}
}
} }
.sort { .left-export {
box-sizing: border-box;
display: flex; display: flex;
align-items: flex-end; align-items: center;
height: 100%; width: fit-content;
font-family: 'Arial Normal', Arial; height: 50px;
font-size: 15px; padding: 0 10px;
font-style: normal; font-size: 18px;
font-weight: 400; color: #00bfbf;
color: #aaa; border-bottom: #00bfbf 1px solid;
.icon {
width: 40px;
height: 40px;
font-weight: 400;
line-height: normal;
color: #00bfbf;
}
.export-text {
margin-left: 15px;
}
.export-text:hover {
color: rgb(2 167 240);
cursor: pointer;
}
} }
} }
.goods-name { .goods-name {

View File

@ -14,9 +14,7 @@
<div class="table-content"> <div class="table-content">
<div class="table-header"> <div class="table-header">
<div style="width: 36px"></div>
<div class="table-header-title">历史舱单信息</div> <div class="table-header-title">历史舱单信息</div>
<div style="width: 320px"></div>
</div> </div>
<el-table <el-table
:data="manifestTable" :data="manifestTable"
@ -64,9 +62,7 @@
<div class="table-content"> <div class="table-content">
<div class="table-header"> <div class="table-header">
<div style="width: 36px"></div>
<div class="table-header-title">历史舱单明细</div> <div class="table-header-title">历史舱单明细</div>
<div style="width: 320px"></div>
</div> </div>
<el-table <el-table
v-loading="tableLoading" v-loading="tableLoading"
@ -197,24 +193,14 @@ const onClickOpenManifestDetail = async (row: ManifestType) => {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: center;
padding: 16px 16px 0; padding: 16px 16px 0;
margin-bottom: 15px; margin-bottom: 15px;
color: #fff; color: #fff;
.table-header-title { .table-header-title {
font-size: 28px; font-size: 32px;
font-weight: 700; font-weight: 700;
} }
.sort {
display: flex;
align-items: flex-end;
height: 100%;
font-family: 'Arial Normal', Arial;
font-size: 15px;
font-style: normal;
font-weight: 400;
color: #aaa;
}
} }
} }
.goods-name { .goods-name {

View File

@ -75,6 +75,7 @@ const onClickOpenDetail = (row: BoatInfoType) => {
width: 100%; width: 100%;
height: 100%; height: 100%;
.header { .header {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
@ -91,8 +92,11 @@ const onClickOpenDetail = (row: BoatInfoType) => {
color: #b4b4b4; color: #b4b4b4;
} }
.title { .title {
font-size: 28px; position: absolute;
left: 50%;
font-size: 32px;
font-weight: 700; font-weight: 700;
transform: translateX(-50%);
} }
.api-btn { .api-btn {
display: flex; display: flex;

View File

@ -625,15 +625,16 @@ onMounted(async () => {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 900px; width: 700px;
height: 40px; height: 40px;
margin-top: 30px;
overflow: hidden; overflow: hidden;
font-size: 16px; font-size: 16px;
color: #aaa; color: #d7d7d7;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
background-color: rgb(68 68 68 / 100%); background-color: rgb(127 127 127 / 100%);
border-radius: 36px; border-radius: 20px;
} }
} }
.home-vin { .home-vin {

View File

@ -91,15 +91,15 @@
<el-input <el-input
v-model="boatForm.carNumPlan" v-model="boatForm.carNumPlan"
placeholder="商品车数量" placeholder="商品车数量"
style="width: 100px" style="width: 75px"
/> />
</el-form-item> </el-form-item>
<div style="margin: 0 10px; text-align: center">/</div> <div style="margin: 0 8px; text-align: center">/</div>
<el-form-item prop="spareNumPlan" style="width: 100%"> <el-form-item prop="spareNumPlan" style="width: 100%">
<el-input <el-input
v-model="boatForm.spareNumPlan" v-model="boatForm.spareNumPlan"
placeholder="件杂货数量" placeholder="件杂货数量"
style="width: 100px" style="width: 75px"
/> />
</el-form-item> </el-form-item>
</div> </div>
@ -112,15 +112,15 @@
<el-input <el-input
v-model="boatForm.carNumActual" v-model="boatForm.carNumActual"
placeholder="商品车数量" placeholder="商品车数量"
style="width: 100px" style="width: 75px"
/> />
</el-form-item> </el-form-item>
<div style="margin: 0 10px; text-align: center">/</div> <div style="margin: 0 8px; text-align: center">/</div>
<el-form-item prop="spareNumActual"> <el-form-item prop="spareNumActual">
<el-input <el-input
v-model="boatForm.spareNumActual" v-model="boatForm.spareNumActual"
placeholder="件杂货数量" placeholder="件杂货数量"
style="width: 100px" style="width: 75px"
/> />
</el-form-item> </el-form-item>
</el-form-item> </el-form-item>

View File

@ -363,6 +363,7 @@ const endManifestDetail = () => {
.table-content { .table-content {
width: 100%; width: 100%;
.table-header { .table-header {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
@ -371,8 +372,11 @@ const endManifestDetail = () => {
margin-bottom: 15px; margin-bottom: 15px;
color: #fff; color: #fff;
.table-header-title { .table-header-title {
font-size: 28px; position: absolute;
left: 50%;
font-size: 32px;
font-weight: 700; font-weight: 700;
transform: translateX(-50%);
} }
.table-header-btn { .table-header-btn {
width: 203px; width: 203px;

View File

@ -3,7 +3,7 @@
<div class="header"> <div class="header">
<svg-icon icon="return" className="side-icon" @click="onClickReturn"></svg-icon> <svg-icon icon="return" className="side-icon" @click="onClickReturn"></svg-icon>
<div class="title">{{ isViewHistory ? '船期信息' : '发布船货信息' }}</div> <div class="title">{{ isViewHistory ? '船期信息' : '发布船货信息' }}</div>
<div :class="{ 'header-width': isViewHistory }"></div> <div style="height: 50px"></div>
</div> </div>
<div class="content"> <div class="content">
@ -104,6 +104,7 @@ const onClickOpenDetail = (row: BoatInfoType) => {
width: 100%; width: 100%;
height: 100%; height: 100%;
.header { .header {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
@ -120,11 +121,11 @@ const onClickOpenDetail = (row: BoatInfoType) => {
color: #b4b4b4; color: #b4b4b4;
} }
.title { .title {
font-size: 28px; position: absolute;
left: 50%;
font-size: 32px;
font-weight: 700; font-weight: 700;
} transform: translateX(-50%);
.header-width {
width: 203px;
} }
} }
.content { .content {

View File

@ -80,6 +80,7 @@ onMounted(async () => {
width: 100%; width: 100%;
height: 100%; height: 100%;
.header { .header {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
flex-shrink: 0; flex-shrink: 0;
@ -96,8 +97,11 @@ onMounted(async () => {
color: #b4b4b4; color: #b4b4b4;
} }
.title { .title {
font-size: 28px; position: absolute;
left: 50%;
font-size: 32px;
font-weight: 700; font-weight: 700;
transform: translateX(-50%);
} }
.api-btn { .api-btn {
display: flex; display: flex;