This commit is contained in:
parent
8cf47abdcc
commit
2061b81f44
@ -17,6 +17,7 @@ export const stateActions = {
|
||||
state.session.campus = res.data.campus;
|
||||
state.session.company_configs = res.data.company_configs;
|
||||
state.session.permissions = res.data.permissions;
|
||||
state.session.company = res.data.company;
|
||||
state.session.current_project = res.data.current_project;
|
||||
if (res.data?.token?.access_token)
|
||||
state.storage.access_token = res.data?.token?.access_token;
|
||||
|
||||
@ -35,6 +35,10 @@ type SessionType = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
company?: {
|
||||
id?: number;
|
||||
name?: string;
|
||||
};
|
||||
company_configs?: {
|
||||
config_value?: {
|
||||
logo?: {
|
||||
|
||||
@ -40,6 +40,24 @@ export default function Index({ title = '员工管理' }) {
|
||||
<MyToolBarActions
|
||||
key="toolbar"
|
||||
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: (
|
||||
<EmployeeCreate
|
||||
key="Create"
|
||||
|
||||
@ -71,6 +71,17 @@ export default function Create(props: MyBetaModalFormProps) {
|
||||
colProps: { span: 24 },
|
||||
formItemProps: { ...rulesHelper.phone },
|
||||
},
|
||||
{
|
||||
title: '初始登录密码',
|
||||
key: 'password',
|
||||
// formItemProps: { ...rulesHelper.text },
|
||||
tooltip: '初始登录密码:#LY0123',
|
||||
colProps: { span: 24 },
|
||||
fieldProps: {
|
||||
disabled: true,
|
||||
defaultValue: '#LY0123',
|
||||
},
|
||||
},
|
||||
MyFormItems.EnumRadio({
|
||||
key: 'sex',
|
||||
title: '性别',
|
||||
|
||||
@ -43,7 +43,6 @@ export default function Update(props: MyBetaModalFormProps) {
|
||||
...values,
|
||||
id: props.item?.id ?? 0,
|
||||
type: props.item?.type,
|
||||
password: null,
|
||||
organizations_id: props.item?.organizations_id ?? '',
|
||||
})
|
||||
.then(() => {
|
||||
@ -70,6 +69,17 @@ export default function Update(props: MyBetaModalFormProps) {
|
||||
colProps: { span: 24 },
|
||||
formItemProps: { ...rulesHelper.phone },
|
||||
},
|
||||
{
|
||||
title: '初始登录密码',
|
||||
key: 'password',
|
||||
type: 'password',
|
||||
// formItemProps: { ...rulesHelper.text },
|
||||
tooltip: '必须超6位数,包含数字、大小字母、#-_@&*特殊字符',
|
||||
colProps: { span: 24 },
|
||||
fieldProps: {
|
||||
placeholder: '必须超6位数,包含数字、大小字母、#-_@&*特殊字符',
|
||||
},
|
||||
},
|
||||
MyFormItems.EnumRadio({
|
||||
key: 'sex',
|
||||
title: '性别',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user