| | |
| | | <td class="w-16 m-color"> |
| | | <el-select :disabled="projectDialogState.disabled" v-model="projectDialogState.projectForm.liabilityUserId" clearable filterable> |
| | | <el-option |
| | | v-for="item in projectDialogState.allPersonList" |
| | | v-for="item in projectDialogState.systemPersonList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.personName" |
| | | :label="item.realName" |
| | | ></el-option> |
| | | </el-select> |
| | | </td> |
| | |
| | | import {ElMessage} from "element-plus"; |
| | | import {projectApi} from "/@/api/experiment/project"; |
| | | import {personApi} from "/@/api/basic/person"; |
| | | import {userApi} from "/@/api/systemManage/user"; |
| | | |
| | | const SelectEquipment = defineAsyncComponent(() => import('./selectEquipment.vue')) |
| | | const SelectMaterial = defineAsyncComponent(() => import('./selectMaterial.vue')) |
| | |
| | | }, |
| | | allPersonList: [], |
| | | allRoomList: [], |
| | | systemPersonList: [], |
| | | }) |
| | | |
| | | const showProjectDialog = (title: string, value: ProjectType, allRoomList: RoomType []) => { |
| | |
| | | }) |
| | | }; |
| | | |
| | | const getPersonList = async () => { |
| | | let res = await userApi().getUserList({ |
| | | roleId: 1, |
| | | usePage: false, |
| | | pageIndex: 1, |
| | | pageSize: 10 |
| | | }); |
| | | if(res.data.code === 100){ |
| | | debugger |
| | | projectDialogState.systemPersonList = JSON.parse(JSON.stringify(res.data.data)); |
| | | }else{ |
| | | ElMessage({ |
| | | type: 'warning', |
| | | message: res.data.msg |
| | | }) |
| | | } |
| | | }; |
| | | |
| | | const getAllPersonList = async () => { |
| | | let res = await personApi().getAllPerson(); |
| | | if(res.data.code === 100){ |
| | |
| | | |
| | | onMounted(() => { |
| | | getAllPersonList(); |
| | | getPersonList(); |
| | | }); |
| | | </script> |
| | | |