Compare commits
No commits in common. "3bb187a34f187f8957c3ddfedbe691a8d8c3f793" and "667e7a407a5ee57cca5b2a4863c14dcf16bb067c" have entirely different histories.
3bb187a34f
...
667e7a407a
@ -17,7 +17,6 @@ export const stateActions = {
|
|||||||
state.session.campus = res.data.campus;
|
state.session.campus = res.data.campus;
|
||||||
state.session.company_configs = res.data.company_configs;
|
state.session.company_configs = res.data.company_configs;
|
||||||
state.session.permissions = res.data.permissions;
|
state.session.permissions = res.data.permissions;
|
||||||
state.session.company = res.data.company;
|
|
||||||
state.session.current_project = res.data.current_project;
|
state.session.current_project = res.data.current_project;
|
||||||
if (res.data?.token?.access_token)
|
if (res.data?.token?.access_token)
|
||||||
state.storage.access_token = res.data?.token?.access_token;
|
state.storage.access_token = res.data?.token?.access_token;
|
||||||
|
|||||||
@ -35,10 +35,6 @@ type SessionType = {
|
|||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
company?: {
|
|
||||||
id?: number;
|
|
||||||
name?: string;
|
|
||||||
};
|
|
||||||
company_configs?: {
|
company_configs?: {
|
||||||
config_value?: {
|
config_value?: {
|
||||||
logo?: {
|
logo?: {
|
||||||
|
|||||||
@ -40,24 +40,6 @@ export default function Index({ title = '员工管理' }) {
|
|||||||
<MyToolBarActions
|
<MyToolBarActions
|
||||||
key="toolbar"
|
key="toolbar"
|
||||||
actions={{
|
actions={{
|
||||||
sync: (
|
|
||||||
<MyButtons.Default
|
|
||||||
key="sync_wechat_employees"
|
|
||||||
type="primary"
|
|
||||||
size="middle"
|
|
||||||
title="同步企微"
|
|
||||||
isConfirm={true}
|
|
||||||
description="确定要执行企微员工同步操作吗?"
|
|
||||||
onConfirm={async () => {
|
|
||||||
try {
|
|
||||||
await Apis.Company.CompanyEmployees.SyncWechatEmployees();
|
|
||||||
action?.reload?.();
|
|
||||||
} catch (error) {
|
|
||||||
console.error('同步企微信息失败:', error);
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
),
|
|
||||||
add: (
|
add: (
|
||||||
<EmployeeCreate
|
<EmployeeCreate
|
||||||
key="Create"
|
key="Create"
|
||||||
|
|||||||
@ -71,17 +71,6 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
colProps: { span: 24 },
|
colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.phone },
|
formItemProps: { ...rulesHelper.phone },
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '初始登录密码',
|
|
||||||
key: 'password',
|
|
||||||
// formItemProps: { ...rulesHelper.text },
|
|
||||||
tooltip: '初始登录密码:#LY0123',
|
|
||||||
colProps: { span: 24 },
|
|
||||||
fieldProps: {
|
|
||||||
disabled: true,
|
|
||||||
defaultValue: '#LY0123',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
MyFormItems.EnumRadio({
|
MyFormItems.EnumRadio({
|
||||||
key: 'sex',
|
key: 'sex',
|
||||||
title: '性别',
|
title: '性别',
|
||||||
|
|||||||
@ -43,6 +43,7 @@ export default function Update(props: MyBetaModalFormProps) {
|
|||||||
...values,
|
...values,
|
||||||
id: props.item?.id ?? 0,
|
id: props.item?.id ?? 0,
|
||||||
type: props.item?.type,
|
type: props.item?.type,
|
||||||
|
password: null,
|
||||||
organizations_id: props.item?.organizations_id ?? '',
|
organizations_id: props.item?.organizations_id ?? '',
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
@ -69,17 +70,6 @@ export default function Update(props: MyBetaModalFormProps) {
|
|||||||
colProps: { span: 24 },
|
colProps: { span: 24 },
|
||||||
formItemProps: { ...rulesHelper.phone },
|
formItemProps: { ...rulesHelper.phone },
|
||||||
},
|
},
|
||||||
{
|
|
||||||
title: '初始登录密码',
|
|
||||||
key: 'password',
|
|
||||||
type: 'password',
|
|
||||||
// formItemProps: { ...rulesHelper.text },
|
|
||||||
tooltip: '必须超6位数,包含数字、大小字母、#-_@&*特殊字符',
|
|
||||||
colProps: { span: 24 },
|
|
||||||
fieldProps: {
|
|
||||||
placeholder: '必须超6位数,包含数字、大小字母、#-_@&*特殊字符',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
MyFormItems.EnumRadio({
|
MyFormItems.EnumRadio({
|
||||||
key: 'sex',
|
key: 'sex',
|
||||||
title: '性别',
|
title: '性别',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user