liuchengxin
2022-05-27 d138b7df8fa97dc7ed6b07acdfef804ebb186a74
src/views/components/building/buildList.vue
@@ -20,13 +20,14 @@
        ref="singleTable"
        v-loading="loading"
        :data="buildingList"
        height="50vh"
        row-key="id"
        default-expand-all
        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
        highlight-current-row
        @current-change="handleCurrentChange"
    >
      <el-table-column label="单元名称" align="center" prop="name"/>
      <el-table-column label="单元名称" align="left" prop="name"/>
      <el-table-column label="单元编号" prop="code"/>
      <el-table-column label="显示顺序" align="center" prop="orderNum"/>
    </el-table>
@@ -73,10 +74,8 @@
      currentRow: undefined
    };
  },
  watch: {
    'schoolId': function (v) {
      this.getList()
    }
  mounted() {
    this.getList()
  },
  methods: {
    /** 查询建筑单元列表 */