智慧园区前端大屏
shuishen
2024-12-18 9a37c5e1b2190c3f6ec71483923922189091dd52
src/views/rs/components/box/dataContent.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2023-03-13 14:54:26
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-11-27 14:26:33
 * @LastEditTime: 2024-12-03 13:23:57
 * @FilePath: \bigScreen\src\views\rs\components\box\dataContent.vue
 * @Description: 
 * 
@@ -44,6 +44,10 @@
    {
      label: '较大',
      value: 2
    },
    {
      label: '暂定',
      value: 9
    }
  ]
})
@@ -89,6 +93,7 @@
onMounted(() => {
  curTableHeight.value = TableContent.value.offsetHeight
  EventBus.emit('flyToyqfw', 'flyToyqfw')
  EventBus.emit('destroyPop', 'destroyPop')
})
// 分页改变
@@ -109,6 +114,11 @@
  })
    .then((res) => {
      const data = res.data.data
      data.records.forEach(item => {
        if (!item.riskLevelName) {
          item.riskLevelName = '暂定'
        }
      })
      tableData.value = data.records
      pages.total = data.total
      loading.value = false
@@ -125,6 +135,7 @@
let addPupoLayers = {}
// 行点击
function rowClick (row, column, event) {
  EventBus.emit('destroyPop', 'destroyPop')
  if (row.lng && row.lat) {
    window.$viewer.flyToPosition(new DC.Position(row.lng, row.lat, 600, 0, -90, 0))
    // 显示企业信息
@@ -133,7 +144,9 @@
    addPupoLayers[row.firmName] = new DC.HtmlLayer(row.firmName)
    window.$viewer.addLayer(addPupoLayers[row.firmName])
    let iconEl = `<div class="marsBlueGradientPnl">
            <li>${row.name || ''}</li>
            <li>企业名称:${row.firmName || ''}</li>
            <li>风险等级:${row.riskLevelName || ''}</li>
            <li>行业类别:${row.name || ''}</li>
            </div>`
    let divIcon = new DC.DivIcon(
      new DC.Position(row.lng, row.lat, row.ele || 64),