From b599374e54fcb8fc56e6ccc8efe5f2b3f3d20716 Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期一, 29 九月 2025 13:40:54 +0800 Subject: [PATCH] 新问题 25-9-28 --- src/views/home/data-face/index.vue | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/views/home/data-face/index.vue b/src/views/home/data-face/index.vue index d55da51..d663302 100644 --- a/src/views/home/data-face/index.vue +++ b/src/views/home/data-face/index.vue @@ -16,10 +16,16 @@ </el-option> </el-select> </div> - <div class="select-container"> + <div style="margin-right: 20px"> <el-date-picker v-model="date" format="yyyy-MM" value-format="yyyy-MM" type="month" placeholder="閫夋嫨鏈堜唤" @change="dateChange"> </el-date-picker> + </div> + <div > + <el-select v-model="params.area" placeholder="鍖哄幙" @change="getChart" clearable> + <el-option v-for="item in areaOption" :key="item.label" :label="item.label" :value="item.value"> + </el-option> + </el-select> </div> </div> <div class="chart-container"> @@ -50,6 +56,15 @@ categories: [ {label: '绱鏁版嵁', value: 1}, {label: '姣忔棩鏁版嵁', value: 2}, + ], + areaOption:[ + {label:'鑷祦浜曞尯',value:'510302'}, + {label:'璐′簳鍖�',value:'510303'}, + {label:'澶у畨鍖�',value:'510304'}, + {label:'娌挎哗鍖�',value:'510311'}, + {label:'鑽e幙',value:'510321'}, + {label:'瀵岄『鍘�',value:'510322'}, + {label:'楂樻柊鍖�',value:'510399'}, ], options: [ {label: '鐪佸巺', value: 1} @@ -323,12 +338,11 @@ } .title-container { - position: absolute; display: flex; - justify-content: space-between; align-items: center; - z-index: 2; - + padding: 15px 20px; /* 鍐呰竟璺濇帶鍒堕珮搴﹀拰杈硅窛 */ + background: #fff; + border-bottom: 1px solid #eee; /* 鍒嗛殧绾垮寮鸿瑙夊垎绂� */ .more-button { cursor: pointer; font-size: 16px; @@ -339,7 +353,7 @@ .chart-container { width: 100%; - height: 100%; + height: 80%; #chartContent { width: 100%; @@ -348,7 +362,7 @@ } .select-container { - margin-left: 20px; + margin: 0 20px; width: 180px; } </style> -- Gitblit v1.8.0