This commit is contained in:
parent
9df9ebb68f
commit
103b9e7340
@ -1,6 +1,6 @@
|
||||
import { MyResponseType } from '@/common';
|
||||
import { ImportOutlined, InboxOutlined } from '@ant-design/icons';
|
||||
import { Button, Flex, Modal, Upload, message } from 'antd';
|
||||
import { Button, Flex, Modal, Space, Upload, message } from 'antd';
|
||||
import { useState } from 'react';
|
||||
|
||||
type MyImportModalType = {
|
||||
@ -69,7 +69,7 @@ export function MyImportModal(props: MyImportModalType) {
|
||||
return (
|
||||
<Flex style={{ width: '100%' }} justify="space-between">
|
||||
<Button onClick={() => props?.templateApi?.()}>下载模板</Button>
|
||||
<div>{dom}</div>
|
||||
<Space>{dom}</Space>
|
||||
</Flex>
|
||||
);
|
||||
}}
|
||||
|
||||
@ -72,6 +72,7 @@ export default function Update(props: MyBetaModalFormProps) {
|
||||
{
|
||||
title: '重置登录密码',
|
||||
key: 'password',
|
||||
tooltip: '必须超过6位数,且包含数字、字母、符号',
|
||||
colProps: { span: 24 },
|
||||
},
|
||||
Selects?.Positions({
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { MyBetaModalFormProps, MyButtons } from '@/common';
|
||||
import MyEnumRadioGroup from '@/common/components/formFields/MyEnumRadioGroup';
|
||||
import { Apis } from '@/gen/Apis';
|
||||
import { SysModuleEnum } from '@/gen/Enums';
|
||||
import { ProCard } from '@ant-design/pro-components';
|
||||
@ -62,15 +61,6 @@ export default function Index(props: MyBetaModalFormProps) {
|
||||
|
||||
return (treeData?.length ?? 0) > 0 ? (
|
||||
<ProCard
|
||||
title={
|
||||
<MyEnumRadioGroup
|
||||
enums={getSysModuleEnum}
|
||||
onChange={(e) => {
|
||||
setGuardName(e as string);
|
||||
}}
|
||||
value={guardName}
|
||||
/>
|
||||
}
|
||||
extra={[
|
||||
<MyButtons.Default
|
||||
title="保存"
|
||||
|
||||
@ -3,24 +3,14 @@ import {
|
||||
MyColumns,
|
||||
MyPageContainer,
|
||||
MyProTableProps,
|
||||
usePageTabs,
|
||||
} from '@/common';
|
||||
import { Apis } from '@/gen/Apis';
|
||||
import { ProTable } from '@ant-design/pro-components';
|
||||
import { useNavigate } from '@umijs/max';
|
||||
import { Space } from 'antd';
|
||||
import PositionCreate from './modals/PositionCreate';
|
||||
import PositionUpdate from './modals/PositionUpdate';
|
||||
|
||||
export default function Index({ title = '岗位管理' }) {
|
||||
const navigate = useNavigate();
|
||||
|
||||
// 注册当前页面为标签页
|
||||
usePageTabs({
|
||||
tabKey: 'company-positions',
|
||||
tabLabel: title,
|
||||
});
|
||||
|
||||
return (
|
||||
<MyPageContainer
|
||||
title={title}
|
||||
@ -43,7 +33,7 @@ export default function Index({ title = '岗位管理' }) {
|
||||
columns={[
|
||||
MyColumns.ID(),
|
||||
{
|
||||
title: '机构',
|
||||
title: '所属机构',
|
||||
dataIndex: ['company', 'name'],
|
||||
search: false,
|
||||
},
|
||||
|
||||
@ -42,7 +42,7 @@ export default function Create(props: MyBetaModalFormProps) {
|
||||
: [
|
||||
Selects?.Companies({
|
||||
key: 'companies_id',
|
||||
title: '公司',
|
||||
title: '选择机构',
|
||||
colProps: { span: 24 },
|
||||
required: true,
|
||||
}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user