xiangpei
2024-07-08 154891cce3b3cce34c300a225a7a14e5a8893cf5
部门调动使用级联下拉
1个文件已修改
18 ■■■■ 已修改文件
src/views/user/student/list.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/user/student/list.vue
@@ -92,14 +92,13 @@
      :title="title"
      :visible.sync="dialogVisible"
      width="400px">
      <el-select v-model="examine.departmentId" multiple filterable placeholder="请选择部门">
        <el-option
          v-for="item in deptList"
          :key="item.id"
          :label="item.name"
          :value="item.id">
        </el-option>
      </el-select>
      <el-cascader
        clearable
        :disabled="this.$route.query.id"
        v-model="examine.departmentId"
        :options="deptList"
        :props="{ emitPath: false, multiple: true, value: 'id', label: 'name',  checkStrictly: true }"
      ></el-cascader>
      <el-input type="textarea" maxlength="100" show-word-limit :autosize="{ minRows: 4}" :rows="2" v-model="examine.reason" placeholder="请输入情况说明" style="margin-top: 30px;"></el-input>
      <upload :fileUrl="examine.contentUrl" :fileSizeLimitM="1024" :uploadNum="1" @getUploadUrl="getUploadAttachmentUrl" @removeFile="removeAttachmentFile" style="margin-top: 30px;"/>
      <span slot="footer" class="dialog-footer">
@@ -115,6 +114,7 @@
import Pagination from '@/components/Pagination'
import userApi from '@/api/user'
import departmentExamineApi from '@/api/departmentExamine'
import department from '@/api/department'
import Upload from '@/components/UploadC'
export default {
@@ -204,7 +204,7 @@
      this.examine.userId = item.id
      this.examine.departmentId = item.deptIdList
      this.examine.nowDepartmentIds = item.deptIdList.join(',')
      departmentExamineApi.getDeptList().then(res => {
      department.getDeptAdmins().then(res => {
        if (res.code === 1) {
          this.deptList = res.response
          this.dialogVisible = true