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
83ec657f
Commit
83ec657f
authored
Dec 25, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
27a4c245
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
11 deletions
+37
-11
index.js
src/api/school/index.js
+12
-0
class-form.vue
src/components/course/class-form.vue
+23
-8
lesson-form.vue
src/components/course/lesson-form.vue
+2
-3
No files found.
src/api/school/index.js
View file @
83ec657f
...
...
@@ -218,6 +218,18 @@ export function saveClass(data) {
})
}
/**
* 修改班级状态
* @param {JSON数据} data
*/
export
function
saveClassStatus
(
data
)
{
return
request
({
url
:
'/Class/SetClassStatus'
,
method
:
'post'
,
data
})
}
/**
* 新增修改班级
* @param {JSON数据} data
...
...
src/components/course/class-form.vue
View file @
83ec657f
...
...
@@ -86,7 +86,7 @@
</div>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"CourseId"
option-label=
"CourseName"
v-model=
"objOption.CouseId"
ref=
"CouseId"
:options=
"C
lass
List"
label=
"关联课程"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
ref=
"CouseId"
:options=
"C
ourse
List"
label=
"关联课程"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
</div>
...
...
@@ -353,7 +353,7 @@
},
optionTitle
:
""
,
saveCourseLoading
:
false
,
C
lass
List
:
[],
//关联课程下拉数据
C
ourse
List
:
[],
//关联课程下拉数据
TeacherList
:
[],
//关联教师下拉数据
SchoolList
:
[],
//关联校区下拉数据
ClassRoomList
:
[],
//教室下拉数据
...
...
@@ -414,7 +414,7 @@
created
()
{
this
.
initDayList
();
this
.
getSchool
();
this
.
CourseList
();
this
.
get
CourseList
();
this
.
getClassRoomList
();
this
.
GetTeacherList
();
this
.
GetClassTypeList
();
...
...
@@ -501,7 +501,6 @@
},
//保存班级
saveCourse
()
{
this
.
saveCourseLoading
=
true
this
.
objOption
.
ClassStepPriceList
=
this
.
ladderPriceList
;
if
(
this
.
objOption
.
ClassName
==
''
)
{
this
.
$q
.
notify
({
...
...
@@ -557,6 +556,7 @@
this
.
objOption
.
WeekDayList
=
this
.
checkedDays
;
//默认上课时间
this
.
objOption
.
DefaultPlanTimeList
=
this
.
DefaultPlanTimeList
;
this
.
saveCourseLoading
=
true
;
saveClass
(
this
.
objOption
).
then
(
res
=>
{
this
.
saveCourseLoading
=
false
this
.
$q
.
notify
({
...
...
@@ -573,10 +573,15 @@
})
},
//获取课程
CourseList
()
{
get
CourseList
()
{
queryCourseDropdownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
ClassList
=
res
.
Data
;
this
.
CourseList
=
res
.
Data
;
var
obj
=
{
CourseName
:
'请选择'
,
CourseId
:
0
}
this
.
CourseList
.
unshift
(
obj
);
}
})
},
...
...
@@ -585,6 +590,11 @@
getTeacherDropDownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
var
obj
=
{
TeacherName
:
'请选择'
,
TId
:
0
}
this
.
TeacherList
.
unshift
(
obj
);
}
})
},
...
...
@@ -594,7 +604,7 @@
if
(
res
.
Code
==
1
)
{
this
.
SchoolList
=
res
.
Data
;
var
obj
=
{
SName
:
'
全部
'
,
SName
:
'
请选择
'
,
SId
:
0
}
this
.
SchoolList
.
unshift
(
obj
);
...
...
@@ -606,6 +616,11 @@
queryClassRoomList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
ClassRoomList
=
res
.
Data
;
var
obj
=
{
RoomName
:
'请选择'
,
RoomId
:
0
}
this
.
ClassRoomList
.
unshift
(
obj
);
}
})
},
...
...
@@ -639,7 +654,7 @@
this
.
DefaultPlanTimeList
.
splice
(
index
,
1
);
},
//获取班级类型下拉
GetClassTypeList
(){
GetClassTypeList
()
{
GetClassTypeList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
classTypeList
=
res
.
Data
;
...
...
src/components/course/lesson-form.vue
View file @
83ec657f
...
...
@@ -354,7 +354,6 @@
<div
class=
"less_Isout"
v-if=
"isShowSignBtn"
>
<span
v-if=
"item.IsCheck==0"
>
出勤
</span>
<span
v-if=
"item.IsCheck==1"
>
缺勤
</span>
<!-- <span v-if="item.IsCheck==-1">缺勤</span> -->
</div>
<div
class=
"less_Isout"
v-else
>
<span
v-if=
"item.IsCheck==0"
>
出勤
</span>
...
...
@@ -367,7 +366,6 @@
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"isShowSign=false"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveSign()"
/>
</q-card-actions>
</div>
</div>
</div>
...
...
@@ -599,7 +597,8 @@
this
.
dayObj
=
res
.
Data
;
var
d
=
new
Date
();
var
datetime
=
d
.
getFullYear
()
+
'-'
+
(
d
.
getMonth
()
+
1
)
+
'-'
+
d
.
getDate
();
if
(
this
.
dayObj
.
ClassDate
==
datetime
)
{
//HK 2020-12-25修改
if
(
this
.
dayObj
.
ClassDate
<=
datetime
)
{
this
.
isShowSignBtn
=
true
;
}
else
{
this
.
isShowSignBtn
=
false
;
...
...
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