xiangpei
2024-03-24 4487fbf1c128a877108b2add0f2d4897c573bf53
src/views/education/department/list.vue
@@ -37,7 +37,7 @@
      :visible.sync="dialogVisible"
      width="400px"
      :before-close="handleClose">
      <el-select v-model="updateAdminForm.adminId" filterable placeholder="选择管理员">
      <el-select v-model="updateAdminForm.adminId" @change="changSelect" filterable placeholder="选择管理员">
        <el-option
          v-for="item in deptUserList"
          :key="item.id"
@@ -67,7 +67,10 @@
      deptUserList: [],
      dialogVisible: false,
      title: '',
      updateAdminForm: {},
      updateAdminForm: {
        id: null,
        adminId: null
      },
      depart: [],
      queryParam: {
        level: null,
@@ -83,6 +86,9 @@
    this.search()
  },
  methods: {
    changSelect( value ) {
      this.updateAdminForm.adminId = value
    },
    handleClose () {
      this.dialogVisible = false
      this.title = ''