Browse Source

fix: 弹框增加滚动条

feature-v1.0.0
ruancuihong 1 month ago
parent
commit
44c8821455
  1. 8
      src/views/Main/ProjectOperation/components/DataStatistics.vue
  2. 1
      src/views/Main/ProjectOperation/components/MonitorWarning.vue

8
src/views/Main/ProjectOperation/components/DataStatistics.vue

@ -29,7 +29,7 @@
<el-radio-button label="2">图表</el-radio-button> <el-radio-button label="2">图表</el-radio-button>
</el-radio-group> </el-radio-group>
</div> </div>
<div class="mt-24"> <div class="mt-24 statistics-main">
<!-- 指标 --> <!-- 指标 -->
<div v-if="showType === '1'"> <div v-if="showType === '1'">
<div class="attributes-box" v-for="(item, index) in attributesList" :key="index"> <div class="attributes-box" v-for="(item, index) in attributesList" :key="index">
@ -316,6 +316,7 @@ onMounted(() => {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.data-statistics { .data-statistics {
height: 100%;
:deep(.sy-cascader) .sy-input__wrapper, :deep(.sy-cascader) .sy-input__wrapper,
:deep(.sy-range-editor--small.sy-input__wrapper) { :deep(.sy-range-editor--small.sy-input__wrapper) {
height: 32px !important; height: 32px !important;
@ -431,6 +432,11 @@ onMounted(() => {
} }
} }
} }
.statistics-main {
height: calc(100% - 64px);
overflow: auto;
}
} }
.text-center { .text-center {
padding-top: 30px; padding-top: 30px;

1
src/views/Main/ProjectOperation/components/MonitorWarning.vue

@ -174,6 +174,7 @@ function handleReset() {
<style scoped lang="scss"> <style scoped lang="scss">
.monitor-warning { .monitor-warning {
width: 100%; width: 100%;
height: 100%;
padding: 12px; padding: 12px;
.search-box { .search-box {
display: flex; display: flex;

Loading…
Cancel
Save