调整页面和排序

dev
truthhun 11 months ago
parent 3a179457b0
commit 55256b7ecd

@ -137,7 +137,7 @@ func (m *DBModel) GetCategoryList(opt *OptionGetCategoryList) (categoryList []Ca
db = db.Offset((opt.Page - 1) * opt.Size).Limit(opt.Size) db = db.Offset((opt.Page - 1) * opt.Size).Limit(opt.Size)
err = db.Order("parent_id asc, sort desc, id asc").Find(&categoryList).Error err = db.Order("parent_id asc, sort desc, title asc").Find(&categoryList).Error
if err != nil && err != gorm.ErrRecordNotFound { if err != nil && err != gorm.ErrRecordNotFound {
m.logger.Error("GetCategoryList", zap.Error(err)) m.logger.Error("GetCategoryList", zap.Error(err))
} }

@ -521,7 +521,13 @@ export default {
padding-bottom: 0; padding-bottom: 0;
} }
.el-card__body { .el-card__body {
padding: 15px 0; padding: 15px 0 20px;
max-height: 77px;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
text-overflow: ellipsis;
} }
a { a {
display: inline-block; display: inline-block;

Loading…
Cancel
Save