src/views/antiFraudShow/index.vue
@@ -42,8 +42,8 @@ :key="Math.random()"></el-table-column> <el-table-column prop="address" :show-overflow-tooltip="true" label="地址" v-if="chooseTab == 2" :key="Math.random()"></el-table-column> <el-table-column prop="recContent" :show-overflow-tooltip="true" label="核实内容信息" v-if="chooseTab == 2" :key="Math.random()"></el-table-column> <el-table-column prop="recContent" :show-overflow-tooltip="true" label="核实内容信息" v-if="chooseTab == 2" :key="Math.random()"></el-table-column> <el-table-column prop="createTime" :show-overflow-tooltip="true" label="时间" v-if="chooseTab == 2" :key="Math.random()"></el-table-column> <el-table-column label="操作" align="center"> @@ -60,9 +60,8 @@ </el-table> <div class="pages all-pagination-sty" ref="tablePagination" style="padding-top:-15px"> <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange"></el-pagination> <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange"></el-pagination> </div> </div> </div> @@ -182,8 +181,11 @@ // 点击定位 rowClick(row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit('toPosition', { siteJd: lng, src/views/contradictionEventShow/index 匹配e呼即办.vue
@@ -58,9 +58,8 @@ </el-table> <div class="pages all-pagination-sty" ref="tablePagination" style="padding-top:-15px"> <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange"></el-pagination> <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange"></el-pagination> </div> </div> </div> @@ -181,8 +180,10 @@ // 点击定位 rowClick (row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit('toPosition', { siteJd: lng, src/views/contradictionEventShow/index.vue
@@ -5,135 +5,60 @@ <div class="search-item-box"> <span>矛盾纠纷类型:</span> <el-select clearable style="flex: 1" size="small" v-model="typeValue" @change="typeChange" placeholder="请选择矛盾纠纷类型" > <el-option v-for="item in typeOptions" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey" ></el-option> <el-select clearable style="flex: 1" size="small" v-model="typeValue" @change="typeChange" placeholder="请选择矛盾纠纷类型"> <el-option v-for="item in typeOptions" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> </el-select> </div> <div class="search-item-box"> <el-input size="small" placeholder="请输入(地址、纠纷内容)" v-model="searchKey" clearable ></el-input> <el-button @click="searchBtn" icon="el-icon-search" class="bjnr-btn" >搜索</el-button > <el-button @click="resetBtn" icon="el-icon-delete" class="bjnr-btn" >清除</el-button > <el-input size="small" placeholder="请输入(地址、纠纷内容)" v-model="searchKey" clearable></el-input> <el-button @click="searchBtn" icon="el-icon-search" class="bjnr-btn">搜索</el-button> <el-button @click="resetBtn" icon="el-icon-delete" class="bjnr-btn">清除</el-button> </div> <div class="search-item-box" style="overflow-wrap: break-word"> <el-button @click="filterBtn(1)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }" >已化解({{ yhj ? yhj : "0" }})</el-button > <el-button @click="filterBtn(2)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }" >未化解({{ whj ? whj : "0" }})</el-button > <el-button @click="filterBtn(3)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }" >移交E呼即办({{ ysehjb ? ysehjb : "0" }})</el-button > <el-button @click="filterBtn(1)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">已化解({{ yhj ? yhj : "0" }})</el-button> <el-button @click="filterBtn(2)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">未化解({{ whj ? whj : "0" }})</el-button> <el-button @click="filterBtn(3)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">移交E呼即办({{ ysehjb ? ysehjb : "0" }})</el-button> </div> </div> <div class="list police-info" ref="tableBox"> <el-table :data="tableData" style="width: 100%;" :height="currentTableHeight" :header-cell-style="{ <el-table :data="tableData" style="width: 100%;" :height="currentTableHeight" :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', borderColor: '#324e75', }" :cell-style="{ }" :cell-style="{ 'text-align': 'center', borderColor: '#324e75', cursor: 'default', }" :row-class-name="tableRowClassName" class="police-infor-table" > <el-table-column prop="address" :show-overflow-tooltip="true" label="事发地址" :key="Math.random()" ></el-table-column> <el-table-column prop="eventTime" :show-overflow-tooltip="true" label="事发时间" :key="Math.random()" ></el-table-column> <el-table-column prop="disputeTypeName" :show-overflow-tooltip="true" label="纠纷类型" :key="Math.random()" ></el-table-column> }" :row-class-name="tableRowClassName" class="police-infor-table"> <el-table-column prop="address" :show-overflow-tooltip="true" label="事发地址" :key="Math.random()"></el-table-column> <el-table-column prop="eventTime" :show-overflow-tooltip="true" label="事发时间" :key="Math.random()"></el-table-column> <el-table-column prop="disputeTypeName" :show-overflow-tooltip="true" label="纠纷类型" :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 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)" > <el-button type="text" size="small" title="详情" @click="goDetail(scope.row)"> <i class="el-icon-document" style="color: #66b1ff"></i> </el-button> </template> </el-table-column> </el-table> <div class="pages all-pagination-sty" ref="tablePagination" style="padding-top: -15px" > <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange" ></el-pagination> <div class="pages all-pagination-sty" ref="tablePagination" style="padding-top: -15px"> <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange"></el-pagination> </div> </div> </div> @@ -142,16 +67,16 @@ </template> <script> import { initMapPosition } from "@/utils/mapPositionInit"; import { initMapPosition } from "@/utils/mapPositionInit" import { getDisputeRecordList, getStatistic, } from "@/api/contradictionEventShow/index.js"; import { getDictionaryListByCode } from "@/api/rentalInfo/index.js"; } from "@/api/contradictionEventShow/index.js" import { getDictionaryListByCode } from "@/api/rentalInfo/index.js" import detailDialog from "./components/detailDialog.vue"; import detailDialog from "./components/detailDialog.vue" let loading = null; let loading = null export default { inject: ["userInfo"], @@ -178,30 +103,30 @@ }, disputeTypeList: [], disputeSourceList: [], }; } }, created() { const that = this; const that = this that.$nextTick(() => { initMapPosition(); that.getDictionaryListByCode(); that.getStatistic(); that.getList(); }); initMapPosition() that.getDictionaryListByCode() that.getStatistic() that.getList() }) }, mounted() { this.$parent.$parent.resize("400px", true); this.$parent.$parent.resize("400px", true) this.$nextTick(() => { this.$EventBus.$emit("closeMxTileset"); this.$EventBus.$emit("closeMxTileset") this.setTableHeight(); }); this.setTableHeight() }) window.addEventListener("resize", this.setTableHeight); window.addEventListener("resize", this.setTableHeight) }, computed: { @@ -213,11 +138,11 @@ (row.longitude && row.longitude != 0) || (row.x && row.x != 0) ) { return "#1AFA29"; return "#1AFA29" } else { return "#ccc"; return "#ccc" } }; } }, positionDisabled() { @@ -228,55 +153,57 @@ (row.longitude && row.longitude != 0) || (row.x && row.x != 0) ) { return false; return false } else { return true; return true } }; } }, }, methods: { // 统计 getStatistic() { var that = this; var that = this getStatistic({ disputeType: this.typeValue, searchKey: this.searchKey, }).then((res) => { that.yhj = res.data.data.yhj; that.whj = res.data.data.whj; that.ysehjb = res.data.data.ysehjb; }); that.yhj = res.data.data.yhj that.whj = res.data.data.whj that.ysehjb = res.data.data.ysehjb }) }, // 获取字典列表 getDictionaryListByCode() { getDictionaryListByCode("disputeType").then((res) => { this.disputeTypeList = res.data.data; }); this.disputeTypeList = res.data.data }) getDictionaryListByCode("disputeSource").then((res) => { this.disputeSourceList = res.data.data; }); this.disputeSourceList = res.data.data }) // 矛盾纠纷类型获取 getDictionaryListByCode("disputeType").then((res) => { this.typeOptions = res.data.data; }); this.typeOptions = res.data.data }) }, // 点击定位 rowClick(row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0]; let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1]; // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0]; // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1]; let lng = row.lng let lat = row.lat this.$EventBus.$emit("toPosition", { siteJd: lng, siteWd: lat, siteGd: 200, }); }) this.$EventBus.$emit("mapClearLayer", { layerName: "searchAILayer", type: "VectorLayer", }); }) this.$EventBus.$emit("layerPointAdd", { layerName: "searchAILayer", type: "billboard", @@ -287,13 +214,13 @@ alt: 1, url: `/img/icon/location.png`, }, }); }) }, // 点击详情 goDetail(row) { let detailList = []; let title = "矛盾纠纷事件详情"; let detailList = [] let title = "矛盾纠纷事件详情" detailList = [ { @@ -406,77 +333,77 @@ : "", width: "50%", }, ]; ] this.$refs.detailDialog.initOpen(detailList, title, [], []); this.$refs.detailDialog.initOpen(detailList, title, [], []) }, // 切换登记类型 typeChange() { this.pages.currentPage = 1; this.getList(); this.getStatistic(); this.pages.currentPage = 1 this.getList() this.getStatistic() }, // 获取列表 getList() { this.loading(); this.loading() let params = { handleResult: this.handleResult, disputeType: this.typeValue, searchKey: this.searchKey, size: this.pages.pageSize, current: this.pages.currentPage, }; } this.getDisputeRecordList(params); this.getDisputeRecordList(params) }, // 矛盾纠纷列表 getDisputeRecordList(params) { getDisputeRecordList(params) .then((res) => { this.tableData = res.data.data.records; this.pages.total = res.data.data.total; this.tableData = res.data.data.records this.pages.total = res.data.data.total setTimeout(() => { loading && loading.close(); }, 300); loading && loading.close() }, 300) }) .catch((error) => { setTimeout(() => { loading && loading.close(); }, 300); }); loading && loading.close() }, 300) }) }, // 搜索按钮 searchBtn() { this.pages.currentPage = 1; this.getList(); this.getStatistic(); this.pages.currentPage = 1 this.getList() this.getStatistic() }, // 清空按钮 resetBtn() { this.searchKey = ""; this.typeValue = null; this.handleResult = null; this.pages.currentPage = 1; this.getList(); this.getStatistic(); this.searchKey = "" this.typeValue = null this.handleResult = null this.pages.currentPage = 1 this.getList() this.getStatistic() this.$EventBus.$emit("mapClearLayer", { layerName: "searchAILayer", type: "VectorLayer", }); }) }, filterBtn(handleResult) { this.handleResult = handleResult; this.getList(); this.handleResult = handleResult this.getList() }, // 分页处理 handleCurrentChange(currentPage) { this.pages.currentPage = currentPage; this.getList(); this.getStatistic(); this.pages.currentPage = currentPage this.getList() this.getStatistic() }, // 加载动画 @@ -486,35 +413,35 @@ text: "拼命加载中", spinner: "el-icon-loading", background: "rgba(0, 0, 0, 0.5)", }); }) }, // 表格高度 setTableHeight() { this.currentTableHeight = this.$refs.containerContent.offsetHeight - this.$refs.timeSelect.offsetHeight-45; this.$refs.timeSelect.offsetHeight - 45 }, // 大小重置 boxResize(val) { this.boxShow = val; this.boxShow = val }, }, destroyed() { loading && loading.close(); loading && loading.close() window.removeEventListener("resize", this.setTableHeight); window.removeEventListener("resize", this.setTableHeight) this.$parent.$parent.resize("0px"); this.$parent.$parent.resize("0px") this.$EventBus.$emit("mapClearLayer", { layerName: "searchAILayer", type: "VectorLayer", }); }) }, }; } </script> <style scoped lang="scss"> src/views/home/components/dialog/otherPlaceDetailsBox.vue
@@ -128,8 +128,10 @@ rowClick (row) { this.landBeforeClose() let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit("toPosition", { siteJd: lng, src/views/home/components/dialog/placeDetailsBox.vue
@@ -204,8 +204,10 @@ rowClick (row) { this.landBeforeClose() let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit("toPosition", { siteJd: lng, src/views/home/components/dialog/riskDetailsBox.vue
@@ -217,8 +217,10 @@ rowClick (row) { this.landBeforeClose() let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[1] let lng = row.x let lat = row.y this.$EventBus.$emit("toPosition", { siteJd: lng, src/views/home/components/leftContainer.vue
@@ -100,12 +100,12 @@ </div> <div class="land-box" style="position: relative;"> <div class="box"> <div class="title">现有小区</div> <div class="title">现有院落</div> <el-main v-loading="landEchartsLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)" style="height: calc(100% - 17.6%);"> <div class="sub-tab" v-show="isAllPoliceStation"> <div class="tab" :class="{ 'select-on-tab': tabTypeThree == 0 }" @click="landTabClick(0)"> <div class="tab-title-small">小区:</div> <div class="tab-title-small">院落:</div> <div class="tab-title-small">{{ villageNum ? villageNum : 0 }}个</div> </div> <div class="tab" :class="{ 'select-on-tab': tabTypeThree == 1 }" @click="landTabClick(1)"> src/views/home/index.vue
@@ -1707,7 +1707,7 @@ this.areaOptions = [] this.housingOptions = [] this.areaCheckValue = '请选择责任区' this.housingCheckValue = '请选择小区' this.housingCheckValue = '请选择院落' if (item.name == "全部") { this.clearPolygonLayer() src/views/house/index.vue
@@ -15,33 +15,30 @@ <div v-show="contentShow" class="search-box"> <el-popover ref="popover" placement="bottom" trigger="manual" v-model="searchTreeShowFlag" popper-class="tree-search-popup" @mousedown.native="preventFocusLost"> <el-tree v-show="searchLazyFlag == true" ref="popupTree" style="overflow: auto;" class="select-tree-box" :load="loadNode" :lazy="true" :props="props" @current-change="currentChangeHandle" @mousedown.native="preventFocusLost"></el-tree> <el-tree v-show="searchLazyFlag == false" :empty-text="treeEmptyText" ref="popupTree" style="overflow: auto;" class="select-tree-box" :data="searchTreeData" :props="defaultProps" :default-expand-all="true" @current-change="currentChangeHandle" <el-tree v-show="searchLazyFlag == true" ref="popupTree" style="overflow: auto;" class="select-tree-box" :load="loadNode" :lazy="true" :props="props" @current-change="currentChangeHandle" @mousedown.native="preventFocusLost"></el-tree> <el-tree v-show="searchLazyFlag == false" :empty-text="treeEmptyText" ref="popupTree" style="overflow: auto;" class="select-tree-box" :data="searchTreeData" :props="defaultProps" :default-expand-all="true" @current-change="currentChangeHandle" @mousedown.native="preventFocusLost"></el-tree> </el-popover> <el-input ref="searchTreeInput" v-model="searchTreeName" @input="searchInputTree" @focus="searchTreeShowFlag = true" @blur="searchTreeShowFlag = false" v-popover:popover placeholder="请输入搜索条件" style="cursor: pointer;"></el-input> @focus="searchTreeShowFlag = true" @blur="searchTreeShowFlag = false" v-popover:popover placeholder="请输入搜索条件" style="cursor: pointer;"></el-input> </div> <div v-show="contentShow" class="result-content" ref="resultContentBox"> <el-main v-loading="villageInfoLoading" element-loading-background="rgba(0, 0, 0, 0.5)" element-loading-text="数据正在加载中" element-loading-spinner="el-icon-loading" style="overflow:hidden;padding:0px;"> element-loading-text="数据正在加载中" element-loading-spinner="el-icon-loading" style="overflow:hidden;padding:0px;"> <div class="housing-estate-info" ref="housingEstateInfoBox"> <div class="housing-title"> {{ villageInfo.name }} <div class="progress"></div> </div> <div class="housing-bg"> <el-image fit="contain" :src="villageInfo.pic_url" :preview-src-list="villageInfo.pic_url_singleArr"> <el-image fit="contain" :src="villageInfo.pic_url" :preview-src-list="villageInfo.pic_url_singleArr"> <div slot="error" class="image-slot">暂无照片</div> </el-image> <el-empty :image-size="120" description="暂无照片" @@ -129,15 +126,14 @@ </div> </div> <div class="code"> <el-image fit="contain" :src="villageInfo.codeUrl" :preview-src-list="[villageInfo.codeUrl]"> <el-image fit="contain" :src="villageInfo.codeUrl" :preview-src-list="[villageInfo.codeUrl]"> <div slot="error" class="image-slot"></div> </el-image> </div> </div> <!-- 点击展开 --> <div class="house-shrink-unfold-btn" @click="unfoldHouseBox('down')" v-show="!isShowHouseInfoBox"><i class="el-icon-arrow-down"></i> <div class="house-shrink-unfold-btn" @click="unfoldHouseBox('down')" v-show="!isShowHouseInfoBox"><i class="el-icon-arrow-down"></i> </div> <!-- 点击收缩 --> <div class="house-shrink-unfold-btn" @click="unfoldHouseBox('up')" v-show="isShowHouseInfoBox"> @@ -162,25 +158,22 @@ <div class="floor-content" v-show="subNavType == 1"> <el-main v-loading="BuildListLoading" v-show="isShowBuildListBox" element-loading-background="rgba(0, 0, 0, 0.5)" element-loading-text="数据正在加载中" element-loading-spinner="el-icon-loading" style="overflow:hidden;padding:0px;" class="build-item"> element-loading-spinner="el-icon-loading" style="overflow:hidden;padding:0px;" class="build-item"> <div class="build-info" v-show="!BuildListLoading && buildingList.length"> <div class="nextBtn" @click="lastBtn" v-show="lastBtnShow == true"> <i class="el-icon-caret-left"></i> </div> <div class="build-outBox" ref="BuildOutBox"> <div class="build-box" style="left: 0px;"> <div class="ridgepole-list" v-for="index of Math.ceil(buildingList.length / 10)" :key="index"> <div v-for="(item, index) in buildingList.slice((index - 1) * 10, index * 10)" :key="index" @click="buildingClick(item)" :class="{ on: buildingChoosed.name == item.name }" :title="item.name"> <div class="ridgepole-list" v-for="index of Math.ceil(buildingList.length / 10)" :key="index"> <div v-for="(item, index) in buildingList.slice((index - 1) * 10, index * 10)" :key="index" @click="buildingClick(item)" :class="{ on: buildingChoosed.name == item.name }" :title="item.name"> {{ item.name }} <div @click.stop title="显示/隐藏楼栋高亮"> <el-checkbox v-model="isBuildHighLightchecked" v-show="buildingChoosed.name == item.name" <el-checkbox v-model="isBuildHighLightchecked" v-show="buildingChoosed.name == item.name" @change="changeBuildHighLightchecked"></el-checkbox> </div> </div> @@ -191,8 +184,7 @@ <i v-show="buildingList.length > 10 && nextBtnShow" class="el-icon-caret-right"></i> </div> </div> <div class="build-info" v-show="!BuildListLoading && !buildingList.length" style="justify-content: center;"> <div class="build-info" v-show="!BuildListLoading && !buildingList.length" style="justify-content: center;"> 暂无楼栋数据</div> </el-main> <div class="ridgepole-info" v-if="isShowHouseBox"> @@ -275,8 +267,8 @@ <div class="type">选择单元</div> <div class="type-select"> <el-select size="small" v-model="unitValue" placeholder="请选择" @change="chooseUnit"> <el-option v-for="item in unitOptions" :key="item.value" :label="item.label" :value="item.value" class="unit-option"></el-option> <el-option v-for="item in unitOptions" :key="item.value" :label="item.label" :value="item.value" class="unit-option"></el-option> </el-select> </div> </div> @@ -301,8 +293,7 @@ </div> </div> --> <el-main v-loading="pictLoading" element-loading-background="rgba(0, 0, 0, 0.5)" element-loading-text="数据正在加载中" element-loading-spinner="el-icon-loading" class="resident-box"> element-loading-text="数据正在加载中" element-loading-spinner="el-icon-loading" class="resident-box"> <div class="floor-outBox"> <div @click="lastFloorBtn" class="floorBtn" v-show="lastFloorShow"> <i class="el-icon-caret-left"></i> @@ -328,12 +319,10 @@ </div> </div> <div class="floor-detail" v-show="!pictLoading && isHaveResidentData"> <div v-for="(item, index) in unitChoosedArr.slice((floorsType - 1) * 5, floorsType * 5)" :key="index"> <div v-for="(item, index) in unitChoosedArr.slice((floorsType - 1) * 5, floorsType * 5)" :key="index"> <div class="title">{{ item.sname }}层:</div> <div class="detail"> <div v-for="(value, index) in item.children_infos" :key="index" @click="residentDetailsClick(value)" <div v-for="(value, index) in item.children_infos" :key="index" @click="residentDetailsClick(value)" :class="{ on: floorChoosed == value.sname }">{{ value.sname }}室 <div class="flow" @@ -353,27 +342,24 @@ v-show="subNavType == 2"> <el-table :data="comeOutData" style="width: 100%" :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" @row-click="deepDataRowClick($event, 'comeOut')" :empty-text="houseDeepNoDataText" v-loading="houseDeepLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)"> <el-table-column prop="name" label="名称" width="180" :show-overflow-tooltip="true"></el-table-column> :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" @row-click="deepDataRowClick($event, 'comeOut')" :empty-text="houseDeepNoDataText" v-loading="houseDeepLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)"> <el-table-column prop="name" label="名称" width="180" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="x" label="经度" width="100"></el-table-column> <el-table-column prop="y" label="纬度" width="100"></el-table-column> </el-table> </div> <div class="park-content" :class="{ 'come-out-content-long': !isShowHouseInfoBox }" v-show="subNavType == 3"> <div class="park-content" :class="{ 'come-out-content-long': !isShowHouseInfoBox }" v-show="subNavType == 3"> <el-table :data="parkingLotData" style="width: 100%" :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" @row-click="deepDataRowClick($event, 'park')" :empty-text="houseDeepNoDataText" v-loading="houseDeepLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)"> <el-table-column prop="name" label="名称" width="180" :show-overflow-tooltip="true"></el-table-column> :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" @row-click="deepDataRowClick($event, 'park')" :empty-text="houseDeepNoDataText" v-loading="houseDeepLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)"> <el-table-column prop="name" label="名称" width="180" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="x" label="经度" width="100"></el-table-column> <el-table-column prop="y" label="纬度" width="100"></el-table-column> </el-table> @@ -383,12 +369,11 @@ v-show="subNavType == 4"> <el-table :data="businessData" style="width: 100%" :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" @row-click="deepDataRowClick($event, 'business')" @sort-change="sortDevName" :empty-text="houseDeepNoDataText" v-loading="houseDeepLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)" :show-overflow-tooltip="true" @cell-mouse-enter="businessMouseEnter" @cell-mouse-leave="businessMouseLeave"> :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" @row-click="deepDataRowClick($event, 'business')" @sort-change="sortDevName" :empty-text="houseDeepNoDataText" v-loading="houseDeepLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)" :show-overflow-tooltip="true" @cell-mouse-enter="businessMouseEnter" @cell-mouse-leave="businessMouseLeave"> <el-table-column sortable="custom" prop="placeName" label="场所名称" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="labelName" label="场所类型"></el-table-column> @@ -397,16 +382,15 @@ </div> <div class="police-info" v-if="navType == 1" ref="policeTableBox"> <el-main v-loading="policeInfoLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)"> <el-main v-loading="policeInfoLoading" element-loading-text="拼命加载中" element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.5)"> <div class="select-type"> <el-date-picker :clearable="false" v-model="eventTime" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="caseTimeChange" :picker-options="pickerOptions"></el-date-picker> <el-select v-model="typeValue" @change="changeJQType" placeholder="请选择" class="type-select-css"> <el-option v-for="item in policeInforOptions" :key="item.value" :label="item.label" :value="item.value" class="option-css"></el-option> <el-date-picker :clearable="false" v-model="eventTime" type="daterange" align="right" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="caseTimeChange" :picker-options="pickerOptions"></el-date-picker> <el-select v-model="typeValue" @change="changeJQType" placeholder="请选择" class="type-select-css"> <el-option v-for="item in policeInforOptions" :key="item.value" :label="item.label" :value="item.value" class="option-css"></el-option> </el-select> </div> <div class="jq-tab"> @@ -416,29 +400,25 @@ <div v-show="jqType == 0"> <el-table :data="callPoliceData" style="width: 100%" :height="currentTableHeight" :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" :empty-text="jqNoDataText" class="police-infor-table" @cell-click="housingPoliceSiteClick"> :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75' }" :row-class-name="tableRowClassName" :empty-text="jqNoDataText" class="police-infor-table" @cell-click="housingPoliceSiteClick"> <el-table-column prop="JJDWMC" :show-overflow-tooltip="true" label="接警单位" min-width="80%"></el-table-column> <el-table-column label="报警时间" prop="BJSJ" min-width="50%"></el-table-column> <el-table-column prop="jqlxName" :show-overflow-tooltip="true" label="报警类型"></el-table-column> <el-table-column prop="jqlxName" :show-overflow-tooltip="true" label="报警类型"></el-table-column> <el-table-column label="操作" align="center" min-width="36%"> <template slot-scope="scope"> <el-button v-if="!whetherPosition(scope.row)" @click="clickData(scope.row)" type="text" size="small" title="定位"> <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i> <el-button v-if="!whetherPosition(scope.row)" @click="clickData(scope.row)" type="text" size="small" title="定位"> <i class="el-icon-location" :style="{ color: positionColor(scope.row) }"></i> </el-button> </template> </el-table-column> </el-table> <div class="pages all-pagination-sty" ref="ElPagination"> <el-pagination background layout="prev, pager, next" :page-size="callPolicePage.pageSize" :page-count="callPolicePage.count" :current-page="callPolicePage.currentPage" <el-pagination background layout="prev, pager, next" :page-size="callPolicePage.pageSize" :page-count="callPolicePage.count" :current-page="callPolicePage.currentPage" @current-change="handleCurrentChange"></el-pagination> </div> </div> @@ -483,8 +463,7 @@ <map-search-box></map-search-box> <el-dialog title="报警信息" :visible.sync="policeSituationVisible" :modal-append-to-body="false" :modal="true" :close-on-click-modal="false" :before-close="policeSituationBeforeClose" class="policeSituation-details-box"> :close-on-click-modal="false" :before-close="policeSituationBeforeClose" class="policeSituation-details-box"> <div class="box"> <div class="item"> <div>接警单位编号:</div> @@ -560,16 +539,14 @@ <div class="table-box"> <div class="type-tab-box"> <div v-for="(item, index) in menuList" :key="index"> <div v-if="item.isHover" class="tab-item" :class="{ 'tab-choose-item': hushiPeoTy == item.value }" <div v-if="item.isHover" class="tab-item" :class="{ 'tab-choose-item': hushiPeoTy == item.value }" @click="hushiPeoTyClick(item.value)"> {{ item.label }}</div> </div> </div> <div v-if="hushiPeoTy == 5" class="pay-info-box"> <employees :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="employees"> <employees :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="employees"> </employees> </div> @@ -579,20 +556,17 @@ </div> <div v-if="hushiPeoTy == 7" class="pay-info-box"> <antiFraud :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="antiFraud"> <antiFraud :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="antiFraud"> </antiFraud> </div> <div v-if="hushiPeoTy == 8" class="pay-info-box"> <scanCodeAlarm :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="scanCodeAlarm"> <scanCodeAlarm :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="scanCodeAlarm"> </scanCodeAlarm> </div> <div v-if="hushiPeoTy == 10" class="pay-info-box"> <rentalHouse :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="rentalHouse"> <rentalHouse :residentIdSave="residentIdSave" :residentDetailsType="residentDetailsType" ref="rentalHouse"> </rentalHouse> </div> @@ -847,9 +821,8 @@ <el-table-column prop="areaName" label="所属责任区"></el-table-column> </el-table> <div class="pages all-pagination-sty" ref="tablePagination" v-show="!keyPeopleLoading"> <el-pagination background layout="prev, pager, next" :page-size="peoplePage.pageSize" :total="peoplePage.total" :current-page="peoplePage.currentPage" @current-change="peopleHandleCurrentChange"></el-pagination> <el-pagination background layout="prev, pager, next" :page-size="peoplePage.pageSize" :total="peoplePage.total" :current-page="peoplePage.currentPage" @current-change="peopleHandleCurrentChange"></el-pagination> </div> </el-main> </el-dialog> @@ -942,6 +915,7 @@ data () { return { currentVillageId: '', isShowPayInfo: false, isShowHouseInfoBox: true, typeValue: '', @@ -1676,43 +1650,72 @@ current.id, "1|3" ) // 当前选中的小区id this.currentVillageId = current.id this.getVillageInfo(current.id) this.$refs.searchTreeInput.blur() this.searchLazyFlag = true }, navClick (e) { if (this.navType == e.target.dataset.type) return this.jqType = 0 this.navType = e.target.dataset.type this.$store.commit('SET_HOUSEDEEPDATAPOPUP', false) this.$EventBus.$emit("mapClearLayer", { layerName: "deepDataLayer", type: "VectorLayer", }) if (this.navType == 1) { this.policeInfoLoading = true this.jqNoDataText = ' ' this.callPolicePage.currentPage = 1 this.callPoliceData = [] this.eventTime = this.getHalfYearTime() this.eventTimeArr = this.eventTime this.getAlarmList() } else { async onClickChangeHandle (current) { // if (current.hasChildren == true || current.type != 3) return this.isShowHouseBox = false this.$EventBus.$emit("clearHouse3D") this.filterText = "" this.prop = current.name if (current.type == 3) { this.searchTreeName = current.name } if (circleLayer && circleLayer != null && circleLayer != undefined) { circleLayer.clear() circleLayer.remove() circleLayer = null } }, this.subNavType = 1 this.comeOutData = [] this.parkingLotData = [] this.businessData = [] try { // 等待搜索面详细数据加载完成 await this.getSearchExtensivelyBgAoiDeepdata( "81503dad589f42bf9a9e5ea5e017f329", "361121", current.id, "1|3" ) // 当前选中的小区id this.currentVillageId = current.id // 等待小区信息加载完成 await new Promise(resolve => { this.getVillageInfo(current.id) // 使用 $nextTick 确保 DOM 更新完成 this.$nextTick(() => { resolve() }) }) this.$refs.searchTreeInput.blur() this.searchLazyFlag = true } catch (error) { console.error('onClickChangeHandle error:', error) // 可以在这里添加错误处理逻辑 } } , // 大搜之搜索面详细数据(停车场出入口商场、 小区名称类型地址、楼栋数据) getSearchExtensivelyBgAoiDeepdata (ak, region, ids, infos) { async getSearchExtensivelyBgAoiDeepdata (ak, region, ids, infos) { this.villageInfoLoading = true this.BuildListLoading = true this.buildingList = [] getSearchExtensivelyBgAoiDeepdata(ak, region, ids, infos).then((res) => { try { const res = await getSearchExtensivelyBgAoiDeepdata(ak, region, ids, infos) let baseUrl if (process.env.NODE_ENV == "development") { // 开发 @@ -1779,10 +1782,7 @@ this.unitChoosedArr = [] // 小区楼栋数据 if ( res.data.result[0].children_infos && res.data.result[0].children_infos.length ) { if (res.data.result[0].children_infos && res.data.result[0].children_infos.length) { console.log('search---building', res.data.result[0].children_infos) console.log('search---building', res.data.result[0].children_infos[0].exttype == 'building') if (res.data.result[0].children_infos[0].exttype == 'building') { @@ -1862,21 +1862,52 @@ this.floorInfo.house_num = houseCount this.isHaveResidentData = true }) } } this.callPolicePage.currentPage = 1 this.getAlarmList() }).catch(res => { // 返回 resolved promise 表示完成 return Promise.resolve() } catch (error) { setTimeout(() => { this.villageInfoLoading = false this.BuildListLoading = false this.isHaveResidentData = false }, 500) }) // 抛出错误供调用者处理 throw error } }, navClick (e) { if (this.navType == e.target.dataset.type) return this.jqType = 0 this.navType = e.target.dataset.type this.$store.commit('SET_HOUSEDEEPDATAPOPUP', false) this.$EventBus.$emit("mapClearLayer", { layerName: "deepDataLayer", type: "VectorLayer", }) if (this.navType == 1) { this.policeInfoLoading = true this.jqNoDataText = ' ' this.callPolicePage.currentPage = 1 this.callPoliceData = [] this.eventTime = this.getHalfYearTime() this.eventTimeArr = this.eventTime this.getAlarmList() } else { circleLayer.clear() circleLayer.remove() circleLayer = null } }, // 楼栋单元楼层户室查询--大搜 getUnitHousesData (ak, region, ids, infos, buildId) { @@ -2600,7 +2631,9 @@ }, // 获取包干民警、所属辖区 // 获取包干民警、所属辖区 getVillageInfo (aoiId) { return new Promise((resolve, reject) => { getVillageInfo(aoiId).then((res) => { this.getResidentialQuartersInfo(res.data.data.md5Id, "361102") this.villageInfo.policeName = res.data.data.policeName @@ -2617,8 +2650,14 @@ this.villageInfo.unexaminedNumber = res.data.data.unexaminedNumber this.villageInfo.verifiedNumber = res.data.data.verifiedNumber this.villageInfo.busTotalNumber = res.data.data.busTotalNumber resolve(res) }).catch(error => { reject(error) }) }, }) } , // 重点人口户籍人口 getVillagePersonStatisticInfoByBuildId (params) { @@ -2811,7 +2850,7 @@ }, // 大搜点查询 getAoiByPtStd (e) { async getAoiByPtStd (e) { getAoiByPt( e.wgs84Position.lng, e.wgs84Position.lat, @@ -2827,6 +2866,14 @@ "", bgId ).then((res) => { // 判断选择的小区和当前小区是否相同的,不同则需要调用选中接口 if (this.currentVillageId != res.data.result[0].std_addr_id.split("|")[0]) { let current = { id: res.data.result[0].aoiId, name: res.data.result[0].aoi, } this.onClickChangeHandle(current) } let chooseBuildItem = [] this.buildingList.forEach((item) => { if (item.build_std_addr_id == res.data.result[0].std_addr_id.split("|")[1]) { src/views/policeAlarmRecordsManage/index.vue
@@ -252,8 +252,11 @@ // 点击定位 rowClick (row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.longitude, row.latitude)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.longitude, row.latitude)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.longitude, row.latitude)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.longitude, row.latitude)[1] let lng = row.longitude let lat = row.latitude this.$EventBus.$emit('toPosition', { siteJd: lng, src/views/positionManage/index.vue
@@ -218,8 +218,11 @@ // 点击定位 rowClick (row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit('toPosition', { siteJd: lng, src/views/practitionersManage/index.vue
@@ -17,8 +17,8 @@ <div class="search-item-box"> <span>关键字:</span> <el-input style="flex: 1;" size="small" placeholder="请输入(姓名、联系电话、工作场所)" v-model="keyword" @change="searchChange" clearable></el-input> <el-input style="flex: 1;" size="small" placeholder="请输入(姓名、联系电话、工作场所)" v-model="keyword" @change="searchChange" clearable></el-input> </div> <div class="search-item-box" style="justify-content: center;"> @@ -216,8 +216,11 @@ // 点击定位 rowClick (row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit('toPosition', { siteJd: lng, src/views/rentalInfo/index.vue
@@ -2,8 +2,7 @@ <div class="site-page-home police-page container"> <div v-show="boxShow" class="container-content rentall-info-box" ref="containerContent"> <div class="tab"> <div v-for="(item, index) in tabList" :key="index" @click="changeTab(item)" :class="{ on: chooseTab == item }"> <div v-for="(item, index) in tabList" :key="index" @click="changeTab(item)" :class="{ on: chooseTab == item }"> {{ item }}</div> </div> <div class="list-container"> @@ -11,8 +10,8 @@ <div class="search-item-box" v-if="chooseTab != '出租屋管理'"> <span>关键字:</span> <el-input style="flex: 1;" size="small" placeholder="请输入(姓名或联系电话)" v-model="keyword" @change="searchChange" clearable></el-input> <el-input style="flex: 1;" size="small" placeholder="请输入(姓名或联系电话)" v-model="keyword" @change="searchChange" clearable></el-input> </div> <div class="search-item-box" v-if="chooseTab == '出租屋管理'"> @@ -29,8 +28,7 @@ <span>租赁期限:</span> <el-select v-model="dldType" clearable placeholder="请选择租赁期限" @change="changeSelect"> <el-option v-for="item in dldTypeList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"> <el-option v-for="item in dldTypeList" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"> </el-option> </el-select> </div> @@ -49,16 +47,16 @@ :header-cell-style="{ 'text-align': 'center', 'background-color': '#203c60', 'borderColor': '#324e75' }" :cell-style="{ 'text-align': 'center', 'borderColor': '#324e75', 'cursor': 'default' }" :row-class-name="tableRowClassName" class="police-infor-table"> <el-table-column prop="name" :show-overflow-tooltip="true" label="名称" v-if="chooseTab == '居住证申请'" :key="Math.random()"></el-table-column> <el-table-column prop="phone" :show-overflow-tooltip="true" label="联系电话" v-if="chooseTab == '居住证申请'" :key="Math.random()"></el-table-column> <el-table-column prop="address" :show-overflow-tooltip="true" label="地址" v-if="chooseTab == '居住证申请'" :key="Math.random()"></el-table-column> <el-table-column prop="houseName" :show-overflow-tooltip="true" label="房屋" v-if="chooseTab == '出租屋管理'" :key="Math.random()"></el-table-column> <el-table-column prop="rentalUse" :show-overflow-tooltip="true" label="用途" v-if="chooseTab == '出租屋管理'" :key="Math.random()"> <el-table-column prop="name" :show-overflow-tooltip="true" label="名称" v-if="chooseTab == '居住证申请'" :key="Math.random()"></el-table-column> <el-table-column prop="phone" :show-overflow-tooltip="true" label="联系电话" v-if="chooseTab == '居住证申请'" :key="Math.random()"></el-table-column> <el-table-column prop="address" :show-overflow-tooltip="true" label="地址" v-if="chooseTab == '居住证申请'" :key="Math.random()"></el-table-column> <el-table-column prop="houseName" :show-overflow-tooltip="true" label="房屋" v-if="chooseTab == '出租屋管理'" :key="Math.random()"></el-table-column> <el-table-column prop="rentalUse" :show-overflow-tooltip="true" label="用途" v-if="chooseTab == '出租屋管理'" :key="Math.random()"> <template slot-scope="scope"> <div v-if="scope.row.rentalUse == 1">仓库</div> <div v-if="scope.row.rentalUse == 2">办公</div> @@ -66,18 +64,18 @@ <div v-if="scope.row.rentalUse == 4">居住</div> </template> </el-table-column> <el-table-column prop="houseStatus" :show-overflow-tooltip="true" label="房屋状态" v-if="chooseTab == '出租屋管理'" :key="Math.random()"> <el-table-column prop="houseStatus" :show-overflow-tooltip="true" label="房屋状态" v-if="chooseTab == '出租屋管理'" :key="Math.random()"> <template slot-scope="scope"> <div>{{ scope.row.houseStatus == 1 ? '部分出租' : '全部出租' }}</div> </template> </el-table-column> <el-table-column prop="name" :show-overflow-tooltip="true" label="名称" v-if="chooseTab == '租客管理'" :key="Math.random()"></el-table-column> <el-table-column prop="idCard" :show-overflow-tooltip="true" label="身份证号" v-if="chooseTab == '租客管理'" :key="Math.random()"></el-table-column> <el-table-column prop="phoneNumber" :show-overflow-tooltip="true" label="手机号" v-if="chooseTab == '租客管理'" :key="Math.random()"></el-table-column> <el-table-column prop="idCard" :show-overflow-tooltip="true" label="身份证号" v-if="chooseTab == '租客管理'" :key="Math.random()"></el-table-column> <el-table-column prop="phoneNumber" :show-overflow-tooltip="true" label="手机号" 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)" @@ -92,9 +90,8 @@ </el-table> <div class="pages all-pagination-sty" ref="tablePagination"> <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange"></el-pagination> <el-pagination background layout="prev, pager, next" :page-size="pages.pageSize" :total="pages.total" :pager-count="4" :current-page="pages.currentPage" @current-change="handleCurrentChange"></el-pagination> </div> </div> </div> @@ -252,8 +249,11 @@ // 点击定位 rowClick (row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit('toPosition', { siteJd: lng, src/views/scanOrCode/index.vue
@@ -18,8 +18,7 @@ <span>登记类型:</span> <el-select style="flex: 1;" size="small" v-model="typeValue" @change="typeChange" placeholder="请选择"> <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value"></el-option> <el-option v-for="item in typeOptions" :key="item.value" :label="item.label" :value="item.value"></el-option> </el-select> </div> @@ -565,8 +564,10 @@ // 点击定位 rowClick (row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.x, row.y)[1] let lng = row.x let lat = row.y this.$EventBus.$emit('toPosition', { siteJd: lng, src/views/site/index.vue
@@ -19,16 +19,15 @@ <el-select clearable style="flex: 1;" size="small" v-model="typeValue" @change="typeChange" placeholder="请选择场所类型"> <el-option v-for="item in typeOptions" :key="item.key" :label="item.title" :value="item.key"></el-option> <el-option v-for="item in typeOptions" :key="item.key" :label="item.title" :value="item.key"></el-option> </el-select> </div> <div class="search-item-box"> <span>场所名称:</span> <el-input style="flex: 1;" size="small" placeholder="请输入场所名称" v-model="placeName" @change="searchChange" clearable></el-input> <el-input style="flex: 1;" size="small" placeholder="请输入场所名称" v-model="placeName" @change="searchChange" clearable></el-input> </div> <div class="search-item-box" style="justify-content: center;"> @@ -36,24 +35,21 @@ <el-button @click="clearRow" icon="el-icon-delete" class="bjnr-btn">清除</el-button> </div> <div class="search-item-box" style="overflow-wrap: break-word;"> <el-button @click="filterBtn(1)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">有隐患场所({{ <el-button @click="filterBtn(1)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">有隐患场所({{ yhcsNum ? yhcsNum : '0' }})隐患总数({{ yhNum ? yhNum : '0' }})</el-button> </div> <div class="search-item-box" style="overflow-wrap: break-word;"> <el-button @click="filterBtn(2)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">已整改场所({{ <el-button @click="filterBtn(2)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">已整改场所({{ yzgcsNum ? yzgcsNum : '0' }})已整改隐患({{ yzgyhNum ? yzgyhNum : '0' }})</el-button> </div> <div class="search-item-box" style="overflow-wrap: break-word;"> <el-button @click="filterBtn(3)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">未整改场所({{ <el-button @click="filterBtn(3)" class="bjnr-btn" :class="{ isOneClick: criminalRecordFlag == 1 }">未整改场所({{ wzgcsNum ? wzgcsNum : '0' }})未整改隐患({{ wzgyhNum ? wzgyhNum : @@ -84,8 +80,7 @@ <div class="pages all-pagination-sty" ref="tablePagination"> <el-pagination background layout="prev, pager, next" :page-size="pages.size" :total="pages.total" :pager-count="4" :current-page="pages.current" @current-change="handleCurrentChange"></el-pagination> :pager-count="4" :current-page="pages.current" @current-change="handleCurrentChange"></el-pagination> </div> </div> @@ -362,8 +357,10 @@ // 点击定位 rowClick (row) { let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] // let lng = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[0] // let lat = global.DC.CoordTransform.GCJ02ToWGS84(row.lng, row.lat)[1] let lng = row.lng let lat = row.lat this.$EventBus.$emit('toPosition', { siteJd: lng,