提交 7bd6cfe4 authored 作者: lidongxu's avatar lidongxu

style(supply): 样式:修复供应链常用报表超出滚动条效果

上级 c89c2e22
...@@ -133,6 +133,9 @@ aside { ...@@ -133,6 +133,9 @@ aside {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: var(--el-bg-color-overlay); background-color: var(--el-bg-color-overlay);
padding: 20px;
display: flex;
flex-direction: column;
} }
} }
......
...@@ -43,7 +43,8 @@ ...@@ -43,7 +43,8 @@
<!-- 自定义报表分组 --> <!-- 自定义报表分组 -->
<el-dialog title="编辑常用报表" <el-dialog title="编辑常用报表"
v-model="visible" v-model="visible"
draggable overflow> draggable
overflow>
<div class="wrap"> <div class="wrap">
<!-- 列表 --> <!-- 列表 -->
<div class="left"> <div class="left">
...@@ -213,6 +214,15 @@ const addGroups = async () => { ...@@ -213,6 +214,15 @@ const addGroups = async () => {
<style scoped <style scoped
lang="scss"> lang="scss">
.container {
padding-top: 0;
::v-deep(.el-card__body){
max-height: 100%;
overflow-y: auto;
}
.group_item { .group_item {
.group_name { .group_name {
display: flex; display: flex;
...@@ -229,24 +239,30 @@ const addGroups = async () => { ...@@ -229,24 +239,30 @@ const addGroups = async () => {
.link_item { .link_item {
padding: 10px; padding: 10px;
display: flex;
align-items: center;
gap: 10px;
}
} }
} }
} }
.link_item { /* card 头部 */
padding: 5px 0; ::v-deep(.el-card__header) {
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
gap: 10px;
}
.group-container { .card-header-right {
padding-right: 20px; .el-button {
margin: 0;
padding: 10px;
} }
.group_card {
margin-top: 20px;
} }
}
/* 自定义报表分组弹窗 */
::v-deep(.el-dialog) {
.wrap { .wrap {
display: flex; display: flex;
...@@ -257,15 +273,19 @@ const addGroups = async () => { ...@@ -257,15 +273,19 @@ const addGroups = async () => {
.left { .left {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-y: scroll; overflow-y: auto;
overflow-x: hidden; padding-top: 20px;
}
.right { .link_item {
width: 100%; display: flex;
height: 100%; align-items: center;
overflow-y: scroll; margin-bottom: 15px;
overflow-x: hidden;
span {
/* 超出宽度不换行,省略号 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
} }
...@@ -273,21 +293,37 @@ const addGroups = async () => { ...@@ -273,21 +293,37 @@ const addGroups = async () => {
.dragging-item-left { .dragging-item-left {
background-color: transparent; background-color: transparent;
} }
.dragging-item {
background-color: #a1ccf2;
} }
/* card 头部 */ /* 编辑区 */
::v-deep(.el-card__header) { .right {
width: 100%;
height: 100%;
overflow-y: auto;
.group-container {
padding-right: 20px;
.group_card {
margin-top: 20px;
.link_item {
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 10px;
span {
/* 超出宽度不换行,省略号 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card-header-right { }
.el-button {
margin: 0; .dragging-item {
padding: 10px; background-color: #a1ccf2;
} }
} }
} }
...@@ -299,5 +335,7 @@ const addGroups = async () => { ...@@ -299,5 +335,7 @@ const addGroups = async () => {
width: 100%; width: 100%;
} }
} }
}
}
}
</style> </style>
\ No newline at end of file
...@@ -76,9 +76,6 @@ const handleSetLineChartData = (type) => { ...@@ -76,9 +76,6 @@ const handleSetLineChartData = (type) => {
>div { >div {
padding: 0; padding: 0;
background-color: transparent; background-color: transparent;
display: flex;
flex-direction: column;
align-items: center;
} }
.chart-wrapper { .chart-wrapper {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论