Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8c1fd267
authored
Mar 21, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
a0490def
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
src/views/user/assign.vue
src/views/user/index.vue
src/views/user/select.vue
src/views/user/assign.vue
View file @
8c1fd26
...
@@ -29,8 +29,17 @@ export default {
...
@@ -29,8 +29,17 @@ export default {
return
{
return
{
activeTabs
:
"1"
,
activeTabs
:
"1"
,
userId
:
""
,
userId
:
""
,
randomKey
:
''
};
};
},
},
watch
:{
id
:{
handler
:
function
(){
console
.
log
(
'key:'
,
Math
.
random
())
this
.
randomKey
=
Math
.
random
()
}
}
},
mounted
()
{
mounted
()
{
this
.
userId
=
this
.
id
;
this
.
userId
=
this
.
id
;
},
},
...
...
src/views/user/index.vue
View file @
8c1fd26
...
@@ -57,9 +57,9 @@
...
@@ -57,9 +57,9 @@
</div>
</div>
<!-- 指定数据弹框 开始 -->
<!-- 指定数据弹框 开始 -->
<glsx-dialog
:show=
"showDialog"
title=
"指定数据"
@
close=
"closeDialog()"
>
<glsx-dialog
:show=
"showDialog"
title=
"指定数据"
@
close=
"closeDialog()"
width=
"900px"
>
<div>
<div>
<assign-info
ref=
"assignInfo"
:key=
"currentUserId
"
:id=
"currentUserId"
></assign-info>
<assign-info
ref=
"assignInfo"
v-if=
"showDialog
"
:id=
"currentUserId"
></assign-info>
</div>
</div>
<template
slot=
"footer"
>
<template
slot=
"footer"
>
<el-button
type=
"default"
size=
"small"
@
click=
"closeDialog"
>
取消
</el-button>
<el-button
type=
"default"
size=
"small"
@
click=
"closeDialog"
>
取消
</el-button>
...
...
src/views/user/select.vue
View file @
8c1fd26
...
@@ -144,6 +144,7 @@ export default {
...
@@ -144,6 +144,7 @@ export default {
// 异步加载树
// 异步加载树
loadNode
(
node
,
resolve
)
{
loadNode
(
node
,
resolve
)
{
console
.
log
(
node
);
console
.
log
(
node
);
let
_this
=
this
;
let
_cur
=
node
.
data
;
let
_cur
=
node
.
data
;
let
child
=
_cur
.
children
||
[];
let
child
=
_cur
.
children
||
[];
let
origin
=
_cur
.
origin
;
let
origin
=
_cur
.
origin
;
...
@@ -153,7 +154,7 @@ export default {
...
@@ -153,7 +154,7 @@ export default {
// 用户层级,查询该用户下面的车辆
// 用户层级,查询该用户下面的车辆
if
(
origin
&&
origin
.
type
===
"u"
)
{
if
(
origin
&&
origin
.
type
===
"u"
)
{
GET_USER_VEHICLE_LIST
({
uIds
:
_cur
.
id
}).
then
((
res
)
=>
{
GET_USER_VEHICLE_LIST
({
uIds
:
_cur
.
id
,
receiverId
:
_this
.
id
}).
then
((
res
)
=>
{
let
list
=
res
.
data
||
[];
let
list
=
res
.
data
||
[];
list
.
map
((
k
)
=>
{
list
.
map
((
k
)
=>
{
k
.
leaf
=
true
;
k
.
leaf
=
true
;
...
@@ -221,7 +222,7 @@ export default {
...
@@ -221,7 +222,7 @@ export default {
_this
.
setList
(
data
,
[],
checked
);
_this
.
setList
(
data
,
[],
checked
);
return
false
;
return
false
;
}
}
GET_ORGANIZATION_VEHICLE_LIST
({
oIds
:
data
.
id
})
GET_ORGANIZATION_VEHICLE_LIST
({
oIds
:
data
.
id
,
receiverId
:
_this
.
id
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
_this
.
ajaxloding
=
false
;
_this
.
ajaxloding
=
false
;
_this
.
setList
(
data
,
res
.
data
,
checked
);
_this
.
setList
(
data
,
res
.
data
,
checked
);
...
...
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