| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <div class="search-radio"> |
| | | <!-- <div class="search-radio"> |
| | | <el-radio v-model="radio" label="1">全部</el-radio> |
| | | <el-radio v-model="radio" label="2">正常</el-radio> |
| | | <el-radio v-model="radio" label="3">预警</el-radio> |
| | | </div> --> |
| | | <el-radio-group v-model="form.type" class="levelOfRisk"> |
| | | <el-radio v-for="(item,index) in levelOfRisk" :label="item.value" :key="index"><span class="levelOfRisk-type">{{item.name}}</span></el-radio> |
| | | </el-radio-group> |
| | | |
| | | <div class="rightButtonSearch"> |
| | | <el-input v-model="form.keyword" size="mini" placeholder="在此输入关键字搜索"></el-input> |
| | | <el-buttom class="el-icon-search" @click="handleSearch"></el-buttom> |
| | | </div> |
| | | <el-input v-model="form.keyword" size="mini" placeholder="在此输入关键字搜索"> |
| | | <i slot="suffix" class="search-btn el-input__icon el-icon-search" @click="handleSearch"></i> |
| | | </el-input> |
| | | </el-form> |
| | | <el-card class="box-card" |
| | | v-for="(item,index) in searchDataDisplay.slice((currentPage-1)*PageSize,currentPage*PageSize)" |
| | | v-for="(item,index) in searchDataDisplay" |
| | | :key="index"> |
| | | <div v-if="totalCount > 0"> |
| | | <div> |
| | | {{ item.CompanyName }} |
| | | </div> |
| | | </el-card> |
| | | <div class="search-pagination"> |
| | | <el-pagination |
| | | small |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage" |
| | | :page-sizes="[1, 2, 3]" |
| | | :page-size="1" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total='totalCount'> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | <!-- <el-scrollbar style="height:100%">--> |
| | | <!-- </el-scrollbar>--> |
| | |
| | | props: ['title'], |
| | | data () { |
| | | return { |
| | | levelOfRisk: [ |
| | | { name: '全部', value: '1' }, |
| | | { name: '正常', value: '2' }, |
| | | { name: '预警', value: '3' } |
| | | ], |
| | | judgeVisible: true, |
| | | solidWasteTypeOptions: [{ |
| | | value: '1', |
| | |
| | | // 数据的传递 |
| | | transferData: '' |
| | | }, |
| | | searchDataDisplay: [], |
| | | // 默认显示第几页 |
| | | currentPage: 1, |
| | | // 总条数,根据接口获取数据长度(注意:这里不能为空) |
| | | totalCount: 1, |
| | | // 个数选择器(可修改) |
| | | pageSizes: [1, 2, 3, 4], |
| | | // 默认每页显示的条数(可修改) |
| | | PageSize: 1 |
| | | searchDataDisplay: [] |
| | | } |
| | | }, |
| | | methods: { |
| | | // 每页显示的条数 |
| | | handleSizeChange (val) { |
| | | this.PageSize = val |
| | | this.currentPage = 1 |
| | | }, |
| | | // 显示第几页 |
| | | handleCurrentChange (val) { |
| | | this.currentPage = val |
| | | }, |
| | | handlePipelineType (val) { |
| | | // console.log(val) |
| | | this.solidWasteTypeOptions.forEach(item => { |
| | |
| | | const result = await mapApi.getSolidWasteSurveyDetail(data) |
| | | // console.log(result) |
| | | this.searchDataDisplay = result.Result.DataInfo |
| | | this.totalCount = result.Result.DataInfo.length |
| | | } |
| | | } |
| | | } |
| | |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | .solidwaste-search { |
| | | position: relative; |
| | | overflow: hidden; |
| | | |
| | | .search-panel { |
| | | background-color: transparent; |
| | | border: 1px solid @background-color-split; |
| | | padding: 10px; |
| | | |
| | | /deep/ input { |
| | | border-radius: 0; |
| | | background-color: @background-color-split; |
| | | border: solid 1px @color; |
| | | color: @color-gray; |
| | | font-size: 0.01rem; |
| | | |
| | | .el-select .el-input.is-focus .el-input__inner { |
| | | border-color: @color; |
| | | } |
| | | } |
| | | |
| | | /deep/ input:focus { |
| | | border-color: @color; |
| | | } |
| | | } |
| | | |
| | | .search-btn { |
| | | |
| | | } |
| | | |
| | | .search-radio { |
| | | margin: 15px auto; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: space-around; |
| | | } |
| | | |
| | | .location-btn:hover, .el-input__icon:hover { |
| | | color: @color; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .box-card { |
| | | margin: 15px auto; |
| | | } |
| | | |
| | | .search-pagination { |
| | | padding: 0; |
| | | margin: 15px auto; |
| | | } |
| | | } |
| | | </style> |