| | |
| | | |
| | | |
| | | const PlanDialog = defineAsyncComponent(() => import('./components/planDialog.vue')); |
| | | |
| | | const planDialogRef = ref(); |
| | | const userInfo = useUserInfo(); |
| | | const { userInfos } = storeToRefs(userInfo); |
| | |
| | | |
| | | const getPersonList = async () => { |
| | | let res = await userApi().getUserList({ |
| | | roleId: 1, |
| | | usePage: false, |
| | | pageIndex: 1, |
| | | pageSize: 10 |
| | | pageSize: 99999, |
| | | searchParams:{ |
| | | roleId: null, |
| | | name: '', |
| | | realName: '' |
| | | } |
| | | }); |
| | | if(res.data.code === 100){ |
| | | planState.personList = JSON.parse(JSON.stringify(res.data.data)); |
| | |
| | | getPlanData(); |
| | | getAllRiskUnitList(); |
| | | getPersonList(); |
| | | planState.user = userInfos.value.uid |
| | | planState.user = Number(userInfos.value.uid) |
| | | }) |
| | | |
| | | </script> |