| | |
| | | } |
| | | |
| | | // 获取现有地详情弹窗 |
| | | export const getLandDetail = (type, policeStationId, policeName, phone) => { |
| | | export const getLandDetail = (type, policeStationId, current, policeName, phone) => { |
| | | return request({ |
| | | url: `/api/policeStationInfo/policeStationInfo/page`, |
| | | method: 'get', |
| | | params: { |
| | | type, |
| | | policeStationId, |
| | | current, |
| | | policeName, |
| | | phone |
| | | } |
| | |
| | | font-size: 16px; |
| | | } |
| | | } |
| | | .el-pagination.is-background .el-pager li:not(.disabled).active { |
| | | color: #C0C4CC!important; |
| | | } |
| | | |
| | | |
| | | .header { |
| | | display: flex; |
| | |
| | | } |
| | | |
| | | .el-table { |
| | | height: calc(100% - countSizeVh(60)); |
| | | height: calc(100% - countSizeVh(80)); |
| | | } |
| | | |
| | | .pages { |
| | | height: countSizeVh(40); |
| | | |
| | | &>div { |
| | | &>button { |
| | | width: countSizeVh(32); |
| | | height: countSizeVh(32); |
| | | |
| | | &>i { |
| | | font-size: countSizeVh(16); |
| | | } |
| | | } |
| | | |
| | | &>ul { |
| | | li { |
| | | width: countSizeVh(32); |
| | | height: countSizeVh(32); |
| | | line-height: countSizeVh(32); |
| | | font-size: countSizeVh(16); |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | .el-table__body-wrapper { |
| | | height: calc(100% - countSizeVh(80)); |
| | | } |
| | | |
| | | .el-table .cell{ |
| | |
| | | :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" |
| | | :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'pointer' }" |
| | | > |
| | | <el-table-column label="序号" type="index" width="50" align="center"> |
| | | <template scope="scope"> |
| | | <span>{{(landPage.currentPage - 1) * landPage.pageSize + scope.$index +1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="责任区名称" v-if="this.landType == 1"></el-table-column> |
| | | <el-table-column prop="aoiName" label="小区名称" v-if="this.landType == 2"></el-table-column> |
| | | <el-table-column prop="policeName" label="负责人"></el-table-column> |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | // 现有地详情弹窗分页 |
| | | landHandleCurrentChange () { |
| | | |
| | | }, |
| | | |
| | | getEquipmentAll (params) { |
| | | getEquipmentAll(params).then(res => { |
| | | if (params.type == 0) { |
| | |
| | | this.landTitle = name |
| | | this.landType = type |
| | | this.landDetailId = id |
| | | this.getLandDetail(type, id, '', '') |
| | | this.getLandDetail(type, id) |
| | | }, |
| | | |
| | | // 获取设备分页数据 |
| | |
| | | clearLandDetailSearchValue () { |
| | | this.policeName = '' |
| | | this.callPhone = '' |
| | | this.getLandDetail(this.landType, this.landDetailId, this.policeName, this.callPhone) |
| | | this.landPage.currentPage = 1 |
| | | this.getLandDetail(this.landType, this.landDetailId) |
| | | }, |
| | | |
| | | searchLandDetail () { |
| | | this.getLandDetail(this.landType, this.landDetailId, this.policeName, this.callPhone) |
| | | this.landPage.currentPage = 1 |
| | | this.getLandDetail(this.landType, this.landDetailId, this.landPage.currentPage, this.policeName, this.callPhone) |
| | | }, |
| | | |
| | | getLandDetail (type, policeStationId, policeName, phone) { |
| | | getLandDetail(type, policeStationId, policeName, phone).then(res => { |
| | | getLandDetail (type, policeStationId, current, policeName, phone) { |
| | | getLandDetail(type, policeStationId, current, policeName, phone).then(res => { |
| | | this.landDetailArr = res.data.data.records |
| | | this.landPage.pageSize = res.data.data.size |
| | | this.landPage.total = res.data.data.total |
| | | }) |
| | | }, |
| | | |
| | | // 现有地详情弹窗分页 |
| | | landHandleCurrentChange (currentPage) { |
| | | this.landPage.currentPage = currentPage |
| | | this.getLandDetail(this.landType, this.landDetailId, this.landPage.currentPage, this.policeName, this.callPhone) |
| | | }, |
| | | |
| | | }, |
| | | |
| | |
| | | clearPeopleDetailSearchValue () { |
| | | this.callPhone = '' |
| | | this.peopleName = '' |
| | | this.getVillagePersonInfo('', this.choosedBuildId, this.keyPeopleType == 1 ? '' : this.keyPeopleType, this.peoplePage.currentPage, this.peopleName, this.callPhone) |
| | | this.peoplePage.currentPage = 1 |
| | | this.getVillagePersonInfo('', this.choosedBuildId, this.keyPeopleType == 1 ? '' : this.keyPeopleType, this.peoplePage.currentPage) |
| | | }, |
| | | |
| | | // 搜索指定人员 |