智慧园区前端大屏
linwe
2024-11-19 940222bec16446d4b933fb7682ca4933fb520b4a
src/views/space/components/box/dataContent.vue
@@ -45,7 +45,7 @@
  total: 0,
}
function positionColor () {
function positionColor() {
  return (row) => {
    if (
      (row.X && row.X != 0) ||
@@ -60,7 +60,7 @@
  }
}
function positionDisabled () {
function positionDisabled() {
  return (row) => {
    if (
      (row.X && row.X != 0) ||
@@ -112,7 +112,7 @@
// 行点击
function rowClick (row) {
function rowClick(row) {
  // if (state.layer) {
  //   window.$viewer.removeLayer(state.layer)
@@ -139,7 +139,7 @@
// 查看详情
function goDetail (row) { }
function goDetail(row) { }
const searchBtn = (params) => {
  resetPage()
@@ -181,15 +181,14 @@
<template>
  <div class="w100 h0 flex-1 flex f-d-c">
    <global-search :options="options" @searchBtn="searchBtn" @resetBtn="resetBtn"
      ref="SeachBarCondition"></global-search>
    <global-search :options="options" @searchBtn="searchBtn" @resetBtn="resetBtn" ref="SeachBarCondition"></global-search>
    <div class="h0 flex-1 table-content" ref="TableContent">
      <el-table border :data="tableData" :height="curTableHeight" style="width: 100%" v-loading="loading">
        <el-table-column prop="name" label="名称" />
        <el-table-column prop="emergencySpaceType" label="类型" width="70" />
        <el-table-column prop="mainFuncName" label="作用" width="60" />
        <el-table-column width="60" label="操作" align="center">
        <el-table-column prop="emergencySpaceType" label="类型" width="130" />
        <el-table-column prop="mainFuncName" label="作用" width="70" />
        <el-table-column width="70" label="操作" align="center">
          <template #default="scope">
            <el-button link type="primary" size="small" :disabled="scope.row.lng == ''" @click="rowClick(scope.row)">
              定位