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
02992e64
Commit
02992e64
authored
Oct 23, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
df780689
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
5 deletions
+49
-5
index.js
src/api/school/index.js
+11
-0
student.vue
src/pages/school/student.vue
+5
-4
sysuser.vue
src/pages/school/sysuser.vue
+33
-1
No files found.
src/api/school/index.js
View file @
02992e64
...
...
@@ -356,3 +356,14 @@ export function deleteManagerInfo(data) {
data
})
}
/**
* 创建管理者账号
*/
export
function
createManagerAccount
(
data
)
{
return
request
({
url
:
'/User/CreateManagerAccount'
,
method
:
'post'
,
data
})
}
src/pages/school/student.vue
View file @
02992e64
...
...
@@ -228,11 +228,12 @@
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
getStudent
();
}).
onCancel
(()
=>
{
that
.
getStudent
();
})
this
.
getStudent
();
}).
catch
(()
=>
{
});
})
},
resetPw
(
id
)
{
let
that
=
this
...
...
src/pages/school/sysuser.vue
View file @
02992e64
...
...
@@ -57,6 +57,9 @@
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"min-width:190px;width:100%"
>
<q-btn
v-if=
"props.row.ManagerAccount==''"
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"创建账号"
@
click=
"createAccount(props.row.MId)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"重置密码"
@
click=
"resetPw(props.row.MId)"
/>
...
...
@@ -75,7 +78,8 @@
import
{
queryManagerPage
,
getSchoolDropdown
,
deleteManagerInfo
deleteManagerInfo
,
createManagerAccount
}
from
'../../api/school/index'
import
{
resetPassword
...
...
@@ -135,6 +139,12 @@
align
:
'left'
,
field
:
'CreateTimeStr'
},
{
name
:
'ManagerAccount'
,
label
:
'账号'
,
align
:
'left'
,
field
:
'ManagerAccount'
},
{
name
:
'optioned'
,
label
:
'操作'
,
...
...
@@ -188,6 +198,28 @@
}
this
.
getManager
()
},
//创建账号
createAccount
(
id
)
{
let
that
=
this
createManagerAccount
({
MId
:
id
,
}).
then
(
res
=>
{
that
.
$q
.
dialog
({
title
:
"创建账号"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
getManager
();
}).
onCancel
(()
=>
{
that
.
getManager
();
})
})
},
resetPw
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
...
...
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