Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Y
yishuju-ui
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
何远江
yishuju-ui
Commits
50f67edb
Commit
50f67edb
authored
Mar 20, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b5fca4d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
AccountFormModal.vue
...iews/system/accountManage/components/AccountFormModal.vue
+4
-15
No files found.
src/views/system/accountManage/components/AccountFormModal.vue
View file @
50f67edb
...
...
@@ -99,12 +99,10 @@
const
form
=
ref
({
username
:
''
,
roles
:
[],
departmentCode
:
''
,
departmentName
:
''
,
password
:
''
,
phone
:
''
,
departmentId
:
''
,
tenant
:
''
,
departmentId
:
null
,
tenant
:
null
,
status
:
'enable'
,
});
const
options
=
ref
([]);
...
...
@@ -142,20 +140,13 @@
try
{
await
formRef
.
value
.
validate
();
loading
.
value
=
true
;
form
.
value
.
departmentName
=
''
form
.
value
.
departmentCode
=
''
if
(
form
.
value
.
tenant
)
{
console
.
log
(
form
.
value
.
tenant
,
Tenantlist
.
value
)
const
item
=
Tenantlist
.
value
.
find
(
v
=>
v
.
id
===
form
.
value
.
tenant
)
form
.
value
.
tenant
=
item
}
if
(
form
.
value
.
departmentId
)
{
const
list
=
treeToArray
(
departlist
.
value
)
const
item
=
list
.
find
(
v
=>
v
.
id
===
form
.
value
.
departmentId
)
if
(
item
)
{
form
.
value
.
departmentName
=
item
.
name
form
.
value
.
departmentCode
=
item
.
departmentCode
}
}
await
saveUser
(
form
.
value
);
ElMessage
({
...
...
@@ -172,13 +163,11 @@
const
onHide
=
()
=>
{
form
.
value
=
{
username
:
''
,
departmentCode
:
''
,
departmentName
:
''
,
roles
:
[],
password
:
''
,
phone
:
''
,
departmentId
:
''
,
tenant
:
''
,
departmentId
:
null
,
tenant
:
null
,
status
:
'enable'
,
};
formRef
.
value
.
clearValidate
();
...
...
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