Merge remote-tracking branch 'websoft/master'

This commit is contained in:
2026-07-31 01:31:44 +08:00
4 changed files with 40 additions and 16 deletions

View File

@@ -24,7 +24,7 @@ const validateRemark = (rule, value, callback) => {
export const getCargoTypeOption = ctx => ({
height: 'auto',
calcHeight: 32,
calcHeight: 22,
dialogWidth: 760,
labelPosition: 'right',
labelWidth: 'auto',
@@ -35,8 +35,8 @@ export const getCargoTypeOption = ctx => ({
updateBtnText: '提交',
searchShow: true,
searchIcon: false,
searchLabelWidth: 80,
searchMenuSpan: 24,
searchLabelWidth: 50,
searchMenuSpan: 10,
searchIndex: 8,
searchMenuPosition: 'right',
border: true,
@@ -57,7 +57,7 @@ export const getCargoTypeOption = ctx => ({
dataType: 'number',
dicData: typeLevelDic,
search: true,
searchSpan: 12,
searchSpan: 6,
value: 2,
span: 24,
minWidth: 120,
@@ -81,6 +81,7 @@ export const getCargoTypeOption = ctx => ({
addDisplay: false,
editDisplay: false,
display: false,
showOverflowTooltip: true,
minWidth: 160,
},
{
@@ -101,6 +102,7 @@ export const getCargoTypeOption = ctx => ({
minWidth: 150,
maxlength: 50,
showWordLimit: true,
showOverflowTooltip: true,
rules: [{ validator: validateCargoName, trigger: 'blur' }],
},
{
@@ -108,7 +110,7 @@ export const getCargoTypeOption = ctx => ({
prop: 'cargoCode',
minWidth: 140,
search: true,
searchSpan: 12,
searchSpan: 6,
maxlength: 4,
editDisabled: true,
rules: [
@@ -155,14 +157,15 @@ export const getCargoTypeOption = ctx => ({
maxlength: 200,
showWordLimit: true,
overHidden: true,
showOverflowTooltip: true,
rules: [{ validator: validateRemark, trigger: 'blur' }],
},
{
label: '更新时间',
prop: 'updateTime',
type: 'datetime',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
format: 'YYYY-MM-DD',
valueFormat: 'YYYY-MM-DD',
addDisplay: false,
editDisplay: false,
display: false,
@@ -172,8 +175,8 @@ export const getCargoTypeOption = ctx => ({
label: '创建时间',
prop: 'createTime',
type: 'datetime',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
format: 'YYYY-MM-DD',
valueFormat: 'YYYY-MM-DD',
addDisplay: false,
editDisplay: false,
display: false,

View File

@@ -263,6 +263,7 @@
justify-content: flex-end;
width: 100%;
box-sizing: border-box;
padding: 10px 0 !important;
}
.avue-crud__pagination .el-pagination,
@@ -277,7 +278,6 @@
justify-content: flex-end;
width: 100%;
gap: 6px;
padding: 18px 0 0;
color: #303133;
font-size: 14px;
font-weight: 400;

View File

@@ -600,10 +600,6 @@ export default {
background: transparent;
}
:deep(.el-card) {
box-shadow: none;
}
// <20><>除 basic-container 卡片内层 el-card 的 padding规范 4.4
:deep(.basic-container__card) > .el-card__body {
padding: 0;
@@ -611,15 +607,37 @@ export default {
// 搜索栏 label 收窄(覆盖 Avue 内置 min-width:160px
:deep(.avue-crud__search) .el-form-item_label {
min-width: 80px !important;
width: 80px !important;
min-width: 50px !important;
width: 50px !important;
}
:deep(.el-table) {
--el-table-border-color: #eff1f7;
--el-table-row-hover-bg-color: #f5f7fa;
--el-table-row-height: 40px;
// 表头加高
.el-table__header-wrapper .el-table__cell {
padding: 10px 0;
}
// 数据行保持紧凑
.el-table__body .el-table__cell {
padding: 6px 0;
}
}
// 底部空白区域自适应:表格 body 不再强制撑满计算高度
:deep(.avue-crud .el-table__body-wrapper) {
max-height: none !important;
height: auto !important;
}
// 同步让外层表格容器也自适应
//:deep(.avue-crud .el-table) {
// height: auto !important;
//}
:deep(.el-table__body tr:nth-child(even) > td.el-table__cell) {
background: #fafafa;
}