guanqb
2024-03-27 5d76f49090349bbf83c3124d8de62caf90d19a2f
矛盾纠纷、反诈宣传、租赁信息增加定位功能
3 files modified
116 ■■■■■ changed files
src/views/antiFraudShow/index.vue 39 ●●●●● patch | view | raw | blame | history
src/views/contradictionEventShow/index.vue 37 ●●●●● patch | view | raw | blame | history
src/views/rentalInfo/index.vue 40 ●●●●● patch | view | raw | blame | history
src/views/antiFraudShow/index.vue
@@ -34,6 +34,10 @@
                        :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>
@@ -130,7 +134,31 @@
        // 切换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`
                },
            })
        },
        // 点击详情
@@ -272,6 +300,10 @@
            this.searchKey = ''
            this.pages.currentPage = 1
            this.getList()
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'searchAILayer',
                type: 'VectorLayer'
            })
        },
        // 分页处理
@@ -307,6 +339,11 @@
        window.removeEventListener('resize', this.setTableHeight)
        this.$parent.$parent.resize('0px')
        this.$EventBus.$emit('mapClearLayer', {
            layerName: 'searchAILayer',
            type: 'VectorLayer'
        })
    }
}
</script>
src/views/contradictionEventShow/index.vue
@@ -23,6 +23,10 @@
                    <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>
@@ -126,6 +130,30 @@
            })
            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`
                },
            })
        },
@@ -254,6 +282,10 @@
            this.searchKey = ''
            this.pages.currentPage = 1
            this.getList()
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'searchAILayer',
                type: 'VectorLayer'
            })
        },
        // 分页处理
@@ -289,6 +321,11 @@
        window.removeEventListener('resize', this.setTableHeight)
        this.$parent.$parent.resize('0px')
        this.$EventBus.$emit('mapClearLayer', {
            layerName: 'searchAILayer',
            type: 'VectorLayer'
        })
    }
}
</script>
src/views/rentalInfo/index.vue
@@ -73,6 +73,10 @@
                            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>
@@ -203,6 +207,10 @@
            this.keyword = ''
            this.keyManFlag = ''
            this.initTableList()
            this.$EventBus.$emit('mapClearLayer', {
                layerName: 'searchAILayer',
                type: 'VectorLayer'
            })
        },
        // 重点人员筛选
@@ -223,6 +231,30 @@
            // 民族
            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`
                },
            })
        },
@@ -367,8 +399,7 @@
        changeTab (item) {
            if (this.chooseTab == item) return
            this.chooseTab = item
            this.pages.currentPage = 1
            this.initTableList()
            this.resetSearch()
        },
        // 渲染表格数据
@@ -437,6 +468,11 @@
        loading && loading.close()
        this.$parent.$parent.resize('0px')
        this.$EventBus.$emit('mapClearLayer', {
            layerName: 'searchAILayer',
            type: 'VectorLayer'
        })
    }
}
</script>