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
c2a5c88e
Commit
c2a5c88e
authored
Dec 04, 2025
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/youjie/boyuecend
parents
e159daa8
18f5f06e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
21 deletions
+14
-21
systemConfig.ts
src/stores/systemConfig.ts
+13
-21
systemConfig.ts
src/types/systemConfig.ts
+1
-0
No files found.
src/stores/systemConfig.ts
View file @
c2a5c88e
...
@@ -157,15 +157,14 @@ export const useSystemConfigStore = defineStore('systemConfig', {
...
@@ -157,15 +157,14 @@ export const useSystemConfigStore = defineStore('systemConfig', {
},
},
},
},
actions
:
{
actions
:
{
async
getTenantAsync
(
tenantId
:
string
)
{
/**
const
data
=
await
SystemConfigService
.
getTenantAsync
(
tenantId
)
* 获取分组信息
this
.
groupId
=
data
.
erpGroupId
||
0
*/
return
async
getGroupInfoAsync
(
groupId
:
number
)
{
const
groupInfo
=
await
ErpUserService
.
GetGroupInfoAsync
(
this
.
groupId
)
// const groupInfo = await ErpUserService.GetGroupInfoAsync(groupId)
if
(
groupInfo
.
data
.
resultCode
===
ApiResult
.
SUCCESS
)
{
// if(groupInfo.data.resultCode === ApiResult.SUCCESS) {
this
.
erpAdminUserId
=
groupInfo
.
data
.
data
.
pageData
[
0
].
EmployeeId
||
0
// this.erpAdminUserId = groupInfo.data.data.pageData[0].EmployeeId || 0
// }
}
},
},
/**
/**
...
@@ -194,13 +193,15 @@ export const useSystemConfigStore = defineStore('systemConfig', {
...
@@ -194,13 +193,15 @@ export const useSystemConfigStore = defineStore('systemConfig', {
this
.
platformConfig
=
data
.
platform
||
null
this
.
platformConfig
=
data
.
platform
||
null
this
.
config
=
data
.
config
this
.
config
=
data
.
config
this
.
groupId
=
data
.
erpGroupId
||
2
// 如果有租户ID,加载代理商配置
// 如果有租户ID,加载代理商配置
if
(
this
.
tenantId
)
{
if
(
this
.
tenantId
)
{
await
this
.
get
TenantAsync
(
this
.
tenant
Id
)
await
this
.
get
GroupInfoAsync
(
this
.
group
Id
)
try
{
try
{
const
partnerConfig
=
await
PartnerCenterConfigService
.
getConfigByTenantIdAsync
(
this
.
tenantId
)
const
partnerConfig
=
await
PartnerCenterConfigService
.
getConfigByTenantIdAsync
(
this
.
tenantId
)
this
.
partnerCenterConfig
=
partnerConfig
this
.
partnerCenterConfig
=
partnerConfig
||
{
isEnabled
:
false
}
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
warn
(
'Failed to load partner center config:'
,
error
)
console
.
warn
(
'Failed to load partner center config:'
,
error
)
// 代理商配置加载失败不影响整体初始化,设置默认值
// 代理商配置加载失败不影响整体初始化,设置默认值
...
@@ -209,15 +210,6 @@ export const useSystemConfigStore = defineStore('systemConfig', {
...
@@ -209,15 +210,6 @@ export const useSystemConfigStore = defineStore('systemConfig', {
}
}
}
}
}
}
// if(this.tenantId) {
// this.partnerCenterConfig = data.config || null
// }else{
// this.partnerCenterConfig = {
// isEnabled: false
// }
// }
// 如果有默认语言,应用到 i18n
// 如果有默认语言,应用到 i18n
if
(
this
.
platformConfig
?.
defaultLanguage
)
{
if
(
this
.
platformConfig
?.
defaultLanguage
)
{
const
savedLocale
=
localStorage
.
getItem
(
'locale'
)
const
savedLocale
=
localStorage
.
getItem
(
'locale'
)
...
...
src/types/systemConfig.ts
View file @
c2a5c88e
...
@@ -136,4 +136,5 @@ export interface TenantInfoByDomainDto {
...
@@ -136,4 +136,5 @@ export interface TenantInfoByDomainDto {
config
:
WebSiteConfigDto
config
:
WebSiteConfigDto
navList
:
NavItemDto
[]
navList
:
NavItemDto
[]
platform
:
PlatformConfigDto
platform
:
PlatformConfigDto
erpGroupId
:
number
}
}
\ No newline at end of file
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