/* 
  等级列表
  author: zsy
  date: 2024-6-9
*/
<template>
  <div class="level-list">
    <el-table :data="tableData" style="width: 100%">
      <el-table-column type="index" > </el-table-column>
      <el-table-column prop="jrid" label="等级ID" > </el-table-column>
      <el-table-column prop="levelname" label="等级名称" > </el-table-column>
    </el-table>
  </div>
</template>

<script>
import {getLevel} from "@/api/level"
export default {
  data() {
    return {
      tableData: [],
    };
  },
  methods: {
    /* 获取等级列表 */
    getLevelList(){
      getLevel().then((res)=>{
        console.log(res.data)
        this.tableData = res.data
      })
    }
  },
  created(){
    this.getLevelList()
  }
};
</script>

<style scoped>
  .level-list{
    width: 60%;
    margin: 130px auto 0
  }
</style>