Compare commits

..

2 Commits

Author SHA1 Message Date
zsq
3bb187a34f Merge pull request 'fix:更新优化' (#25) from develop into main
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m3s
Reviewed-on: #25
2026-06-01 15:18:51 +08:00
Your Name
2061b81f44 fix:更新优化
All checks were successful
Build and Push Docker Image / build (push) Successful in 5m13s
2026-06-01 14:54:57 +08:00
5 changed files with 45 additions and 1 deletions

View File

@ -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;

View File

@ -35,6 +35,10 @@ type SessionType = {
id: number;
name: string;
};
company?: {
id?: number;
name?: string;
};
company_configs?: {
config_value?: {
logo?: {

View File

@ -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"

View File

@ -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: '性别',

View File

@ -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: '性别',