Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
a861ed05
Commit
a861ed05
authored
Aug 09, 2023
by
zhaopanyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zpy 8.9
parent
d4fc7d62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
ruoyi-ui/src/views/smartSchool/classAdviser/courseView/index.vue
+11
-12
No files found.
ruoyi-ui/src/views/smartSchool/classAdviser/courseView/index.vue
View file @
a861ed05
<
template
>
<div
class=
"app-container"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"80px"
>
<el-form-item
label=
"任务名称"
prop=
"curriculaName"
>
<el-select
v-model=
"queryParams.curriculaName"
placeholder=
"请选择任务名称"
@
change=
"updateClassList"
>
<el-option
v-for=
"(item, index) in taskNameList"
:key=
"index"
:label=
"item.curriculaName"
...
...
@@ -38,8 +37,6 @@
<div
class=
"flexBlock person"
>
<div>
总人数:
{{
taskStats
.
total
}}
人
</div>
<div>
已选课:
<span>
{{
taskStats
.
selected
}}
</span>
人
</div>
</div>
<el-table
:data=
"courseSelectionData"
stripe
>
<el-table-column
label=
"序号"
type=
"index"
width=
"55"
align=
"center"
/>
...
...
@@ -63,16 +60,11 @@
<div
v-else-if=
"row.courseType == 2"
>
{{
selectDictLabel
(
dict
.
type
.
section_type
,
row
.
selectedCourse
)
}}
</div>
<div
v-else-if=
"row.courseType == 3"
>
{{
selectDictLabel
(
dict
.
type
.
art_subject
,
row
.
selectedSubject
)
}}
{{
selectDictLabel
(
dict
.
type
.
section_type
,
row
.
selectedCourse
)
}}
{{
selectDictLabel
(
dict
.
type
.
art_subject
,
row
.
selectedSubject
)
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"所选科目"
align=
"center"
prop=
"selectedSubject"
>
<
template
slot-scope=
"{ row }"
>
<div>
{{
selectDictLabel
(
dict
.
type
.
art_subject
,
row
.
selectedSubject
)
}}
</div>
</
template
>
</el-table-column>
</el-table>
<pagination
ref=
"pageBlock"
v-show=
"total > 0"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
@
pagination=
"getList"
/>
...
...
@@ -88,6 +80,7 @@ export default {
data
()
{
return
{
taskStats
:
{},
//班级
grades
:
[],
queryParams
:
{
pageNum
:
1
,
...
...
@@ -196,14 +189,20 @@ export default {
//重置
resetQuery
()
{
this
.
query
Form
=
{
this
.
query
Params
=
{
pageNum
:
1
,
pageSize
:
10
};
//默认选择最新的任务名称
if
(
this
.
taskNameList
.
length
>
0
)
{
const
firstTask
=
this
.
taskNameList
[
0
];
this
.
queryParams
.
curriculaName
=
firstTask
.
curriculaId
;
}
this
.
taskStats
.
total
=
0
;
this
.
taskStats
.
selected
=
0
;
this
.
calculateStats
();
this
.
resetForm
(
"queryForm"
);
// this.calculateStats();
this
.
resetForm
(
"queryParams"
);
this
.
getList
();
},
...
...
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