fix(系统设置): 仓库设置页移除顶部重复按钮,统一使用底部固定操作条
头部只保留标题与当前仓库 ID,刷新/保存统一放在底部固定操作条(右对齐,常驻可见), 避免头尾各一组按钮;同步删除已无用的 .header-actions / .footer-hint 样式。
This commit is contained in:
parent
19e55726d9
commit
6a2e1c055e
@ -8,16 +8,12 @@
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<div class="warehouse-settings-form" v-loading="pageLoading">
|
<div class="warehouse-settings-form" v-loading="pageLoading">
|
||||||
<!-- 顶部固定区:标题 + 操作(不随表单滚动) -->
|
<!-- 顶部固定区:仅标题(操作按钮统一放在底部固定条,避免头尾重复) -->
|
||||||
<div class="settings-header">
|
<div class="settings-header">
|
||||||
<div class="header-text">
|
<div class="header-text">
|
||||||
<span class="title">仓库设置</span>
|
<span class="title">仓库设置</span>
|
||||||
<span v-if="warehouseId != null" class="sub">当前仓库 ID:{{ warehouseId }}</span>
|
<span v-if="warehouseId != null" class="sub">当前仓库 ID:{{ warehouseId }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-actions">
|
|
||||||
<el-button :loading="pageLoading" @click="loadAll">刷新</el-button>
|
|
||||||
<el-button type="primary" :loading="saving" @click="handleSave">保存</el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 中间滚动区:配置项很长时只有这里滚动 -->
|
<!-- 中间滚动区:配置项很长时只有这里滚动 -->
|
||||||
@ -242,13 +238,10 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 底部固定操作条:滚到底部即可直接保存,不必再回到顶部 -->
|
<!-- 底部固定操作条:全页唯一操作入口,设置项再长也无需回到顶部保存 -->
|
||||||
<div class="settings-footer">
|
<div class="settings-footer">
|
||||||
<span class="footer-hint">配置项较多时,可随时用这里的按钮保存(与顶部「保存」等效)</span>
|
<el-button :loading="pageLoading" @click="loadAll">刷新</el-button>
|
||||||
<div class="header-actions">
|
<el-button type="primary" :loading="saving" @click="handleSave">保存</el-button>
|
||||||
<el-button :loading="pageLoading" @click="loadAll">刷新</el-button>
|
|
||||||
<el-button type="primary" :loading="saving" @click="handleSave">保存</el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -707,7 +700,7 @@ loadAll()
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
/* 页面整体:顶部固定 header + 中间独立滚动 + 底部固定操作条(长表单不必回到顶部才能保存) */
|
/* 页面整体:顶部固定标题 + 中间独立滚动 + 底部固定操作条(唯一的刷新/保存入口) */
|
||||||
.warehouse-settings-form {
|
.warehouse-settings-form {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@ -730,24 +723,17 @@ loadAll()
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 底部固定操作条:与顶部按钮等效,到达页面底部即可保存 */
|
/* 底部固定操作条:全页唯一操作入口(设置项再长也无需回到顶部保存) */
|
||||||
.settings-footer {
|
.settings-footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: flex-end;
|
||||||
gap: 12px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
padding: 10px 16px;
|
padding: 10px 16px;
|
||||||
border-top: 1px solid #e8eef7;
|
border-top: 1px solid #e8eef7;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer-hint {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #909399;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-text {
|
.header-text {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -765,11 +751,6 @@ loadAll()
|
|||||||
color: #909399;
|
color: #909399;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-actions {
|
|
||||||
display: flex;
|
|
||||||
gap: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mb-16 {
|
.mb-16 {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user