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
012b0cfb
Commit
012b0cfb
authored
Oct 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
51567971
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
student.vue
src/pages/school/student.vue
+13
-14
No files found.
src/pages/school/student.vue
View file @
012b0cfb
...
...
@@ -44,9 +44,9 @@
<q-badge
:color=
"props.value==1?'negative':'primary'"
:label=
"props.value==1?'女':'男'"
/>
</q-td>
</
template
>
<
template
v-slot:body-cell-
IsDisable
=
"props"
>
<
template
v-slot:body-cell-
Status
=
"props"
>
<q-td
:props=
"props"
>
<q-toggle
size=
"md"
color=
"primary"
:false-value=
"0"
:true-value=
"1"
v-model=
"props.row.IsDisable
"
<q-toggle
disable
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status
"
title=
"注意:关闭后,学员将无法正常使用."
/>
<!--@input="DeleteMenu(props.row)"-->
</q-td>
...
...
@@ -59,9 +59,9 @@
<q-td
:props=
"props"
>
<div
style=
"min-width:190px;width:100%"
>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"重置密码"
@
click=
"resetPw(props.row.
A
Id)"
/>
label=
"重置密码"
@
click=
"resetPw(props.row.
Stu
Id)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-shanchu"
color=
"negative"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"删除"
@
click=
"deleteUser(props.row.
A
Id)"
/>
class=
"q-mr-xs"
label=
"删除"
@
click=
"deleteUser(props.row.
Stu
Id)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditStudent(props.row)"
/>
</div>
...
...
@@ -73,12 +73,11 @@
</div>
</div>
</template>
<
script
>
import
{
getStudentPage
,
getSchoolDropdown
,
delete
Assis
t
delete
Studen
t
}
from
'../../api/school/index'
import
{
resetPassword
...
...
@@ -138,9 +137,9 @@
align
:
'left'
,
},
{
name
:
'
IsDisable
'
,
name
:
'
Status
'
,
label
:
'状态'
,
field
:
'
IsDisable
'
,
field
:
'
Status
'
,
align
:
'left'
,
},
{
...
...
@@ -158,7 +157,7 @@
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'
A
Id'
field
:
'
Stu
Id'
}
],
data
:
[],
...
...
@@ -226,7 +225,7 @@
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
resetPassword
({
AccountType
:
3
,
AccountType
:
4
,
AccountId
:
id
}).
then
(
res
=>
{
that
.
resetLoading
=
false
...
...
@@ -248,8 +247,8 @@
deleteUser
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"删除
助教
"
,
message
:
"你正在进行删除
助教
行为,一旦执行无法找回,是否确认执行?"
,
title
:
"删除
学员
"
,
message
:
"你正在进行删除
学员
行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
...
...
@@ -262,8 +261,8 @@
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
delete
Assis
t
({
A
Id
:
id
delete
Studen
t
({
Stu
Id
:
id
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
...
...
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