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