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
80e505b4
Commit
80e505b4
authored
Dec 09, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
030c6d27
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
602 additions
and
39 deletions
+602
-39
App.vue
src/App.vue
+1
-1
studentRight-form.vue
src/components/school/student/studentRight-form.vue
+583
-0
student.vue
src/pages/school/student.vue
+18
-38
No files found.
src/App.vue
View file @
80e505b4
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
@import
url("//at.alicdn.com/t/font_2077629_
9j9u1nj8nka
.css")
;
@import
url("//at.alicdn.com/t/font_2077629_
70it4rlfqmf
.css")
;
.q-scrollarea__thumb
{
.q-scrollarea__thumb
{
z-index
:
999999
!important
;
z-index
:
999999
!important
;
}
}
...
...
src/components/school/student/studentRight-form.vue
0 → 100644
View file @
80e505b4
This diff is collapsed.
Click to expand it.
src/pages/school/student.vue
View file @
80e505b4
...
@@ -31,12 +31,12 @@
...
@@ -31,12 +31,12 @@
<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
.
StuName
}}
</q-avatar>
{{
props
.
row
.
StuName
.
substring
(
0
,
1
)
}}
</q-avatar>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-StuName=
"props"
>
<
template
v-slot:body-cell-StuName=
"props"
>
<q-td
:props=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
>
{{
props
.
value
}}
</div>
<div
class=
"text-blue cursor-pointer"
@
click=
"getStuRight(props.row)"
>
{{
props
.
value
}}
</div>
</q-td>
</q-td>
</
template
>
</
template
>
<
template
v-slot:body-cell-StuSex=
"props"
>
<
template
v-slot:body-cell-StuSex=
"props"
>
...
@@ -54,21 +54,10 @@
...
@@ -54,21 +54,10 @@
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"min-width:190px;width:100%"
>
<q-btn
v-if=
"props.row.StudentAccount==''"
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"创建账号"
@
click=
"createAccount(props.row.StuId)"
/>
<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)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditStudent(props.row)"
/>
</div>
</q-td>
</
template
>
</q-table>
</q-table>
<student-form
v-if=
"isShowStuForm"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
<student-form
v-if=
"isShowStuForm"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
>
</student-form>
</student-form>
<studentRight-form
v-if=
"isShowStuRight"
:save-obj=
"stuOption"
@
close=
"closeStuForm"
@
success=
"refreshPage"
></studentRight-form>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -83,12 +72,15 @@
...
@@ -83,12 +72,15 @@
resetPassword
resetPassword
}
from
'../../api/users/user.js'
}
from
'../../api/users/user.js'
import
studentForm
from
'../../components/school/student/student-form'
import
studentForm
from
'../../components/school/student/student-form'
import
studentRightForm
from
'../../components/school/student/studentRight-form'
export
default
{
export
default
{
meta
:
{
meta
:
{
title
:
"学员管理"
title
:
"学员管理"
},
},
components
:
{
components
:
{
studentForm
,
studentForm
,
studentRightForm
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -130,12 +122,6 @@
...
@@ -130,12 +122,6 @@
field
:
'SName'
,
field
:
'SName'
,
align
:
'left'
,
align
:
'left'
,
},
},
{
name
:
'AreaName'
,
label
:
'区域'
,
field
:
'AreaName'
,
align
:
'left'
,
},
{
{
name
:
'Status'
,
name
:
'Status'
,
label
:
'状态'
,
label
:
'状态'
,
...
@@ -147,23 +133,6 @@
...
@@ -147,23 +133,6 @@
label
:
'创建人'
,
label
:
'创建人'
,
align
:
'left'
,
align
:
'left'
,
field
:
'CreateByName'
field
:
'CreateByName'
},
{
name
:
'CreateTimeStr'
,
label
:
'入学时间'
,
align
:
'left'
,
field
:
'CreateTimeStr'
},
{
name
:
'StudentAccount'
,
label
:
'账号'
,
align
:
'left'
,
field
:
'StudentAccount'
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'StuId'
}
}
],
],
data
:
[],
data
:
[],
...
@@ -195,7 +164,8 @@
...
@@ -195,7 +164,8 @@
stuOption
:
null
,
stuOption
:
null
,
schoolList
:
[],
schoolList
:
[],
isShowStuForm
:
false
,
isShowStuForm
:
false
,
resetLoading
:
false
resetLoading
:
false
,
isShowStuRight
:
false
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -346,6 +316,16 @@
...
@@ -346,6 +316,16 @@
},
},
closeStuForm
()
{
closeStuForm
()
{
this
.
isShowStuForm
=
false
;
this
.
isShowStuForm
=
false
;
this
.
isShowStuRight
=
false
;
},
//点击学生姓名弹出
getStuRight
(
obj
){
if
(
obj
)
{
this
.
stuOption
=
obj
;
}
else
{
this
.
stuOption
=
null
;
}
this
.
isShowStuRight
=
true
;
}
}
},
},
}
}
...
...
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