fix:细节修复

This commit is contained in:
uiuJun 2026-01-25 22:40:31 +08:00
parent 92c4c90239
commit f585cfe289
7 changed files with 30 additions and 29 deletions

View File

@ -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',

View File

@ -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: '岗位说明',

View File

@ -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: '岗位说明',

View File

@ -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',

View File

@ -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)

View File

@ -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>

View File

@ -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(() => {