Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
boyueCEnd
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
游洁
boyueCEnd
Commits
f9b600a1
Commit
f9b600a1
authored
Dec 04, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
32565b73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
22 deletions
+15
-22
systemConfig.ts
src/stores/systemConfig.ts
+13
-21
systemConfig.ts
src/types/systemConfig.ts
+1
-0
account.vue
src/views/personalCenter/accountPage/account.vue
+1
-1
No files found.
src/stores/systemConfig.ts
View file @
f9b600a1
...
...
@@ -155,15 +155,14 @@ export const useSystemConfigStore = defineStore('systemConfig', {
},
actions
:
{
async
getTenantAsync
(
tenantId
:
string
)
{
const
data
=
await
SystemConfigService
.
getTenantAsync
(
tenantId
)
this
.
groupId
=
data
.
erpGroupId
||
0
return
const
groupInfo
=
await
ErpUserService
.
GetGroupInfoAsync
(
this
.
groupId
)
if
(
groupInfo
.
data
.
resultCode
===
ApiResult
.
SUCCESS
)
{
this
.
erpAdminUserId
=
groupInfo
.
data
.
data
.
pageData
[
0
].
EmployeeId
||
0
}
/**
* 获取分组信息
*/
async
getGroupInfoAsync
(
groupId
:
number
)
{
// const groupInfo = await ErpUserService.GetGroupInfoAsync(groupId)
// if(groupInfo.data.resultCode === ApiResult.SUCCESS) {
// this.erpAdminUserId = groupInfo.data.data.pageData[0].EmployeeId || 0
// }
},
/**
...
...
@@ -192,13 +191,15 @@ export const useSystemConfigStore = defineStore('systemConfig', {
this
.
platformConfig
=
data
.
platform
||
null
this
.
config
=
data
.
config
this
.
groupId
=
data
.
erpGroupId
||
2
// 如果有租户ID,加载代理商配置
if
(
this
.
tenantId
)
{
await
this
.
get
TenantAsync
(
this
.
tenant
Id
)
await
this
.
get
GroupInfoAsync
(
this
.
group
Id
)
try
{
const
partnerConfig
=
await
PartnerCenterConfigService
.
getConfigByTenantIdAsync
(
this
.
tenantId
)
this
.
partnerCenterConfig
=
partnerConfig
this
.
partnerCenterConfig
=
partnerConfig
||
{
isEnabled
:
false
}
}
catch
(
error
)
{
console
.
warn
(
'Failed to load partner center config:'
,
error
)
// 代理商配置加载失败不影响整体初始化,设置默认值
...
...
@@ -207,15 +208,6 @@ export const useSystemConfigStore = defineStore('systemConfig', {
}
}
}
// if(this.tenantId) {
// this.partnerCenterConfig = data.config || null
// }else{
// this.partnerCenterConfig = {
// isEnabled: false
// }
// }
// 如果有默认语言,应用到 i18n
if
(
this
.
platformConfig
?.
defaultLanguage
)
{
const
savedLocale
=
localStorage
.
getItem
(
'locale'
)
...
...
src/types/systemConfig.ts
View file @
f9b600a1
...
...
@@ -136,4 +136,5 @@ export interface TenantInfoByDomainDto {
config
:
WebSiteConfigDto
navList
:
NavItemDto
[]
platform
:
PlatformConfigDto
erpGroupId
:
number
}
\ No newline at end of file
src/views/personalCenter/accountPage/account.vue
View file @
f9b600a1
<
template
>
<div
class=
"w-full h-full overflow-hidden"
>
<div
class=
"w-full h-full overflow-hidden"
>
<a-scrollbar
class=
"overflow-auto h-[100%]"
>
<div
class=
"accountCenter rounded-[14px] border-[1px] mb-[28px] flex items-center py-[30px] pl-[43px] pr-[35px]"
>
<div
class=
"w-[102px] mr-[43px]"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment