| | |
| | | <el-col :span="12"> |
| | | <div class=search-list> |
| | | <!-- <h4 :class="activeNum===index?'hover':''" @click="handleLocation(index)">名称:<h3 style="display: inline-block">{{ item.name }}</h3></h4>--> |
| | | <h3 style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden" :class="activeNum===index?'hover':''" |
| | | @click="handleLocation(index)">名称:{{ item.name }}</h3> |
| | | <h3 style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden" |
| | | :class="activeNum===index?'hover':''" @click="locationMapClick(1, item, index)">名称:{{ item.name }}</h3> |
| | | <p style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden">地址:<span>{{ item.address }}</span> |
| | | <p style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden">电话:<span>{{ item.phone }}</span></p> |
| | | </div> |
| | |
| | | <el-col :span="12"> |
| | | <div class=search-list> |
| | | <!-- <h4 :class="activeNum===index?'hover':''" @click="handleLocation(index)">名称:<h3 style="display: inline-block">{{ item.name }}</h3></h4>--> |
| | | <h3 :class="activeNum===index?'hover':''" @click="handleLocation(index)">名称:{{ item.name }}</h3> |
| | | <h3 @click="locationMapClick(2, item, index)" :class="activeNum===index?'hover':''">名称:{{ item.name }}</h3> |
| | | <p style="text-overflow: ellipsis;white-space: nowrap;overflow: hidden">行政代码:<span>{{ item.adminCode }}</span> |
| | | <p></p> |
| | | </div> |
| | |
| | | } |
| | | }) |
| | | }, |
| | | // getStyle (index) { |
| | | // console.log(index) |
| | | // if (this.activeNum === index) { |
| | | // return { color: 'red' } |
| | | // } |
| | | // }, |
| | | // 点击定位 |
| | | locationMapClick (type, val, index) { |
| | | // this.activeNum = index |
| | | // this.getStyle(index) |
| | | // console.log(val) |
| | | if (type === 1) { |
| | | this.activeNum = index |
| | |
| | | }, |
| | | // 分页功能 当前页 |
| | | handlePage (currentPage) { |
| | | console.log(currentPage) |
| | | this.currentPage = currentPage |
| | | }, |
| | | // 下标更改 事件 |
| | | handleLocation (index) { |
| | | this.activeNum = index |
| | | this.activeNum = -1 |
| | | }, |
| | | // 点击确认按钮事件 |
| | | confirm () { |
| | |
| | | } |
| | | } |
| | | |
| | | //.environmental-risk-list :hover { |
| | | // h3 { |
| | | // color: @color-highlight; |
| | | // } |
| | | //} |
| | | |
| | | //.search-list :hover { |
| | | // color: @color-highlight; |
| | | //} |
| | | |
| | | .hover { |
| | | color: @color-highlight; |
| | | } |