| | |
| | | export const getResidentialQuartersInfo = (area_id, adcode) => { |
| | | return request({ |
| | | url: '/sf3d/area/info', |
| | | // url: '/data/getResidentialQuartersInfo.json', |
| | | // url: '/data/5.json', |
| | | method: 'get', |
| | | authorization: false, |
| | | requestBaseUrl: 'fengt', |
| | |
| | | return request({ |
| | | url: '/sf3d/area/getAoiByPt', |
| | | // url: '/sf3d/area/stdgetAoiByPt', |
| | | // url: '/data/getAoiByBgId.json', |
| | | // url: '/data/getAoiByBgId2.json', |
| | | method: 'get', |
| | | authorization: false, |
| | | requestBaseUrl: 'fengt', |
| | |
| | | return request({ |
| | | // url: '/sf3d/build/houses', |
| | | url: '/sf3d/build/stdhouses', |
| | | // url: '/data/huafu15d.json', |
| | | // url: '/data/huafu15d2.json', |
| | | method: 'get', |
| | | authorization: false, |
| | | requestBaseUrl: 'fengt', |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | /** |
| | | * 查询单元 |
| | | * @param {*} adcode |
| | | * @returns |
| | | */ |
| | | export const getBuildAndUnitInfo = (buildId, latitude, longitude) => { |
| | | return request({ |
| | | url: '/api/blade-buildInfo/buildInfo/buildAndUnitInfo', |
| | | method: 'get', |
| | | params: { |
| | | buildId, |
| | | latitude, |
| | | longitude |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const get3dTiles = (params) => { |
| | | return request({ |
| | | url: '/shangrao-3d-upload/model/list', |
| | |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | | } |
| | |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2025-07-07 18:31:44 |
| | | * @FilePath: \srs-police-affairs\src\components\map\index.vue |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | | --> |
| | | <template> |
| | | <div class="viewer-box" id="viewer-container" @click="showImgBtn = false"> |
| | |
| | | window.TILESET_LABEL.forEach((item) => { |
| | | this.addMxTileset( |
| | | `sdTilesetLayer${item.name}`, |
| | | // `./model/${item.name}/tileset.json`, |
| | | `${tile3DUrl}/sf3d/361102/model/all/${item.name}/tileset.json`, |
| | | item |
| | | ) |
| | |
| | | 'background-color': '#203c60', |
| | | borderColor: '#324e75', |
| | | }" :cell-style="{ |
| | | 'text-align': 'center', |
| | | borderColor: '#324e75', |
| | | cursor: 'default', |
| | | }"> |
| | | 'text-align': 'center', |
| | | borderColor: '#324e75', |
| | | cursor: 'default', |
| | | }"> |
| | | <template slot="empty"> |
| | | <div>{{ landEmptyText }}</div> |
| | | </template> |
| | |
| | | <el-table-column prop="smallCategory" :show-overflow-tooltip="true" label="场所类型"></el-table-column> |
| | | <el-table-column prop="responsibilityArea" :show-overflow-tooltip="true" label="所属责任区"></el-table-column> |
| | | <el-table-column prop="responsiblePolice" :show-overflow-tooltip="true" label="责任民警"></el-table-column> |
| | | <el-table-column prop="businessStatus" :show-overflow-tooltip="true" label="营业状态"></el-table-column> |
| | | <!-- <el-table-column prop="businessStatus" :show-overflow-tooltip="true" label="营业状态"></el-table-column> |
| | | <el-table-column prop="remark" label="简介"></el-table-column> --> |
| | | <el-table-column :label="getColumnLabel()" :show-overflow-tooltip="true"> |
| | | <template slot-scope="scope"> |
| | | <span v-if="shouldShowBusinessStatus(scope.row.mediumCategory)"> |
| | | {{ scope.row.remark }} |
| | | </span> |
| | | <span v-else> |
| | | {{ scope.row.businessStatus }} |
| | | </span> |
| | | </template> |
| | | </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)" |
| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | // 判断是否应该显示营业状态 |
| | | shouldShowBusinessStatus (mediumCategory) { |
| | | // 根据mediumCategory判断是否显示营业状态 |
| | | // 这里可以根据实际业务需求调整判断条件 |
| | | const showBusinessStatusCategories = ['宗教场所'] |
| | | return showBusinessStatusCategories.includes(mediumCategory) |
| | | }, |
| | | |
| | | // 获取列标题 |
| | | getColumnLabel () { |
| | | // 可以根据实际需求调整判断逻辑 |
| | | // 方法1: 根据第一条数据判断 |
| | | if (this.tableData.length > 0) { |
| | | return this.shouldShowBusinessStatus(this.tableData[0].mediumCategory) ? '简介' : '营业状态' |
| | | } |
| | | |
| | | // 默认返回简介 |
| | | return '营业状态' |
| | | }, |
| | | |
| | | // 点击定位 |
| | | rowClick (row) { |
| | | this.landBeforeClose() |