Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3156606c
authored
Mar 02, 2023
by
gexinzhineng/gxzn27
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户管理添加用户需要填写手机号(工作流创建需要,不然会报错)
parent
60691df3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
16 deletions
+23
-16
src/views/system/user/index.vue
+23
-16
No files found.
src/views/system/user/index.vue
View file @
3156606c
...
...
@@ -386,24 +386,31 @@ const handleDetail = async (rowId: number) => {
// 提交按钮
const
submitForm
=
async
()
=>
{
loading
.
value
=
true
// 提交请求
try
{
const
data
=
unref
(
formRef
)?.
formModel
as
UserApi
.
UserVO
if
(
actionType
.
value
===
'create'
)
{
await
UserApi
.
createUserApi
(
data
)
message
.
success
(
t
(
'common.createSuccess'
))
}
else
{
await
UserApi
.
updateUserApi
(
data
)
message
.
success
(
t
(
'common.updateSuccess'
))
const
elForm
=
unref
(
formRef
)?.
getElFormRef
()
if
(
!
elForm
)
return
elForm
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
try
{
const
data
=
unref
(
formRef
)?.
formModel
as
UserApi
.
UserVO
if
(
actionType
.
value
===
'create'
)
{
await
UserApi
.
createUserApi
(
data
)
loading
.
value
=
true
message
.
success
(
t
(
'common.createSuccess'
))
}
else
{
await
UserApi
.
updateUserApi
(
data
)
loading
.
value
=
true
message
.
success
(
t
(
'common.updateSuccess'
))
}
dialogVisible
.
value
=
false
}
finally
{
// unref(formRef)?.setSchema(allSchemas.formSchema)
// 刷新列表
await
reload
()
loading
.
value
=
false
}
}
dialogVisible
.
value
=
false
}
finally
{
// unref(formRef)?.setSchema(allSchemas.formSchema)
// 刷新列表
await
reload
()
loading
.
value
=
false
}
})
}
// 改变用户状态操作
const
handleStatusChange
=
async
(
row
:
UserApi
.
UserVO
)
=>
{
...
...
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