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
3eefb072
Commit
3eefb072
authored
Oct 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
bdd20e06
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
23 deletions
+28
-23
classmanage.vue
src/pages/school/classmanage.vue
+2
-2
student.vue
src/pages/school/student.vue
+12
-10
sysuser.vue
src/pages/school/sysuser.vue
+14
-11
No files found.
src/pages/school/classmanage.vue
View file @
3eefb072
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<img
:src=
"props.value"
/>
<img
:src=
"props.value"
/>
</q-avatar>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
TeacherName
.
substring
(
0
,
1
)
}}
</q-avatar>
{{
props
.
row
.
TeacherName
}}
</q-avatar>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-TeacherName=
"props"
>
<
template
v-slot:body-cell-TeacherName=
"props"
>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
<img
:src=
"props.value"
/>
<img
:src=
"props.value"
/>
</q-avatar>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
AssistName
.
substring
(
0
,
1
)
}}
</q-avatar>
{{
props
.
row
.
AssistName
}}
</q-avatar>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-AssistName=
"props"
>
<
template
v-slot:body-cell-AssistName=
"props"
>
...
...
src/pages/school/student.vue
View file @
3eefb072
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
</
template
>
</
template
>
<
template
v-slot:body-cell-Status=
"props"
>
<
template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-toggle
disable
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
<q-toggle
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
title=
"注意:关闭后,学员将无法正常使用."
/>
title=
"注意:关闭后,学员将无法正常使用."
@
input=
"deleteStudentInfo(props.row)"
/>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -59,8 +59,6 @@
...
@@ -59,8 +59,6 @@
<div
style=
"min-width:190px;width:100%"
>
<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"
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"重置密码"
@
click=
"resetPw(props.row.StuId)"
/>
label=
"重置密码"
@
click=
"resetPw(props.row.StuId)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-shanchu"
color=
"negative"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"删除"
@
click=
"deleteUser(props.row.StuId)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditStudent(props.row)"
/>
@
click=
"EditStudent(props.row)"
/>
</div>
</div>
...
@@ -243,11 +241,12 @@
...
@@ -243,11 +241,12 @@
});
});
});
});
},
},
deleteUser
(
id
)
{
deleteStudentInfo
(
obj
)
{
let
that
=
this
let
that
=
this
;
var
str
=
(
obj
.
Status
==
1
?
"【禁用】"
:
"【启用】"
);
this
.
$q
.
dialog
({
this
.
$q
.
dialog
({
title
:
"删除
学员"
,
title
:
str
+
"
学员"
,
message
:
"你正在进行
删除
学员行为,一旦执行无法找回,是否确认执行?"
,
message
:
"你正在进行
"
+
str
+
"
学员行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
persistent
:
true
,
cancel
:
{
cancel
:
{
label
:
"取消"
,
label
:
"取消"
,
...
@@ -261,17 +260,20 @@
...
@@ -261,17 +260,20 @@
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
that
.
resetLoading
=
true
deleteStudent
({
deleteStudent
({
StuId
:
id
StuId
:
obj
.
StuId
,
Status
:
obj
.
Status
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
color
:
'accent'
,
timeout
:
2000
,
timeout
:
2000
,
message
:
'数据
删除
成功!'
,
message
:
'数据
操作
成功!'
,
position
:
'top'
position
:
'top'
})
})
this
.
getStudent
()
this
.
getStudent
()
})
})
}).
onCancel
(()
=>
{
obj
.
Status
=
obj
.
Status
==
1
?
0
:
1
;
});
});
},
},
changePage
(
val
)
{
changePage
(
val
)
{
...
...
src/pages/school/sysuser.vue
View file @
3eefb072
...
@@ -46,8 +46,8 @@
...
@@ -46,8 +46,8 @@
</
template
>
</
template
>
<
template
v-slot:body-cell-Status=
"props"
>
<
template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<q-toggle
disable
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
<q-toggle
size=
"md"
color=
"primary"
:false-value=
"1"
:true-value=
"0"
v-model=
"props.row.Status"
title=
"注意:关闭后,管理员将无法正常使用."
/>
title=
"注意:关闭后,管理员将无法正常使用."
@
input=
"DeleteManager(props.row)"
/>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
...
@@ -59,8 +59,7 @@
...
@@ -59,8 +59,7 @@
<div
style=
"min-width:190px;width:100%"
>
<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"
<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)"
/>
label=
"重置密码"
@
click=
"resetPw(props.row.MId)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-shanchu"
color=
"negative"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"删除"
@
click=
"deleteUser(props.row.MId)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditManager(props.row)"
/>
@
click=
"EditManager(props.row)"
/>
</div>
</div>
...
@@ -224,13 +223,14 @@
...
@@ -224,13 +223,14 @@
}).
catch
(()
=>
{
}).
catch
(()
=>
{
that
.
resetLoading
=
false
that
.
resetLoading
=
false
});
});
})
;
})
},
},
deleteUser
(
id
)
{
DeleteManager
(
obj
)
{
let
that
=
this
let
that
=
this
;
var
str
=
(
obj
.
Status
==
1
?
"【禁用】"
:
"【启用】"
);
this
.
$q
.
dialog
({
this
.
$q
.
dialog
({
title
:
"删除
管理者"
,
title
:
str
+
"
管理者"
,
message
:
"你正在进行
删除
管理者行为,一旦执行无法找回,是否确认执行?"
,
message
:
"你正在进行
"
+
str
+
"
管理者行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
persistent
:
true
,
cancel
:
{
cancel
:
{
label
:
"取消"
,
label
:
"取消"
,
...
@@ -244,17 +244,20 @@
...
@@ -244,17 +244,20 @@
}).
onOk
(()
=>
{
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
that
.
resetLoading
=
true
deleteManagerInfo
({
deleteManagerInfo
({
MId
:
id
MId
:
obj
.
MId
,
Status
:
obj
.
Status
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
color
:
'accent'
,
timeout
:
2000
,
timeout
:
2000
,
message
:
'
数据删除成功!
'
,
message
:
'
操作成功!
'
,
position
:
'top'
position
:
'top'
})
})
this
.
getManager
()
this
.
getManager
()
})
})
}).
onCancel
(()
=>
{
obj
.
Status
=
obj
.
Status
==
1
?
0
:
1
;
});
});
},
},
changePage
(
val
)
{
changePage
(
val
)
{
...
...
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