提交 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">
...@@ -177,7 +178,7 @@ const groupNameBlur = async (group) => { ...@@ -177,7 +178,7 @@ const groupNameBlur = async (group) => {
groupId: group.groupId, groupId: group.groupId,
groupName: group.groupName, groupName: group.groupName,
categoryName: '供应链报表' categoryName: '供应链报表'
}) })
} }
// 删除分组 // 删除分组
...@@ -213,71 +214,39 @@ const addGroups = async () => { ...@@ -213,71 +214,39 @@ const addGroups = async () => {
<style scoped <style scoped
lang="scss"> lang="scss">
.group_item { .container {
.group_name { padding-top: 0;
display: flex;
align-items: center;
gap: 10px;
font-size: 16px;
font-weight: 800;
}
.link_wrap { ::v-deep(.el-card__body){
display: flex; max-height: 100%;
flex-wrap: wrap; overflow-y: auto;
padding: 0 0 0 20px;
.link_item {
padding: 10px;
}
} }
}
.link_item {
padding: 5px 0;
display: flex;
align-items: center;
gap: 10px;
}
.group-container { .group_item {
padding-right: 20px; .group_name {
} display: flex;
align-items: center;
.group_card { gap: 10px;
margin-top: 20px; font-size: 16px;
} font-weight: 800;
}
.wrap {
display: flex;
gap: 20px;
width: 100%;
height: 100%;
.left { .link_wrap {
width: 100%; display: flex;
height: 100%; flex-wrap: wrap;
overflow-y: scroll; padding: 0 0 0 20px;
overflow-x: hidden;
}
.right { .link_item {
width: 100%; padding: 10px;
height: 100%; display: flex;
overflow-y: scroll; align-items: center;
overflow-x: hidden; gap: 10px;
}
}
} }
} }
/* 添加拖拽时的样式 */
.dragging-item-left {
background-color: transparent;
}
.dragging-item {
background-color: #a1ccf2;
}
/* card 头部 */ /* card 头部 */
::v-deep(.el-card__header) { ::v-deep(.el-card__header) {
display: flex; display: flex;
...@@ -292,12 +261,81 @@ const addGroups = async () => { ...@@ -292,12 +261,81 @@ const addGroups = async () => {
} }
} }
.add-group { /* 自定义报表分组弹窗 */
margin-top: 20px; ::v-deep(.el-dialog) {
.el-button { .wrap {
display: flex;
gap: 20px;
width: 100%; width: 100%;
height: 100%;
.left {
width: 100%;
height: 100%;
overflow-y: auto;
padding-top: 20px;
.link_item {
display: flex;
align-items: center;
margin-bottom: 15px;
span {
/* 超出宽度不换行,省略号 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
/* 添加拖拽时的样式 */
.dragging-item-left {
background-color: transparent;
}
}
/* 编辑区 */
.right {
width: 100%;
height: 100%;
overflow-y: auto;
.group-container {
padding-right: 20px;
.group_card {
margin-top: 20px;
.link_item {
display: flex;
align-items: center;
margin-bottom: 10px;
span {
/* 超出宽度不换行,省略号 */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.dragging-item {
background-color: #a1ccf2;
}
}
}
.add-group {
margin-top: 20px;
.el-button {
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论