Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李宁
/
Activity
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0b2f302d
authored
Nov 24, 2025
by
李宁
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
f539d7a0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
channelBusiManage/src/components/OrganizationTree.vue
channelBusiManage/src/components/UserManagement.vue
channelBusiManage/src/components/OrganizationTree.vue
View file @
0b2f302
...
...
@@ -130,7 +130,7 @@ interface Props {
roleId
?:
string
roles
?:
Role
[]
expandedIds
?:
Set
<
string
>
accountType
?:
'
地市级'
|
'区县级'
|
'一线人员
'
accountType
?:
'
1'
|
'2'
|
'3
'
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
selectedId
:
''
,
...
...
@@ -155,22 +155,22 @@ const hasChildren = (org: Organization): boolean => {
return
!!
(
org
.
children
&&
org
.
children
.
length
>
0
)
}
const
isSelectable
=
(
org
:
Organization
):
boolean
=>
{
console
.
log
(
'检查组织可选性:'
,
org
.
name
,
org
.
type
,
'账号类型:'
,
props
.
accountType
)
//
console.log('检查组织可选性:', org.name, org.type, '账号类型:', props.accountType)
// 只根据账号类型判断,不根据角色层级判断
if
(
props
.
accountType
)
{
switch
(
props
.
accountType
)
{
case
'
地市级
'
:
case
'
1
'
:
// 地市级只能选择地市级组织
console
.
log
(
'地市级账号,检查组织类型是否为地市:'
,
org
.
type
===
'地市'
)
//
console.log('地市级账号,检查组织类型是否为地市:', org.type === '地市')
return
org
.
type
===
'地市'
case
'
区县级
'
:
case
'
2
'
:
// 区县级只能选择区县级组织
console
.
log
(
'区县级账号,检查组织类型是否为区县:'
,
org
.
type
===
'区县'
)
//
console.log('区县级账号,检查组织类型是否为区县:', org.type === '区县')
return
org
.
type
===
'区县'
case
'
一线人员
'
:
case
'
3
'
:
// 区县级只能选择区县级组织
console
.
log
(
'区县级账号,检查组织类型是否为区县:'
,
org
.
type
===
'区县'
)
//
console.log('区县级账号,检查组织类型是否为区县:', org.type === '区县')
return
org
.
type
===
'区县'
default
:
return
true
...
...
channelBusiManage/src/components/UserManagement.vue
View file @
0b2f302
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment