xiangpei
2024-09-03 16eb67ab6b103663d30cad9ba74360f982e131cb
自定义列显隐控制
3个文件已修改
51 ■■■■ 已修改文件
src/components/RightToolbar/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/data-manage/data-detail/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/data-manage/data-detail/list.js 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/RightToolbar/index.vue
@@ -7,7 +7,7 @@
      <el-tooltip class="item" effect="dark" content="刷新" placement="top">
        <el-button size="mini" circle icon="el-icon-refresh" @click="refresh()" />
      </el-tooltip>
      <el-tooltip class="item" effect="dark" content="自定义列" placement="top">
      <el-tooltip v-show="$route.path.includes('equipment')" class="item" effect="dark" content="自定义列" placement="top">
        <el-button size="mini" circle icon="el-icon-collection-tag" @click="addDynamicColumn()" />
      </el-tooltip>
      <el-tooltip class="item" effect="dark" content="显隐列" placement="top" v-if="columns">
@@ -115,7 +115,7 @@
    }
  },
  created() {
    if (this.$route.path.concat("equipment")) {
    if (this.$route.path.includes("equipment")) {
      this.getDyColumn()
    }
    if (this.showColumnsType == 'transfer') {
src/views/system/data-manage/data-detail/index.vue
@@ -84,7 +84,7 @@
    <div v-if="tableData.list && tableData.list.length >0">
      <el-table v-loading="loading" :data="tableData.list">
        <el-table-column :prop="item.prop" :label="item.label" v-for="(item, index) in tableHead" :key="index" v-if="item"/>
        <el-table-column :prop="item.prop" :label="item.label" :width="item.width" v-for="(item, index) in tableHead" :key="index" v-if="item"/>
      </el-table>
    </div>
    <el-empty v-else description="暂无数据"></el-empty>
src/views/system/data-manage/data-detail/list.js
@@ -650,17 +650,8 @@
        {
          "label": "行政区划编码",
          "align": "center",
          "prop": "arealayerPath"
        },
        {
          "label": "行政区划编码",
          "align": "center",
          "prop": "arealayerno"
        },
        {
          "label": "行政区划名称",
          "align": "center",
          "prop": "arealayerName"
          "prop": "arealayerPath",
          "width": 250
        },
        {
          "label": "解码状态码",
@@ -670,12 +661,14 @@
        {
          "label": "设备id",
          "align": "center",
          "prop": "deviceId"
          "prop": "deviceId",
          "width": 250
        },
        {
          "label": "设备名称",
          "align": "center",
          "prop": "deviceName"
          "prop": "deviceName",
          "width": 250
        },
        {
          "label": "icmp延迟",
@@ -691,7 +684,8 @@
          "label": "最近icmp时间",
          "align": "center",
          "prop": "icmpTime",
          "format": "yyyy-MM-dd HH:mm:ss"
          "format": "yyyy-MM-dd HH:mm:ss",
          "width": 200
        },
        {
          "label": "关键帧时延",
@@ -701,7 +695,8 @@
        {
          "label": "ip地址",
          "align": "center",
          "prop": "ipAddr"
          "prop": "ipAddr",
          "width": 150
        },
        {
          "label": "最近持续离线故障次数",
@@ -712,7 +707,8 @@
          "label": "最近持续离线故障时间",
          "align": "center",
          "prop": "olErrEverduringFirstTime",
          "format": "yyyy-MM-dd HH:mm:ss"
          "format": "yyyy-MM-dd HH:mm:ss",
          "width": 200
        },
        {
          "label": "累计离线故障次数",
@@ -722,7 +718,8 @@
        {
          "label": "累计离线故障率",
          "align": "center",
          "prop": "olErrTotalRate"
          "prop": "olErrTotalRate",
          "width": 80
        },
        {
          "label": "巡检次数",
@@ -747,17 +744,14 @@
        {
          "label": "省厅标签",
          "align": "center",
          "prop": "tagStr"
          "prop": "tagStr",
          "width": 200
        },
        {
          "label": "省厅标签列表",
          "align": "center",
          "prop": "tags"
        },
        {
          "label": "租户id",
          "align": "center",
          "prop": "tenantId"
          "prop": "tags",
          "width": 200
        },
        {
          "label": "视频流时延",
@@ -768,7 +762,8 @@
          "label": "视频质量检测时间",
          "align": "center",
          "prop": "vqdTime",
          "format": "yyyy-MM-dd HH:mm:ss"
          "format": "yyyy-MM-dd HH:mm:ss",
          "width": 200
        }
      ],
      card: [