jiangping
2025-03-03 3a11109642961896bd5ae64ead123cf1a31e5216
admin/src/views/platform/platform.vue
@@ -1,7 +1,8 @@
<template>
  <TableLayout :permissions="['business:platform:query']">
    <!-- 搜索表单 -->
    <SearchFormCollapse slot="search-form" :need-more="false">
    <div ref="QueryFormRef" slot="search-form">
      <SearchFormCollapse  :need-more="false">
      <el-form ref="searchForm" :model="searchForm" label-width="100px" inline>
        <el-form-item label="" prop="name">
          <el-input v-model="searchForm.name" clearable placeholder="请输入月台名称"
@@ -19,6 +20,7 @@
        <!-- </section> -->
      </el-form>
    </SearchFormCollapse>
    </div>
    <!-- 表格和分页 -->
    <template v-slot:table-wrap>
      <ul class="toolbar" v-permissions="['business:hksync:platforms']">
@@ -27,7 +29,7 @@
        <li><el-button type="primary" :loading="working1" @click="syncStatus" icon="el-icon-plus"
            v-permissions="['business:hksync:platforms']">同步实时状态</el-button></li>
      </ul>
      <el-table v-loading="isWorking.search" :data="tableData.list" stripe @selection-change="handleSelectionChange">
      <el-table :max-height="tableHeight" v-loading="isWorking.search" :data="tableData.list" stripe @selection-change="handleSelectionChange">
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column prop="name" label="月台名称" fixed min-width="100px"></el-table-column>
        <el-table-column prop="code" label="月台编码" fixed min-width="100px"></el-table-column>
@@ -110,6 +112,11 @@
    this.search()
    this.loadGroupList()
  },
  mounted() {
    this.$nextTick(() => {
      this.tableHeight = document.body.scrollHeight - this.$refs.QueryFormRef.offsetHeight - 300
    })
  },
  methods: {
    loadGroupList() {
      allList({})