odc.xiaohui
2023-07-05 820fdb2db321c699568a54e8e3d7bb8f5c657b7f
src/views/education/department/list.vue
@@ -38,10 +38,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 +66,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 () {