Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
19e7e447
Commit
19e7e447
authored
Oct 28, 2022
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改用户站点授权
parent
939c0bbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
...IsSet/components/permissionsModel/components/EditUser.vue
+10
-1
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
...mIsSet/components/permissionsModel/components/addUser.vue
+1
-0
No files found.
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
View file @
19e7e447
...
...
@@ -149,14 +149,17 @@ export default {
onEdit
(
row
)
{
this
.
form
=
{
...
row
};
this
.
form
.
areaNames
=
this
.
form
.
areaNames
.
split
(
"
,
"
);
// this.form.areaCodes = this.form.areaCodes.split(",");
this
.
form
.
loginPwd
&&
this
.
$delete
(
this
.
form
,
"
loginPwd
"
);
},
onSubmit
()
{
console
.
log
(
this
.
form
.
areaCodes
);
this
.
$refs
.
ruleForm
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
let
res
=
await
userSave
({
...
this
.
form
,
areaNames
:
this
.
form
.
areaNames
.
join
(
"
,
"
),
// areaCodes: this.form.areaCodes.join(","),
});
let
{
code
,
msg
}
=
res
;
if
(
code
===
1
)
{
...
...
@@ -173,14 +176,20 @@ export default {
// 选中树节点
handleSelect
(
value
,
node
,
extra
)
{
let
{
allCheckedNodes
}
=
extra
;
console
.
log
(
extra
);
let
arr
=
allCheckedNodes
.
map
((
v
)
=>
{
return
v
.
node
.
data
.
props
.
areaCode
;
if
(
v
.
node
)
{
return
v
.
node
.
data
.
props
.
areaCode
;
}
else
{
return
v
.
data
.
props
.
areaCode
;
}
});
if
(
arr
.
length
)
{
this
.
form
.
areaCodes
=
arr
.
join
(
"
,
"
);
}
else
{
this
.
form
.
areaCodes
=
""
;
}
console
.
log
(
this
.
form
.
areaCodes
);
},
},
};
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
View file @
19e7e447
...
...
@@ -214,6 +214,7 @@ export default {
}
else
{
this
.
form
.
areaCodes
=
""
;
}
console
.
log
(
this
.
form
.
areaCodes
);
},
},
};
...
...
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