| | |
| | | > |
| | | <el-option |
| | | v-for="item in state.userList" |
| | | :key="item.id" |
| | | :key="item.userId" |
| | | :label="item.name" |
| | | :value="item.id" |
| | | :value="item.userId" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | import {ElMessage} from "element-plus"; |
| | | import {getDeptInfo, saveResponsibility} from "@/api/orgStructure/depart"; |
| | | import {listUser} from "@/api/system/user"; |
| | | import {getEmployeeRecords} from "@/api/onlineEducation/user"; |
| | | const emit = defineEmits(["getList"]); |
| | | const dialogVisible = ref(false) |
| | | const superRef = ref() |
| | |
| | | } |
| | | |
| | | const getUserList = async ()=> { |
| | | const res = await listUser() |
| | | const res = await getEmployeeRecords() |
| | | if(res.code == 200){ |
| | | state.userList = res.data.list?res.data.list:[] |
| | | state.userList = res.data ? res.data :[] |
| | | }else{ |
| | | ElMessage.warning(res.message) |
| | | } |
| | |
| | | font-size: 14px !important; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |