develop #21

Merged
zsq merged 2 commits from develop into main 2026-01-26 20:05:08 +08:00
6 changed files with 20 additions and 20 deletions
Showing only changes of commit 6056d990d5 - Show all commits

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

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