Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
3cdc0a4a
Commit
3cdc0a4a
authored
Jan 27, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
22685299
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
1 deletion
+63
-1
manager-form.vue
src/components/school/manager/manager-form.vue
+17
-1
sysuser.vue
src/pages/school/sysuser.vue
+46
-0
No files found.
src/components/school/manager/manager-form.vue
View file @
3cdc0a4a
...
...
@@ -320,7 +320,23 @@
this
.
persistent
=
false
},
setStudent
()
{
this
.
saveLoading
=
true
if
(
this
.
objOption
.
Email
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写邮箱`
})
return
;
}
if
(
this
.
objOption
.
Account
==
''
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`请填写账号`
})
return
;
}
this
.
saveLoading
=
true
;
saveManager
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveLoading
=
false
this
.
$q
.
notify
({
...
...
src/pages/school/sysuser.vue
View file @
3cdc0a4a
...
...
@@ -159,6 +159,11 @@
<q-item-label>
账户
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"resetSinglePwd(props.row)"
>
<q-item-section>
<q-item-label>
重置密码
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
...
...
@@ -416,6 +421,47 @@
});
})
},
//单个重置密码
resetSinglePwd
(
item
){
let
that
=
this
this
.
$q
.
dialog
({
title
:
"重置密码"
,
message
:
"你正在进行重置密码行为,是否确认执行"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认重置"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
;
let
Msg
=
[];
let
obj
=
{
AccountType
:
item
.
AccountType
,
AccountId
:
item
.
AccountId
}
Msg
.
push
(
obj
);
BatchResetUserPassword
(
Msg
).
then
(
res
=>
{
that
.
resetLoading
=
false
that
.
$q
.
dialog
({
title
:
"密码重置成功"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
})
}).
catch
(()
=>
{
that
.
resetLoading
=
false
});
})
},
DeleteManager
(
obj
)
{
let
that
=
this
;
var
str
=
(
obj
.
Status
==
1
?
"【禁用】"
:
"【启用】"
);
...
...
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