linwe
2025-12-23 a98dafa7872c4fb0db736b2a7638fbd88d6d9e29
经开分局优化------大改动
4 files modified
7690 ■■■■ changed files
src/api/dept/index.js 26 ●●●● patch | view | raw | blame | history
src/components/map/index.vue 7 ●●●●● patch | view | raw | blame | history
src/views/home/components/dialog/otherPlaceDetailsBox.vue 41 ●●●● patch | view | raw | blame | history
src/views/house/index.vue 7616 ●●●● patch | view | raw | blame | history
src/api/dept/index.js
@@ -47,7 +47,7 @@
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',
@@ -69,7 +69,7 @@
  return request({
    url: '/sf3d/area/getAoiByPt',
    // url: '/sf3d/area/stdgetAoiByPt',
    // url: '/data/getAoiByBgId.json',
    // url: '/data/getAoiByBgId2.json',
    method: 'get',
    authorization: false,
    requestBaseUrl: 'fengt',
@@ -111,7 +111,7 @@
  return request({
    // url: '/sf3d/build/houses',
    url: '/sf3d/build/stdhouses',
    // url: '/data/huafu15d.json',
    // url: '/data/huafu15d2.json',
    method: 'get',
    authorization: false,
    requestBaseUrl: 'fengt',
@@ -143,6 +143,24 @@
    }
  })
}
/**
 * 查询单元
 * @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',
@@ -461,4 +479,4 @@
    method: 'get',
    params
  })
}
}
src/components/map/index.vue
@@ -4,9 +4,9 @@
 * @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">
@@ -883,6 +883,7 @@
          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
            )
src/views/home/components/dialog/otherPlaceDetailsBox.vue
@@ -17,10 +17,10 @@
          '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>
@@ -36,7 +36,18 @@
          <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)"
@@ -119,6 +130,26 @@
    },
  },
  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()
src/views/house/index.vue
Diff too large