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
322069a7
Commit
322069a7
authored
Jan 10, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3bc29c1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
31 deletions
+36
-31
lesson-form.vue
src/components/course/lesson-form.vue
+36
-31
No files found.
src/components/course/lesson-form.vue
View file @
322069a7
...
...
@@ -188,7 +188,7 @@
}
</
style
>
<
template
>
<div
v-if=
"!isShowSign"
>
<div
v-if=
"!isShowSign
Form
"
>
<div
class=
"lesson_Form"
>
<div
class=
"calenderHeader"
>
<div>
...
...
@@ -200,7 +200,7 @@
<div>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增日程"
v-if=
"isShowBtn"
@
click=
"addNew()"
>
<q-popup-proxy>
<q-banner
v-if=
"isShow
Menu
"
>
<q-banner
v-if=
"isShow
AddForm
"
>
<div
class=
"calenderDialog"
>
<div
style=
"margin:10px 0 15px 0;"
>
新增课程安排
</div>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
v-model=
"addMsg.TeacherId"
...
...
@@ -267,7 +267,7 @@
</div>
</template>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShow
Menu
=false"
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShow
AddForm
=false"
style=
"font-weight:400 !important"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveSteps"
/>
</q-card-actions>
...
...
@@ -318,10 +318,10 @@
</template>
<
template
v-slot:body-cell-optioned=
"props"
v-if=
"isShowBtn"
>
<q-td
:props=
"props"
style=
"width:130px;"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400;"
label=
"编辑
"
@
click=
"getInfo(props.row)"
>
<q-btn
v-if=
"isShowEdit(props.row) "
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400;
"
label=
"编辑"
@
click=
"getInfo(props.row)"
>
<q-popup-proxy>
<q-banner
v-if=
"isShowEdit"
>
<q-banner
v-if=
"isShowEdit
Form
"
>
<div
class=
"calenderDialog"
>
<div
style=
"margin:10px 0 15px 0;"
>
{{
props
.
row
.
ClassDateStr
}}
课程安排
</div>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
...
...
@@ -388,7 +388,7 @@
</div>
</template>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit=false"
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit
Form
=false"
style=
"font-weight:400 !important"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveSteps"
/>
...
...
@@ -416,9 +416,10 @@
<div
class=
"calendarTop"
>
<div>
{{
item
.
RoomName
}}
</div>
<div>
<i
v-if=
"!item.IsEndDate&&isShowBtn"
class=
"iconfont icon-edit Lessicon_Edit"
style=
"display:none;"
@
click
.
stop=
"getInfo(item)"
>
<i
v-if=
"!item.IsEndDate&&isShowBtn"
class=
"iconfont icon-edit Lessicon_Edit"
style=
"display:none;"
@
click
.
stop=
"getInfo(item)"
>
<q-popup-proxy>
<q-banner
v-if=
"isShowEdit"
>
<q-banner
v-if=
"isShowEdit
Form
"
>
<div
class=
"calenderDialog"
>
<div
style=
"margin:10px 0 15px 0;"
>
{{
item
.
ClassDateStr
}}
课程安排
</div>
<q-select
filled
stack-label
option-value=
"TId"
option-label=
"TeacherName"
...
...
@@ -487,7 +488,7 @@
</div>
</template>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit=false"
<q-btn
label=
"取消"
flat
color=
"grey-10"
@
click=
"isShowEdit
Form
=false"
style=
"font-weight:400 !important"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveSteps"
/>
...
...
@@ -526,7 +527,7 @@
<div
v-else
>
<div>
<div
class=
"Show_SignBack"
>
<span
@
click=
"isShowSign=false"
style=
"cursor:pointer;"
><i
class=
"iconfont icon-zuo1"
></i>
返回
</span>
<span
@
click=
"isShowSign
Form
=false"
style=
"cursor:pointer;"
><i
class=
"iconfont icon-zuo1"
></i>
返回
</span>
</div>
<div
class=
"StudentInfo_List"
style=
"color:#000;"
>
<div>
...
...
@@ -612,9 +613,8 @@
</div>
</div>
</div>
<!--&&isSigned-->
<q-card-actions
align=
"right"
class=
"bg-white"
v-if=
"isShowSignBtn"
style=
"margin:20px 10px 100px 0;"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"isShowSign=false"
/>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"isShowSign
Form
=false"
/>
<q-btn
label=
"确认"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
@
click=
"saveSign()"
/>
</q-card-actions>
</div>
...
...
@@ -674,7 +674,6 @@
isSetMore
:
1
,
//是否显示更多设置
isSetMoreTwo
:
1
,
ClassRoomList
:
[],
//教室下拉数据
dayMsg
:
{
//获取某一天的计划信息请求
ClassPlanId
:
0
,
School_Id
:
0
,
...
...
@@ -682,14 +681,12 @@
ClassTimeId
:
0
,
//签到的第几节课
},
dayObj
:
{},
comChecked
:
{
ClassDate
:
""
,
ClassRoomId
:
0
,
TeacherId
:
0
,
ClassTimeId
:
0
,
},
//点击选中复制
isSigned
:
true
,
},
columns
:
[{
name
:
'RoomName'
,
label
:
'教室名称'
,
...
...
@@ -771,9 +768,9 @@
}
],
isShowBtn
:
true
,
isShow
Menu
:
false
,
//是否显示弹出
isShowEdit
:
false
,
//是否显示修改弹出
isShowSign
:
false
,
isShow
AddForm
:
false
,
//是否显示新增上课计划表单
isShowEdit
Form
:
false
,
//是否显示修改上课计划表单
isShowSign
Form
:
false
,
//是否显示签到表单
isShowSignBtn
:
false
,
//是否显示签到提交按钮
currentUser
:
{},
}
...
...
@@ -798,6 +795,18 @@
this
.
getClassPlan
();
},
methods
:
{
//是否显示编辑按钮
isShowEdit
(
item
)
{
var
flag
=
true
;
if
(
item
.
IsEndDate
)
{
if
(
this
.
currentUser
.
Id
==
1
)
{
flag
=
true
;
}
else
{
flag
=
false
;
}
}
return
flag
;
},
initData
()
{
this
.
$nextTick
(()
=>
{
// 点击上个月、
...
...
@@ -867,7 +876,7 @@
},
//点击新增
addNew
()
{
this
.
isShow
Menu
=
true
;
this
.
isShow
AddForm
=
true
;
var
d
=
new
Date
();
var
seperator1
=
"-"
;
var
year
=
d
.
getFullYear
();
...
...
@@ -924,8 +933,8 @@
}
setClassPlan
(
this
.
addMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
isShow
Menu
=
false
;
this
.
isShowEdit
=
false
;
this
.
isShow
AddForm
=
false
;
this
.
isShowEdit
Form
=
false
;
var
d
=
new
Date
(
this
.
value
);
var
datetime
=
d
.
getFullYear
()
+
'-'
+
(
d
.
getMonth
()
+
1
);
this
.
getClassPlan
();
...
...
@@ -934,7 +943,7 @@
},
//日历点击修改
getInfo
(
item
)
{
this
.
isShowEdit
=
true
;
this
.
isShowEdit
Form
=
true
;
var
Obj
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
this
.
addMsg
.
ClassPlanId
=
Obj
.
ClassPlanId
;
this
.
addMsg
.
ClassId
=
Obj
.
ClassId
;
...
...
@@ -970,7 +979,7 @@
},
//点击日历
getClicked
(
item
,
subItem
)
{
this
.
isShowSign
=
true
;
this
.
isShowSign
Form
=
true
;
this
.
dayMsg
.
ClassPlanId
=
item
.
ClassPlanId
;
this
.
dayMsg
.
School_Id
=
this
.
setingObj
.
School_Id
;
this
.
dayMsg
.
ClassId
=
this
.
setingObj
.
ClassId
;
...
...
@@ -1001,11 +1010,7 @@
x
.
StudyNum
=
this
.
dayObj
.
DefaultMinutes
;
}
})
if
(
count
==
this
.
dayObj
.
GuestList
.
length
)
{
this
.
isSigned
=
true
;
}
else
{
this
.
isSigned
=
false
;
}
this
.
dayObj
.
GuestList
.
forEach
(
x
=>
{
if
(
this
.
isShowSignBtn
&&
x
.
IsCheck
==
-
1
)
{
x
.
IsCheck
=
0
;
...
...
@@ -1043,7 +1048,7 @@
})
addClassCheck
(
signMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
isShowSign
=
false
;
this
.
isShowSign
Form
=
false
;
this
.
getClassPlan
();
}
})
...
...
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