| | |
| | | import { defineComponent, ref, computed, unref, useAttrs } from 'vue'; |
| | | import { BasicForm, useForm } from '/@/components/Form/index'; |
| | | import { formSchema } from './user.data'; |
| | | import { getTenantId, getToken } from "/@/utils/auth"; |
| | | import { BasicDrawer, useDrawerInner } from '/@/components/Drawer'; |
| | | import { saveOrUpdateUser, getUserRoles, getUserDepartList } from './user.api'; |
| | | import { useDrawerAdaptiveWidth } from '/@/hooks/jeecg/useAdaptiveWidth'; |
| | |
| | | field: 'selectedroles', |
| | | show: !data?.departDisabled ?? false, |
| | | }, |
| | | { |
| | | field: 'relTenantIds', |
| | | show: Number(getTenantId())<=0, |
| | | }, |
| | | ]); |
| | | // 无论新增还是编辑,都可以设置表单值 |
| | | if (typeof data.record === 'object') { |