Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
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
TFMOM
TF-MOM-WEB
Commits
27bde41a
Commit
27bde41a
authored
Sep 12, 2023
by
xioln
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6565 【 通飞MES】通用选人组件多选不生效根据组织过滤不生效
parent
3d1ef966
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
19 deletions
+30
-19
config.js
...c/commonComponents/components/GeneralUserSelect/config.js
+0
-7
index.vue
...c/commonComponents/components/GeneralUserSelect/index.vue
+30
-12
No files found.
applications/architecture-dee/src/commonComponents/components/GeneralUserSelect/config.js
View file @
27bde41a
...
@@ -21,13 +21,6 @@ export default {
...
@@ -21,13 +21,6 @@ export default {
// name: 'el-switch'
// name: 'el-switch'
// }
// }
// },
// },
{
key
:
'isFilterByOrgId'
,
title
:
'根据组织过滤'
,
component
:
{
name
:
'el-switch'
}
},
{
{
key
:
'containInnerUse'
,
key
:
'containInnerUse'
,
title
:
'是否包含内置用户'
,
title
:
'是否包含内置用户'
,
...
...
applications/architecture-dee/src/commonComponents/components/GeneralUserSelect/index.vue
View file @
27bde41a
...
@@ -9,9 +9,10 @@
...
@@ -9,9 +9,10 @@
v-model=
"bindValue"
v-model=
"bindValue"
size=
"small"
size=
"small"
filterable
filterable
:multiple=
"i
tem.m
ultiple"
:multiple=
"i
sM
ultiple"
remote
remote
:remote-method=
"remoteMethod"
:remote-method=
"remoteMethod"
:loading=
"loading"
@
change=
"UserChange"
@
change=
"UserChange"
>
>
<el-option
<el-option
...
@@ -53,11 +54,16 @@ export default {
...
@@ -53,11 +54,16 @@ export default {
data
()
{
data
()
{
return
{
return
{
bindValue
:
''
,
bindValue
:
''
,
UserData
:
[]
UserData
:
[],
loading
:
false
// secretCode: ''
// secretCode: ''
}
}
},
},
computed
:
{},
computed
:
{
isMultiple
()
{
return
this
.
item
.
multiple
||
this
.
$utils
.
_get
(
this
.
item
,
'component.multiple'
)
||
false
}
},
watch
:
{
watch
:
{
// 'item.secret': {
// 'item.secret': {
// deep: true,
// deep: true,
...
@@ -84,7 +90,11 @@ export default {
...
@@ -84,7 +90,11 @@ export default {
deep
:
true
,
deep
:
true
,
handler
:
function
(
val
)
{
handler
:
function
(
val
)
{
if
(
val
!==
this
.
bindValue
)
{
if
(
val
!==
this
.
bindValue
)
{
this
.
bindValue
=
val
if
(
!
val
||
(
this
.
$utils
.
isObect
(
val
)
&&
(
Object
.
keys
(
val
).
length
===
0
)))
{
this
.
bindValue
=
''
}
else
{
this
.
bindValue
=
val
}
if
(
val
||
val
===
0
)
{
if
(
val
||
val
===
0
)
{
let
searchArray
=
[]
let
searchArray
=
[]
if
(
this
.
$utils
.
isObect
(
val
))
{
if
(
this
.
$utils
.
isObect
(
val
))
{
...
@@ -126,21 +136,29 @@ export default {
...
@@ -126,21 +136,29 @@ export default {
if
(
query
)
{
if
(
query
)
{
// 针对审计页面查人
// 针对审计页面查人
if
(
this
.
item
.
isAudPage
)
{
if
(
this
.
item
.
isAudPage
)
{
getFuzzyMatchUser
(
query
).
then
(
res
=>
{
this
.
loading
=
true
this
.
UserData
=
res
.
items
?
res
.
items
:
[]
getFuzzyMatchUser
(
query
)
})
.
then
(
res
=>
{
this
.
UserData
=
res
.
items
?
res
.
items
:
[]
})
.
finally
(()
=>
{
this
.
loading
=
false
})
}
else
{
}
else
{
// 针对非审计页面查人
// 针对非审计页面查人
const
params
=
{
userAccount
:
query
,
containInnerUser
:
this
.
item
.
containInnerUse
||
false
}
const
params
=
{
userAccount
:
query
,
containInnerUser
:
this
.
item
.
containInnerUse
||
false
}
if
(
this
.
item
.
secret
)
{
if
(
this
.
item
.
secret
)
{
params
.
secretCode
=
this
.
$store
.
state
.
user
.
userInfo
.
secretCode
params
.
secretCode
=
this
.
$store
.
state
.
user
.
userInfo
.
secretCode
}
}
getUsersByAccount
(
params
).
then
(
res
=>
{
this
.
loading
=
true
this
.
UserData
=
res
.
items
?
res
.
items
:
[]
getUsersByAccount
(
params
)
})
.
then
(
res
=>
{
this
.
UserData
=
res
.
items
?
res
.
items
:
[]
})
.
finally
(()
=>
{
this
.
loading
=
false
})
}
}
}
else
{
this
.
UserData
=
[]
}
}
},
},
UserChange
(
val
)
{
UserChange
(
val
)
{
...
...
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