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',
width: 200,
},
{
title: '岗位编号',
dataIndex: 'code',
width: 200,
},
// {
// title: '岗位编号',
// dataIndex: 'code',
// width: 200,
// },
{
title: '岗位说明',
dataIndex: 'remark',

View File

@ -45,12 +45,12 @@ export default function Create(props: MyBetaModalFormProps) {
colProps: { span: 24 },
formItemProps: { ...rulesHelper.text },
},
{
key: 'code',
title: '岗位编号',
colProps: { span: 24 },
formItemProps: { ...rulesHelper.text },
},
// {
// key: 'code',
// title: '岗位编号',
// colProps: { span: 24 },
// formItemProps: { ...rulesHelper.text },
// },
{
key: 'remark',
title: '岗位说明',

View File

@ -46,12 +46,12 @@ export default function Update(props: MyBetaModalFormProps) {
colProps: { span: 24 },
formItemProps: { ...rulesHelper.text },
},
{
key: 'code',
title: '岗位编号',
colProps: { span: 24 },
formItemProps: { ...rulesHelper.text },
},
// {
// key: 'code',
// title: '岗位编号',
// colProps: { span: 24 },
// formItemProps: { ...rulesHelper.text },
// },
{
key: 'remark',
title: '岗位说明',

View File

@ -63,7 +63,7 @@ export default function Create(props: MyBetaModalFormProps) {
name: ['app_type'],
valueType: 'dependency',
columns: ({ app_type }: any) => {
return app_type === 'MiniProgram'
return app_type !== 'MpOfficial'
? [
MyFormItems.EnumRadio({
key: 'module',

View File

@ -35,7 +35,7 @@ export default function Create(props: MyBetaModalFormProps) {
})
.then(() => {
props.reload?.();
message.success('编辑成功');
message.success('添加成功');
return true;
})
.catch(() => false)

View File

@ -46,7 +46,7 @@ export default function Show({ title }: { title?: string } = {}) {
let items = [
{
label: '项目配置',
label: '应用配置',
key: '1',
closable: false,
children: <CompanyApps item={data} />,
@ -77,17 +77,12 @@ export default function Show({ title }: { title?: string } = {}) {
},
{
label: '应用配置',
label: '品牌配置',
key: '6',
closable: false,
children: <Brands item={data} />,
},
{
label: '品牌配置',
key: '7',
closable: false,
children: <Assets item={data} />,
},
{
label: '权限配置',
key: '8',
@ -100,6 +95,12 @@ export default function Show({ title }: { title?: string } = {}) {
closable: false,
children: <CustomerEnd item={data} />,
},
{
label: '项目配置',
key: '7',
closable: false,
children: <Assets item={data} />,
},
];
return (
<MyPageContainer title={title}>
@ -121,7 +122,7 @@ export default function Show({ title }: { title?: string } = {}) {
<div style={{ padding: '0 0 10px 0' }}>
<span>
</span>
</div>
</ProCard>

View File

@ -31,7 +31,7 @@ export default function Create(props: MyBetaModalFormProps) {
onFinish={async (values: any) =>
Apis.Company.Organizations.Store({
...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],
})
.then(() => {