| | |
| | | </el-select> |
| | | </div> |
| | | |
| | | <div class="local-select"> |
| | | <div class="select-label">地区</div> |
| | | <el-select v-model="localValue" popper-class="type-select" class="select-style" @change="setConfig"> |
| | | <el-option v-for="item in testData2" :key="item.name" :label="item.name" :value="item.value" /> |
| | | </el-select> |
| | | </div> |
| | | |
| | | <div class="date-select"> |
| | | <div class="select-label">日期</div> |
| | | <el-date-picker |
| | | v-model="dateValue" |
| | | type="daterange" |
| | | range-separator="至" |
| | | start-placeholder="开始日期" |
| | | end-placeholder="结束日期" |
| | | value-format="yyyy-MM-dd" |
| | | @change="setConfig" |
| | | /> |
| | | <el-date-picker v-model="dateValue" type="daterange" range-separator="至" start-placeholder="开始日期" |
| | | end-placeholder="结束日期" value-format="yyyy-MM-dd" @change="setConfig" /> |
| | | </div> |
| | | |
| | | </div> |
| | |
| | | data() { |
| | | return { |
| | | typeValue: 1, |
| | | localValue: 1, |
| | | dateValue: new Date(), |
| | | testData1: [ |
| | | { |
| | | name: '省厅', |
| | | name: '省厅数据', |
| | | value: 1 |
| | | }, |
| | | { |
| | | name: '市厅', |
| | | name: '市局数据', |
| | | value: 2 |
| | | }, |
| | | { |
| | | name: '公安部', |
| | | name: '公安部数据', |
| | | value: 3 |
| | | } |
| | | ], |
| | | testData2: [ |
| | | { |
| | | name: '富顺县', |
| | | value: 1, |
| | | }, |
| | | { |
| | | name: '荣县', |
| | | value: 2, |
| | | }, |
| | | { |
| | | name: '高新区', |
| | | value: 3, |
| | | }, |
| | | { |
| | | name: '自流井区', |
| | | value: 4, |
| | | }, |
| | | { |
| | | name: '贡井区', |
| | | value: 5, |
| | | }, |
| | | { |
| | | name: '大安区', |
| | | value: 6, |
| | | }, |
| | | { |
| | | name: '沿滩区', |
| | | value: 7, |
| | | }, |
| | | ] |
| | | } |
| | | }, |
| | |
| | | <style lang="scss" scoped> |
| | | .select-container { |
| | | position: absolute; |
| | | top: 30px; |
| | | top: 10px; |
| | | left: 20px; |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | .select-label { |
| | | font-size: 20px; |
| | | margin-right: 10px; |
| | | color: #2375f0; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .local-label { |
| | | font-size: 20px; |
| | | margin-right: 10px; |
| | | color: #2375f0; |
| | | flex-shrink: 0; |
| | | } |
| | | |
| | | .type-select { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-right: 20px; |
| | | width: 200px; |
| | | } |
| | | |
| | | .local-select { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-right: 20px; |
| | | width: 200px; |
| | | } |
| | | |
| | | .date-select { |
| | | display: flex; |
| | | align-items: center; |
| | | width: 320px; |
| | | } |
| | | } |
| | | ::v-deep .el-input__inner { |
| | | background: rgba(67, 102, 155, 0.4) !important; |
| | | color: #4481DD; |
| | | border-color: #4481DD !important; |
| | | } |
| | | |
| | | ::v-deep .date-select .el-range-input { |
| | | background-color: transparent !important; |
| | | color: #4481DD; |
| | | } |
| | | ::v-deep .date-select .el-date-editor .el-range-separator { |
| | | color: #4481DD !important; |
| | | } |
| | | |
| | | |
| | | </style> |