Commit dff74f3b by Lin

feat: 策略分析页面开发

1 parent d3e7755c
...@@ -18,11 +18,8 @@ ...@@ -18,11 +18,8 @@
></div> ></div>
</div> </div>
<!-- 分割线 (可选,增加视觉间隔) -->
<div class="vertical-divider"></div>
<!-- 右侧 筛选区 + 按钮 --> <!-- 右侧 筛选区 + 按钮 -->
<div class="filter-area"> <div class="filter-area" v-if="showRightArea">
<div class="filter-group"> <div class="filter-group">
<span class="label">区域:</span> <span class="label">区域:</span>
<el-select v-model="localFilters.region" size="small" placeholder="全部" class="filter-select" filterable clearable> <el-select v-model="localFilters.region" size="small" placeholder="全部" class="filter-select" filterable clearable>
...@@ -91,6 +88,11 @@ export default { ...@@ -91,6 +88,11 @@ export default {
brandOptions: { brandOptions: {
type: Array, type: Array,
default: () => [] default: () => []
},
// 控制筛选区域是否展示
showRightArea: {
type: Boolean,
default: false
} }
}, },
data() { data() {
...@@ -223,13 +225,6 @@ $text-orange: #FF7D00; ...@@ -223,13 +225,6 @@ $text-orange: #FF7D00;
width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
} }
.vertical-divider {
width: 1px;
height: 20px;
background: $border;
margin-right: 32px;
}
.filter-area { .filter-area {
flex: 1; flex: 1;
display: flex; display: flex;
......
...@@ -25,7 +25,10 @@ ...@@ -25,7 +25,10 @@
</div> </div>
<div class="row-item"> <div class="row-item">
<span class="label">区域运营:</span> <span class="label">区域运营:</span>
<span class="val">{{ cardData.regionOps }}</span> <el-tooltip v-if="cardData.regionOps" effect="dark" placement="top" popper-class="dark-tooltip">
<div slot="content" style="max-width:240px;line-height:1.6;">{{ cardData.regionOps }}</div>
<span class="val">{{ cardData.regionOps }}</span>
</el-tooltip>
</div> </div>
<!-- 预警标签组 --> <!-- 预警标签组 -->
...@@ -180,6 +183,6 @@ $text-orange: #FF7D00; ...@@ -180,6 +183,6 @@ $text-orange: #FF7D00;
<style> <style>
/* 全局样式 - tooltip 样式 */ /* 全局样式 - tooltip 样式 */
.dark-tooltip { background: rgba(29,33,41, 0.9) !important; } .dark-tooltip { background: #000000 !important; }
</style> </style>
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
:tabs="tabs" :tabs="tabs"
:filters="filters" :filters="filters"
:brand-options="brandOptions" :brand-options="brandOptions"
:show-right-area="true"
@tab-change="handleTabChange" @tab-change="handleTabChange"
@search="handleSearch" @search="handleSearch"
@reset="handleReset" @reset="handleReset"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!