qirong
2023-11-28 d44a2361fa5173f0421ec05921bde28d59614d45
src/views/education/department/list.vue
@@ -16,7 +16,6 @@
    </el-form>
    <el-table v-loading="listLoading" :data="tableData" border fit highlight-current-row style="width: 100%">
      <el-table-column prop="id" label="Id" />
      <el-table-column prop="name" label="部门"/>
<!--      <el-table-column prop="levelName" label="部门" />-->
      <el-table-column width="220px" label="操作" align="center">
@@ -38,10 +37,12 @@
import Pagination from '@/components/Pagination'
import subjectApi from '@/api/subject'
import departmentApi from '@/api/department'
import enumItem from '@/store/modules/enumItem'
export default {
  components: { Pagination },
  data () {
    return {
      depart:[],
      queryParam: {
        level: null,
        pageIndex: 1,
@@ -64,6 +65,15 @@
        this.total = re.total
        this.queryParam.pageIndex = re.pageNum
        this.listLoading = false
        this.depart = data.response.list
        console.log(this.depart)
        this.depart.map(item=>{
          item.key = item.id
          item.value = item.name
        })
        enumItem.state.user.levelEnum = this.depart
      })
    },
    submitForm () {