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

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