| | |
| | | :key="Math.random()"></el-table-column> |
| | | <el-table-column label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" title="定位" :disabled="positionDisabled(scope.row)" |
| | | @click="rowClick(scope.row)"> |
| | | <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i> |
| | | </el-button> |
| | | <el-button type="text" size="small" title="详情" @click="goDetail(scope.row)"> |
| | | <i class="el-icon-document"></i> |
| | | </el-button> |
| | |
| | | // 切换tab |
| | | tabClick (curTab) { |
| | | this.chooseTab = curTab |
| | | this.getList() |
| | | this.resetBtn() |
| | | }, |
| | | |
| | | // 点击定位 |
| | | rowClick (row) { |
| | | this.$EventBus.$emit('toPosition', { |
| | | siteJd: row.lng, |
| | | siteWd: row.lat, |
| | | siteGd: 200 |
| | | }) |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'searchAILayer', |
| | | type: "billboard", |
| | | params: { |
| | | ...row, |
| | | lng: row.lng, |
| | | lat: row.lat, |
| | | alt: 1, |
| | | url: `/img/icon/location.png` |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | | // 点击详情 |
| | |
| | | this.searchKey = '' |
| | | this.pages.currentPage = 1 |
| | | this.getList() |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | }, |
| | | |
| | | // 分页处理 |
| | |
| | | window.removeEventListener('resize', this.setTableHeight) |
| | | |
| | | this.$parent.$parent.resize('0px') |
| | | |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | |
| | | |
| | | <el-table-column label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" title="定位" :disabled="positionDisabled(scope.row)" |
| | | @click="rowClick(scope.row)"> |
| | | <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i> |
| | | </el-button> |
| | | <el-button type="text" size="small" title="详情" @click="goDetail(scope.row)"> |
| | | <i class="el-icon-document"></i> |
| | | </el-button> |
| | |
| | | }) |
| | | getDictionaryListByCode('disputeSource').then(res => { |
| | | this.disputeSourceList = res.data.data |
| | | }) |
| | | }, |
| | | |
| | | // 点击定位 |
| | | rowClick (row) { |
| | | this.$EventBus.$emit('toPosition', { |
| | | siteJd: row.lng, |
| | | siteWd: row.lat, |
| | | siteGd: 200 |
| | | }) |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'searchAILayer', |
| | | type: "billboard", |
| | | params: { |
| | | ...row, |
| | | lng: row.lng, |
| | | lat: row.lat, |
| | | alt: 1, |
| | | url: `/img/icon/location.png` |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | |
| | | this.searchKey = '' |
| | | this.pages.currentPage = 1 |
| | | this.getList() |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | }, |
| | | |
| | | // 分页处理 |
| | |
| | | window.removeEventListener('resize', this.setTableHeight) |
| | | |
| | | this.$parent.$parent.resize('0px') |
| | | |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | |
| | | v-if="chooseTab == '租客管理'" :key="Math.random()"></el-table-column> |
| | | <el-table-column width="80" label="操作" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" title="定位" :disabled="positionDisabled(scope.row)" |
| | | @click="rowClick(scope.row)"> |
| | | <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i> |
| | | </el-button> |
| | | <el-button type="text" size="small" title="详情" @click="goDetail(scope.row)"> |
| | | <i class="el-icon-document"></i> |
| | | </el-button> |
| | |
| | | this.keyword = '' |
| | | this.keyManFlag = '' |
| | | this.initTableList() |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | }, |
| | | |
| | | // 重点人员筛选 |
| | |
| | | // 民族 |
| | | getDictionaryListByCode('nationType').then(res => { |
| | | this.nationTypeList = res.data.data |
| | | }) |
| | | }, |
| | | |
| | | // 点击定位 |
| | | rowClick (row) { |
| | | this.$EventBus.$emit('toPosition', { |
| | | siteJd: row.lng, |
| | | siteWd: row.lat, |
| | | siteGd: 200 |
| | | }) |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | this.$EventBus.$emit('layerPointAdd', { |
| | | layerName: 'searchAILayer', |
| | | type: "billboard", |
| | | params: { |
| | | ...row, |
| | | lng: row.lng, |
| | | lat: row.lat, |
| | | alt: 1, |
| | | url: `/img/icon/location.png` |
| | | }, |
| | | }) |
| | | }, |
| | | |
| | |
| | | changeTab (item) { |
| | | if (this.chooseTab == item) return |
| | | this.chooseTab = item |
| | | this.pages.currentPage = 1 |
| | | this.initTableList() |
| | | this.resetSearch() |
| | | }, |
| | | |
| | | // 渲染表格数据 |
| | |
| | | loading && loading.close() |
| | | |
| | | this.$parent.$parent.resize('0px') |
| | | |
| | | this.$EventBus.$emit('mapClearLayer', { |
| | | layerName: 'searchAILayer', |
| | | type: 'VectorLayer' |
| | | }) |
| | | } |
| | | } |
| | | </script> |