mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +08:00
样式调整
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
allowClear
|
allowClear
|
||||||
showSearch
|
showSearch
|
||||||
@pressEnter="searchSubmit"
|
@pressEnter="searchSubmit"
|
||||||
|
class="filter-input"
|
||||||
>
|
>
|
||||||
</a-input>
|
</a-input>
|
||||||
</div>
|
</div>
|
||||||
@@ -19,14 +20,16 @@
|
|||||||
placeholder="请选择热点标签状态"
|
placeholder="请选择热点标签状态"
|
||||||
:options="hotOptions"
|
:options="hotOptions"
|
||||||
allowClear
|
allowClear
|
||||||
|
class="filter-select"
|
||||||
></a-select>
|
></a-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="select">
|
<div class="select">
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="searchParam.isPublic"
|
v-model:value="searchParam.isPublic"
|
||||||
placeholder="请选择前台公共显示状态"
|
placeholder="请选择前台公共显示状态"
|
||||||
:options="hotOptions"
|
:options="publicOptions"
|
||||||
allowClear
|
allowClear
|
||||||
|
class="filter-select"
|
||||||
></a-select>
|
></a-select>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
@@ -114,9 +117,9 @@
|
|||||||
|
|
||||||
<div class="tableBox">
|
<div class="tableBox">
|
||||||
<div class="pa">
|
<div class="pa">
|
||||||
<!-- <div class="pagination-info" style="margin-bottom: 10px; text-align: center; color: #666;">
|
<!-- <div class="pagination-info" style="margin-bottom: 10px; text-align: center; color: #666;">
|
||||||
共 {{ tableDataTotal }} 条记录
|
共 {{ tableDataTotal }} 条记录
|
||||||
</div>-->
|
</div>-->
|
||||||
<a-pagination
|
<a-pagination
|
||||||
v-if="tableDataTotal > 0"
|
v-if="tableDataTotal > 0"
|
||||||
:showSizeChanger="false"
|
:showSizeChanger="false"
|
||||||
@@ -155,11 +158,11 @@
|
|||||||
>
|
>
|
||||||
<template #bodyCell="{ record, column }">
|
<template #bodyCell="{ record, column }">
|
||||||
<!-- 关联课程ID -->
|
<!-- 关联课程ID -->
|
||||||
<!-- <template v-if="column.key === 'courseId'">
|
<!-- <template v-if="column.key === 'courseId'">
|
||||||
<div class="course-id-cell" :title="record.courseId">
|
<div class="course-id-cell" :title="record.courseId">
|
||||||
{{ record.courseId }}
|
{{ record.courseId }}
|
||||||
</div>
|
</div>
|
||||||
</template>-->
|
</template>-->
|
||||||
|
|
||||||
<!-- 关联课程名称 -->
|
<!-- 关联课程名称 -->
|
||||||
<template v-if="column.key === 'courseName'">
|
<template v-if="column.key === 'courseName'">
|
||||||
@@ -207,9 +210,9 @@
|
|||||||
</a-table>
|
</a-table>
|
||||||
|
|
||||||
<div class="course-pagination">
|
<div class="course-pagination">
|
||||||
<!-- <div class="pagination-info" style="margin-bottom: 10px; text-align: center; color: #666;">
|
<!-- <div class="pagination-info" style="margin-bottom: 10px; text-align: center; color: #666;">
|
||||||
共 {{ courseTableTotal }} 条记录
|
共 {{ courseTableTotal }} 条记录
|
||||||
</div>-->
|
</div>-->
|
||||||
<a-pagination
|
<a-pagination
|
||||||
v-if="courseTableTotal > 0"
|
v-if="courseTableTotal > 0"
|
||||||
:showSizeChanger="false"
|
:showSizeChanger="false"
|
||||||
@@ -271,6 +274,11 @@ export default {
|
|||||||
hotOptions: [
|
hotOptions: [
|
||||||
{ value: "true", label: "开启" },
|
{ value: "true", label: "开启" },
|
||||||
{ value: "false", label: "关闭" }
|
{ value: "false", label: "关闭" }
|
||||||
|
],
|
||||||
|
|
||||||
|
publicOptions: [
|
||||||
|
{ value: "true", label: "开启" },
|
||||||
|
{ value: "false", label: "关闭" }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -677,17 +685,53 @@ export default {
|
|||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
|
align-items: flex-start; // 确保顶部对齐
|
||||||
|
|
||||||
.select {
|
.select {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 40px; // 固定高度确保一致
|
||||||
|
|
||||||
:deep(.ant-input),
|
:deep(.filter-input),
|
||||||
:deep(.ant-select) {
|
:deep(.filter-select) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px !important; // 强制设置高度
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
|
|
||||||
|
// 输入框样式
|
||||||
|
&.ant-input {
|
||||||
|
height: 40px !important;
|
||||||
|
line-height: 40px;
|
||||||
|
padding: 0 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 选择器样式
|
||||||
|
&.ant-select {
|
||||||
|
height: 40px !important;
|
||||||
|
|
||||||
|
.ant-select-selector {
|
||||||
|
height: 40px !important;
|
||||||
|
border-radius: 8px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.ant-select-selection-item {
|
||||||
|
line-height: 38px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-select-selection-placeholder {
|
||||||
|
line-height: 38px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ant-select-arrow {
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -696,6 +740,8 @@ export default {
|
|||||||
gap: 10px;
|
gap: 10px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
|
align-items: center;
|
||||||
|
height: 40px; // 按钮组也保持相同高度
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn, .btnn {
|
.btn, .btnn {
|
||||||
@@ -922,6 +968,26 @@ export default {
|
|||||||
.select {
|
.select {
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
|
height: 38px; // 调整高度
|
||||||
|
|
||||||
|
:deep(.filter-input),
|
||||||
|
:deep(.filter-select) {
|
||||||
|
height: 38px !important;
|
||||||
|
|
||||||
|
&.ant-input {
|
||||||
|
height: 38px !important;
|
||||||
|
line-height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.ant-select .ant-select-selector {
|
||||||
|
height: 38px !important;
|
||||||
|
|
||||||
|
.ant-select-selection-item,
|
||||||
|
.ant-select-selection-placeholder {
|
||||||
|
line-height: 36px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -957,10 +1023,43 @@ export default {
|
|||||||
.select {
|
.select {
|
||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
max-width: 220px;
|
max-width: 220px;
|
||||||
|
height: 36px; // 调整高度
|
||||||
|
|
||||||
|
:deep(.filter-input),
|
||||||
|
:deep(.filter-select) {
|
||||||
|
height: 36px !important;
|
||||||
|
|
||||||
|
&.ant-input {
|
||||||
|
height: 36px !important;
|
||||||
|
line-height: 36px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.ant-select {
|
||||||
|
height: 36px !important;
|
||||||
|
|
||||||
|
.ant-select-selector {
|
||||||
|
height: 36px !important;
|
||||||
|
font-size: 13px;
|
||||||
|
|
||||||
|
.ant-select-selection-item,
|
||||||
|
.ant-select-selection-placeholder {
|
||||||
|
line-height: 34px !important;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-group {
|
.button-group {
|
||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
|
height: 36px; // 调整按钮组高度
|
||||||
|
|
||||||
|
.btn, .btnn {
|
||||||
|
height: 36px;
|
||||||
|
padding: 0 16px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user