Merge branch 'v2' of https://code.adminnet.top/Admin.NET/Admin.NET.Pro into v2
This commit is contained in:
commit
74ec7c8066
@ -359,7 +359,8 @@ public class SysTenantService : IDynamicApiController, ITransient
|
||||
await _sysOrgRep.UpdateAsync(u => new SysOrg() { Name = input.Name, Pid = input.OrgPid }, u => u.Id == input.OrgId);
|
||||
|
||||
// 更新系统用户
|
||||
await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email }, u => u.Id == input.UserId);
|
||||
await _sysUserRep.UpdateAsync(u => new SysUser() { Account = input.AdminAccount, RealName = input.RealName, Phone = input.Phone, Email = input.Email },
|
||||
u => u.Id == input.UserId);
|
||||
|
||||
await CacheTenant(input.Id);
|
||||
|
||||
@ -627,6 +628,7 @@ public class SysTenantService : IDynamicApiController, ITransient
|
||||
var tenant = await _sysTenantRep.GetFirstAsync(u => u.Id == input.TenantId);
|
||||
_ = tenant ?? throw Oops.Oh(ErrorCodeEnum.D1002);
|
||||
|
||||
var originLogo = tenant.Logo;
|
||||
tenant = input.Adapt<SysTenant>();
|
||||
tenant.Id = input.TenantId;
|
||||
|
||||
@ -665,7 +667,7 @@ public class SysTenantService : IDynamicApiController, ITransient
|
||||
}
|
||||
else
|
||||
{
|
||||
tenant.Logo = tenant.Logo;
|
||||
tenant.Logo = originLogo;
|
||||
}
|
||||
|
||||
await _sysTenantRep.AsUpdateable(tenant).UpdateColumns(u => new
|
||||
|
||||
@ -87,7 +87,7 @@ public partial class @(@Model.ClassName)Mid
|
||||
@: var key = $"@(@column.FkEntityName)_{t.@(@column.PropertyName)}";
|
||||
@: if (!sysCacheService.ExistKey(key))
|
||||
@: {
|
||||
@: var m = db.ForTenant<@(@column.FkEntityName)>().Queryable<@(@column.FkEntityName)>().FirstAsync(f => f.@(@column.FkLinkColumnName) == t.@(@column.PropertyName));
|
||||
@: var m = db.ForTenant<@(@column.FkEntityName)>().Queryable<@(@column.FkEntityName)>().First(f => f.@(@column.FkLinkColumnName) == t.@(@column.PropertyName));
|
||||
@: if (m != null) sysCacheService.Set(key, m);
|
||||
@: }
|
||||
@: t.@(@column.PropertyName)@(@column.FkColumnName) = sysCacheService.Get<@(@column.FkEntityName)>(key)?.@(@column.FkColumnName);
|
||||
|
||||
@ -68,7 +68,7 @@ export const useVxeTable = <T>(opt: iVxeOption, extras?: VxeGridProps<T>) => {
|
||||
pagerConfig: {
|
||||
enabled: true,
|
||||
size: vxeSize,
|
||||
pageSize: 20,
|
||||
pageSize: 50,
|
||||
},
|
||||
printConfig: { sheetName: '' },
|
||||
// proxyConfig: {
|
||||
|
||||
@ -322,14 +322,15 @@ const submitPassword = () => {
|
||||
cpwd.passwordNew = sm2.doEncrypt(state.ruleFormPassword.passwordNew, publicKey, 1);
|
||||
await getAPI(SysUserApi).apiSysUserChangePwdPost(cpwd);
|
||||
|
||||
// 退出系统
|
||||
ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), {
|
||||
confirmButtonText: t('message.list.confirmButtonText'),
|
||||
cancelButtonText: t('message.list.cancelButtonText'),
|
||||
type: 'warning',
|
||||
}).then(async () => {
|
||||
clearAccessTokens();
|
||||
});
|
||||
// 修改密码后后端会强制下线,无需弹出确认重新登录提示
|
||||
// // 退出系统
|
||||
// ElMessageBox.confirm(t('message.list.passwordModifiedConfirmRelogin'), t('message.list.hint'), {
|
||||
// confirmButtonText: t('message.list.confirmButtonText'),
|
||||
// cancelButtonText: t('message.list.cancelButtonText'),
|
||||
// type: 'warning',
|
||||
// }).then(async () => {
|
||||
// clearAccessTokens();
|
||||
// });
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user