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
4eeb66d1
Commit
4eeb66d1
authored
Dec 03, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
1b2f333b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
70 deletions
+44
-70
classroom.vue
src/pages/school/classroom.vue
+44
-70
No files found.
src/pages/school/classroom.vue
View file @
4eeb66d1
...
...
@@ -3,20 +3,12 @@
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.
Class
Name"
label=
"
班级
名称"
/>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.
Room
Name"
label=
"
教室
名称"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.CourseName"
label=
"课程名称"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.TeacherName"
label=
"讲师名称"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.AssistName"
label=
"助教名称"
/>
<q-select
@
input=
"getList"
standout=
"bg-primary text-white"
option-value=
"SId"
option-label=
"SName"
v-model=
"msg.School_Id"
:options=
"schoolList"
emit-value
map-options
label=
"关联校区"
/>
</div>
</div>
<div
class=
"page-option"
>
...
...
@@ -77,8 +69,8 @@
</template>
<
script
>
import
{
getClass
Page
,
deleteClass
queryClassRoom
Page
,
getSchoolDropdown
}
from
'../../api/school/index'
import
classForm
from
'../../components/school/classmanage/class-form'
export
default
{
...
...
@@ -92,54 +84,17 @@
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'ClassName'
,
required
:
true
,
label
:
'班级名称'
,
name
:
'RoomName'
,
label
:
'教师名称'
,
align
:
'left'
,
field
:
row
=>
row
.
ClassName
field
:
'RoomName'
,
},
{
name
:
'
Course
Name'
,
label
:
'所属
课程
'
,
field
:
'
Course
Name'
,
name
:
'
School
Name'
,
label
:
'所属
校区
'
,
field
:
'
School
Name'
,
align
:
'left'
},
{
name
:
'TeacherHead'
,
label
:
''
,
field
:
'TeacherHead'
,
align
:
'left'
,
},
{
name
:
'TeacherName'
,
label
:
'讲师'
,
field
:
'TeacherName'
,
align
:
'left'
,
},
{
name
:
'AssistIcon'
,
label
:
''
,
align
:
'left'
,
field
:
'AssistIcon'
},
{
name
:
'AssistName'
,
label
:
'助教'
,
align
:
'left'
,
field
:
'AssistName'
},
{
name
:
'StudentCount'
,
label
:
'学员数量'
,
align
:
'left'
,
field
:
'StudentCount'
},
{
name
:
'JobCount'
,
label
:
'作业数量'
,
align
:
'left'
,
field
:
'JobCount'
},
{
name
:
'CreateTimeStr'
,
label
:
'创建时间'
,
...
...
@@ -158,24 +113,42 @@
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
ClassName
:
""
,
CourseName
:
""
,
AssistName
:
""
,
TeacherName
:
""
,
RoomName
:
""
,
School_Id
:
0
,
//校区编号
},
pageCount
:
0
,
isShowEditClassForm
:
false
,
classOption
:
null
,
schoolList
:[],
//校区列表
}
},
created
()
{
this
.
getSchool
();
},
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
this
.
queryClass
Page
()
this
.
getClassRoom
Page
()
},
methods
:
{
//获取校区列表
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
var
tempArray
=
res
.
Data
;
if
(
!
tempArray
)
{
tempArray
=
[];
}
tempArray
.
unshift
({
SId
:
0
,
SName
:
"不限"
})
this
.
schoolList
=
tempArray
;
}
})
},
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
queryClass
Page
();
this
.
getClassRoom
Page
();
},
//删除班级
deleteClass
(
obj
)
{
...
...
@@ -206,21 +179,22 @@
message
:
'操作成功'
,
position
:
'top'
})
that
.
queryClass
Page
();
that
.
getClassRoom
Page
();
}
})
});
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
queryClass
Page
();
this
.
getClassRoom
Page
();
},
queryClass
Page
()
{
getClassRoom
Page
()
{
this
.
loading
=
true
getClass
Page
(
this
.
msg
).
then
(
res
=>
{
queryClassRoom
Page
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
console
.
log
(
"this.data "
,
this
.
data
);
}).
catch
(()
=>
{
this
.
loading
=
false
})
...
...
@@ -233,7 +207,7 @@
this
.
msg
.
AssistName
=
""
;
this
.
msg
.
TeacherName
=
""
;
}
this
.
queryClass
Page
()
this
.
getClassRoom
Page
()
},
EditClass
(
obj
)
{
if
(
obj
)
{
...
...
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