Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
4bfe476d
Commit
4bfe476d
authored
Nov 21, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户出现重复的时候优化
parent
4ba1e73e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/view/user/yhgl.vue
src/view/user/yhgl.vue
+6
-3
No files found.
src/view/user/yhgl.vue
View file @
4bfe476d
...
...
@@ -47,8 +47,8 @@
</tbody>
</table>
-->
<el-table
class=
"myTable"
ref=
"multipleTable"
:data=
"data_table"
style=
"width: 100%"
stripe
height=
"100%"
@
selection-change=
"handleSelectionChange"
>
<el-table
class=
"myTable"
ref=
"multipleTable"
:data=
"data_table"
style=
"width: 100%"
stripe
height=
"100%"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
type=
"selection"
align=
"center"
:selectable=
"handleDisable"
></el-table-column>
<el-table-column
type=
"index"
label=
"序号"
width=
"80"
align=
"center"
></el-table-column>
<el-table-column
prop=
"account"
label=
"登录用户名"
align=
"center"
></el-table-column>
...
...
@@ -672,7 +672,7 @@ export default {
return
Promise
.
resolve
();
}
}).
then
(
res
=>
{
post
(
"
api/rest/system/user/register
"
,
this
.
new_user
)
return
post
(
"
api/rest/system/user/register
"
,
this
.
new_user
)
}).
then
(
res
=>
{
this
.
$message
.
success
(
"
新增成功!
"
);
this
.
centerDialogVisible
=
false
;
...
...
@@ -685,6 +685,9 @@ export default {
this
.
$message
.
warning
(
"
数据验证失败
"
);
}
else
{
this
.
$message
.
warning
(
err
.
message
);
if
(
err
.
code
==
9061
)
{
this
.
new_user
.
mail
&&
removeUser
(
this
.
new_user
.
mail
);
//如果创建了邮箱这里删除一下
}
}
});
},
...
...
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