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
776aeca2
Commit
776aeca2
authored
Nov 02, 2022
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改编辑用户
parent
65388ba7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
...IsSet/components/permissionsModel/components/EditUser.vue
+2
-1
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
...mIsSet/components/permissionsModel/components/addUser.vue
+5
-6
No files found.
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
View file @
776aeca2
...
...
@@ -148,6 +148,7 @@ export default {
},
// 编辑
onEdit
(
row
)
{
console
.
log
(
row
);
this
.
form
=
{
...
row
};
this
.
form
.
areaNames
=
JSON
.
parse
(
this
.
form
.
areaNames
);
if
(
this
.
form
.
areaNames
.
length
)
{
...
...
@@ -155,7 +156,7 @@ export default {
}
else
{
this
.
selectAreaList
=
[];
}
this
.
form
.
areaCodes
=
this
.
form
.
areaCodes
.
split
(
"
,
"
);
//
this.form.areaCodes = this.form.areaCodes.split(",");
this
.
form
.
loginPwd
&&
this
.
$delete
(
this
.
form
,
"
loginPwd
"
);
},
onSubmit
()
{
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
View file @
776aeca2
...
...
@@ -96,6 +96,7 @@ export default {
return
{
labelCol
:
{
span
:
4
},
wrapperCol
:
{
span
:
20
},
changeSelect
:
[],
form
:
{
loginName
:
undefined
,
loginPwd
:
undefined
,
...
...
@@ -178,6 +179,7 @@ export default {
// 新增
onAdd
()
{
Object
.
assign
(
this
.
form
,
this
.
$options
.
data
().
form
);
this
.
changeSelect
=
[];
},
onSubmit
()
{
this
.
$refs
.
ruleForm
.
validate
(
async
(
valid
)
=>
{
...
...
@@ -185,6 +187,7 @@ export default {
let
res
=
await
userSave
({
...
this
.
form
,
areaCodes
:
this
.
form
.
areaCodes
.
join
(
"
,
"
),
areaNames
:
JSON
.
stringify
(
this
.
changeSelect
),
});
let
{
code
,
msg
}
=
res
;
if
(
code
===
1
)
{
...
...
@@ -197,11 +200,12 @@ export default {
},
resetForm
()
{
this
.
$refs
.
ruleForm
.
resetFields
();
this
.
changeSelect
=
[];
},
// 选择区域
handleSelect
(
value
,
node
,
extra
)
{
let
{
allCheckedNodes
}
=
extra
;
let
arr
=
allCheckedNodes
.
map
((
v
)
=>
{
this
.
changeSelect
=
allCheckedNodes
.
map
((
v
)
=>
{
if
(
v
.
node
)
{
return
{
areaCode
:
v
.
node
.
data
.
props
.
areaCode
,
...
...
@@ -214,11 +218,6 @@ export default {
};
}
});
if
(
arr
.
length
)
{
this
.
form
.
areaNames
=
JSON
.
stringify
(
arr
);
}
else
{
this
.
form
.
areaNames
=
""
;
}
},
},
};
...
...
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