fix:细节修复
This commit is contained in:
parent
92c4c90239
commit
f585cfe289
@ -43,11 +43,11 @@ export default function Index({ title = '岗位库' }) {
|
|||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
width: 200,
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '岗位编号',
|
// title: '岗位编号',
|
||||||
dataIndex: 'code',
|
// dataIndex: 'code',
|
||||||
width: 200,
|
// width: 200,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '岗位说明',
|
title: '岗位说明',
|
||||||
dataIndex: 'remark',
|
dataIndex: 'remark',
|
||||||
|
|||||||
@ -45,12 +45,12 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
colProps: { span: 24 },
|
colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.text },
|
formItemProps: { ...rulesHelper.text },
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
key: 'code',
|
// key: 'code',
|
||||||
title: '岗位编号',
|
// title: '岗位编号',
|
||||||
colProps: { span: 24 },
|
// colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.text },
|
// formItemProps: { ...rulesHelper.text },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
key: 'remark',
|
key: 'remark',
|
||||||
title: '岗位说明',
|
title: '岗位说明',
|
||||||
|
|||||||
@ -46,12 +46,12 @@ export default function Update(props: MyBetaModalFormProps) {
|
|||||||
colProps: { span: 24 },
|
colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.text },
|
formItemProps: { ...rulesHelper.text },
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
key: 'code',
|
// key: 'code',
|
||||||
title: '岗位编号',
|
// title: '岗位编号',
|
||||||
colProps: { span: 24 },
|
// colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.text },
|
// formItemProps: { ...rulesHelper.text },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
key: 'remark',
|
key: 'remark',
|
||||||
title: '岗位说明',
|
title: '岗位说明',
|
||||||
|
|||||||
@ -63,7 +63,7 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
name: ['app_type'],
|
name: ['app_type'],
|
||||||
valueType: 'dependency',
|
valueType: 'dependency',
|
||||||
columns: ({ app_type }: any) => {
|
columns: ({ app_type }: any) => {
|
||||||
return app_type === 'MiniProgram'
|
return app_type !== 'MpOfficial'
|
||||||
? [
|
? [
|
||||||
MyFormItems.EnumRadio({
|
MyFormItems.EnumRadio({
|
||||||
key: 'module',
|
key: 'module',
|
||||||
|
|||||||
@ -35,7 +35,7 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
props.reload?.();
|
props.reload?.();
|
||||||
message.success('编辑成功');
|
message.success('添加成功');
|
||||||
return true;
|
return true;
|
||||||
})
|
})
|
||||||
.catch(() => false)
|
.catch(() => false)
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export default function Show({ title }: { title?: string } = {}) {
|
|||||||
|
|
||||||
let items = [
|
let items = [
|
||||||
{
|
{
|
||||||
label: '项目配置',
|
label: '应用配置',
|
||||||
key: '1',
|
key: '1',
|
||||||
closable: false,
|
closable: false,
|
||||||
children: <CompanyApps item={data} />,
|
children: <CompanyApps item={data} />,
|
||||||
@ -77,17 +77,12 @@ export default function Show({ title }: { title?: string } = {}) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
label: '应用配置',
|
label: '品牌配置',
|
||||||
key: '6',
|
key: '6',
|
||||||
closable: false,
|
closable: false,
|
||||||
children: <Brands item={data} />,
|
children: <Brands item={data} />,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: '品牌配置',
|
|
||||||
key: '7',
|
|
||||||
closable: false,
|
|
||||||
children: <Assets item={data} />,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: '权限配置',
|
label: '权限配置',
|
||||||
key: '8',
|
key: '8',
|
||||||
@ -100,6 +95,12 @@ export default function Show({ title }: { title?: string } = {}) {
|
|||||||
closable: false,
|
closable: false,
|
||||||
children: <CustomerEnd item={data} />,
|
children: <CustomerEnd item={data} />,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '项目配置',
|
||||||
|
key: '7',
|
||||||
|
closable: false,
|
||||||
|
children: <Assets item={data} />,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
return (
|
return (
|
||||||
<MyPageContainer title={title}>
|
<MyPageContainer title={title}>
|
||||||
@ -121,7 +122,7 @@ export default function Show({ title }: { title?: string } = {}) {
|
|||||||
<div style={{ padding: '0 0 10px 0' }}>
|
<div style={{ padding: '0 0 10px 0' }}>
|
||||||
<span>
|
<span>
|
||||||
应用配置 ➡️ 组织配置 ➡️ 岗位配置 ➡️ 员工配置 ➡️ 账号配置 ➡️ 品牌配置
|
应用配置 ➡️ 组织配置 ➡️ 岗位配置 ➡️ 员工配置 ➡️ 账号配置 ➡️ 品牌配置
|
||||||
➡️ 项目配置;
|
➡️ 权限配置 ➡️ 客户端配置 ➡️ 项目配置;
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</ProCard>
|
</ProCard>
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
onFinish={async (values: any) =>
|
onFinish={async (values: any) =>
|
||||||
Apis.Company.Organizations.Store({
|
Apis.Company.Organizations.Store({
|
||||||
...values,
|
...values,
|
||||||
companies_id: values?.companies_id || props?.item?.companies_id,
|
companies_id: values?.companies_id || props?.item?.id,
|
||||||
parent_id: values?.parent_id?.[values.parent_id.length - 1],
|
parent_id: values?.parent_id?.[values.parent_id.length - 1],
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user