bug修改
This commit is contained in:
parent
a8b86d5f77
commit
887b3ab82b
|
|
@ -73,7 +73,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
uploadType: 'docx',
|
uploadType: 'docx',
|
||||||
maxFileTips: '1MB',
|
maxFileTips: '100MB',
|
||||||
ocrRuleList: ['finance_report'],
|
ocrRuleList: ['finance_report'],
|
||||||
fileUploadList: [],
|
fileUploadList: [],
|
||||||
ocrResultParams: {
|
ocrResultParams: {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container" :class="{ 'no-pointer-events': showUploadAnimation }">
|
<div class="drawer-content-wrapper" :class="{ 'no-pointer-events': showUploadAnimation }">
|
||||||
<!-- 文件上传动画(详情页仅加载数据,无需保存动画) -->
|
<!-- 文件上传动画(详情页仅加载数据,无需保存动画) -->
|
||||||
<div v-if="showUploadAnimation" class="global-upload-animation">
|
<div v-if="showUploadAnimation" class="global-upload-animation">
|
||||||
<div class="animation-mask"></div>
|
<div class="animation-mask"></div>
|
||||||
|
|
@ -10,12 +10,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="drawer-scrollable-content">
|
||||||
<div class="content-body">
|
<div class="content-body">
|
||||||
<QualificationFormDetail
|
<QualificationFormDetail
|
||||||
ref="qualificationFormDetail"
|
ref="qualificationFormDetail"
|
||||||
:is-detail="true"
|
:is-detail="true"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 操作栏:仅保留“取消”按钮(隐藏保存按钮) -->
|
<!-- 操作栏:仅保留“取消”按钮(隐藏保存按钮) -->
|
||||||
<div class="action-footer">
|
<div class="action-footer">
|
||||||
|
|
@ -105,17 +107,51 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
/* 复用编辑页的样式,仅调整部分细节(如按钮布局) */
|
// 抽屉内容总容器(flex布局)
|
||||||
.app-container {
|
.drawer-content-wrapper {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
height: 100%;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
background: #fff;
|
position: relative; // 用于定位动画元素
|
||||||
min-height: 100%;
|
}
|
||||||
position: relative;
|
|
||||||
|
// 可滚动内容区域(占满剩余空间)
|
||||||
|
.drawer-scrollable-content {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding-right: 12px; // 预留滚动条空间,避免内容被遮挡
|
||||||
|
|
||||||
|
// 滚动条样式优化
|
||||||
|
&::-webkit-scrollbar {
|
||||||
|
width: 6px;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-track {
|
||||||
|
background: #f5f5f5;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
&::-webkit-scrollbar-thumb {
|
||||||
|
background: #c0c4cc;
|
||||||
|
border-radius: 3px;
|
||||||
|
&:hover {
|
||||||
|
background: #909399;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// 操作栏(固定在底部)
|
||||||
|
.action-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
gap: 12px;
|
||||||
|
padding-top: 16px;
|
||||||
|
margin-top: 16px;
|
||||||
|
border-top: 1px solid #f5f5f5; // 添加分割线,区分内容和操作栏
|
||||||
|
flex-shrink: 0; // 防止被压缩
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 加载动画样式(与编辑页一致,无需修改) */
|
|
||||||
.global-upload-animation {
|
.global-upload-animation {
|
||||||
position: fixed;
|
position: absolute; // 相对于drawer-content-wrapper定位
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|
@ -144,7 +180,9 @@ export default {
|
||||||
background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
|
background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
|
||||||
padding: 40px 50px;
|
padding: 40px 50px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
box-shadow: 0 10px 40px rgba(31, 114, 234, 0.15), 0 0 0 1px rgba(31, 114, 234, 0.1);
|
box-shadow:
|
||||||
|
0 10px 40px rgba(31, 114, 234, 0.15),
|
||||||
|
0 0 0 1px rgba(31, 114, 234, 0.1);
|
||||||
min-width: 280px;
|
min-width: 280px;
|
||||||
animation: slideInUp 0.3s ease-out;
|
animation: slideInUp 0.3s ease-out;
|
||||||
|
|
||||||
|
|
@ -192,20 +230,51 @@ export default {
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-body {
|
.content-body {
|
||||||
padding-bottom: 50px;
|
padding-bottom: 20px; // 与底部操作栏保持间距
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 操作栏:仅一个按钮,居中显示(可选调整) */
|
.content-row {
|
||||||
.action-footer {
|
margin: 0;
|
||||||
position: absolute;
|
|
||||||
bottom: 24px;
|
|
||||||
right: 24px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 12px;
|
flex-wrap: wrap;
|
||||||
z-index: 20;
|
gap: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-pane {
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 16px;
|
||||||
|
min-height: 500px;
|
||||||
|
padding: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-btn {
|
||||||
|
background: #409EFF;
|
||||||
|
border-color: #409EFF;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 12px 24px;
|
||||||
|
border-radius: 6px;
|
||||||
|
box-shadow: 0px 4px 12px 0px rgba(64, 158, 255, 0.4);
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
font-size: 14px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #66b1ff;
|
||||||
|
border-color: #66b1ff;
|
||||||
|
box-shadow: 0px 6px 16px 0px rgba(64, 158, 255, 0.5);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-loading {
|
||||||
|
opacity: 0.8;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 关闭按钮样式(复用编辑页的reset-btn样式,无需修改) */
|
|
||||||
.reset-btn {
|
.reset-btn {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 1px solid #dcdfe6;
|
border: 1px solid #dcdfe6;
|
||||||
|
|
@ -227,7 +296,11 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 动画样式(与编辑页一致) */
|
// 禁止点击样式
|
||||||
|
.no-pointer-events {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes spin {
|
@keyframes spin {
|
||||||
0% { transform: rotate(0deg); }
|
0% { transform: rotate(0deg); }
|
||||||
100% { transform: rotate(360deg); }
|
100% { transform: rotate(360deg); }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue