develop #21
@ -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',
|
||||
|
||||
@ -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: '岗位说明',
|
||||
|
||||
@ -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: '岗位说明',
|
||||
|
||||
@ -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',
|
||||
|
||||
@ -35,7 +35,7 @@ export default function Create(props: MyBetaModalFormProps) {
|
||||
})
|
||||
.then(() => {
|
||||
props.reload?.();
|
||||
message.success('编辑成功');
|
||||
message.success('添加成功');
|
||||
return true;
|
||||
})
|
||||
.catch(() => false)
|
||||
|
||||
@ -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(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user