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
896bddc9
Commit
896bddc9
authored
Jul 23, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
96c5dd21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
231 additions
and
208 deletions
+231
-208
makeUpHours.vue
src/components/stuMan/makeUpHours.vue
+231
-208
No files found.
src/components/stuMan/makeUpHours.vue
View file @
896bddc9
<
template
>
<
template
>
<!-- 可补课时 -->
<!-- 可补课时 -->
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-dialog
<q-card
style=
"width: 900px;max-width:900px;"
>
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 900px; max-width: 900px"
>
<q-card-section>
<q-card-section>
<div
class=
"text-h6"
v-if=
"type
==
1"
>
可补课课时
</div>
<div
class=
"text-h6"
v-if=
"type
==
1"
>
可补课课时
</div>
<div
class=
"text-h6"
v-if=
"type
==
2"
>
缺勤次数
</div>
<div
class=
"text-h6"
v-if=
"type
==
2"
>
缺勤次数
</div>
<div
class=
"text-h6"
v-if=
"type
==3"
>
请假
</div>
<div
class=
"text-h6"
v-if=
"type
== 3"
>
请假次数
</div>
</q-card-section>
</q-card-section>
<q-card-section
class=
"q-pt-none"
>
<q-card-section
class=
"q-pt-none"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table "
<q-table
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<template
v-slot:top=
"props"
>
<!--
<div
class=
"col-2 q-table__title"
>
可补课课时
</div>
-->
<!--
<div
class=
"col-2 q-table__title"
>
可补课课时
</div>
-->
</
template
>
</
template
>
...
@@ -22,13 +37,25 @@
...
@@ -22,13 +37,25 @@
</template> -->
</template> -->
<
template
v-slot:bottom
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
<q-pagination
:input=
"true"
@
input=
"changePage"
/>
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</
template
>
</q-table>
</q-table>
</q-card-section>
</q-card-section>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeSaveForm"
/>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight: 400 !important"
@
click=
"closeSaveForm"
/>
<!-- <q-btn label="立即提交" color="accent q-px-md" style="font-weight:400 !important" :loading="saveLoading"
<!-- <q-btn label="立即提交" color="accent q-px-md" style="font-weight:400 !important" :loading="saveLoading"
@click="save" /> -->
@click="save" /> -->
</q-card-actions>
</q-card-actions>
...
@@ -37,18 +64,16 @@
...
@@ -37,18 +64,16 @@
</template>
</template>
<
script
>
<
script
>
import
{
import
{
getClassCheckPageList
}
from
"../../api/stuMan/index.js"
;
getClassCheckPageList
export
default
{
}
from
'../../api/stuMan/index.js'
export
default
{
props
:
{
props
:
{
type
:
{
type
:
{
type
:
Number
,
type
:
Number
,
default
:
1
default
:
1
,
},
},
setObj
:
{
setObj
:
{
type
:
Object
,
type
:
Object
,
}
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -82,7 +107,7 @@
...
@@ -82,7 +107,7 @@
name
:
"ClassNo"
,
name
:
"ClassNo"
,
label
:
"班号"
,
label
:
"班号"
,
align
:
"left"
,
align
:
"left"
,
field
:
"ClassNo"
field
:
"ClassNo"
,
},
},
{
{
name
:
"CourseName"
,
name
:
"CourseName"
,
...
@@ -121,41 +146,41 @@
...
@@ -121,41 +146,41 @@
align
:
"left"
,
align
:
"left"
,
field
:
"CreateTime"
,
field
:
"CreateTime"
,
},
},
]
],
}
};
},
},
mounted
()
{
mounted
()
{
if
(
this
.
setObj
)
{
if
(
this
.
setObj
)
{
this
.
msg
.
OrderGuestId
=
this
.
setObj
.
Student_Id
this
.
msg
.
OrderGuestId
=
this
.
setObj
.
Student_Id
;
}
}
if
(
this
.
type
===
1
)
{
if
(
this
.
type
===
1
)
{
//可补课时
//可补课时
this
.
msg
.
CheckStatus
=
1
this
.
msg
.
CheckStatus
=
1
;
this
.
msg
.
MakeUpStatus
=
2
this
.
msg
.
MakeUpStatus
=
2
;
}
else
if
(
this
.
type
===
2
)
{
}
else
if
(
this
.
type
===
2
)
{
// 缺勤
// 缺勤
this
.
msg
.
CheckStatus
=
1
this
.
msg
.
CheckStatus
=
1
;
delete
this
.
msg
.
MakeUpStatus
delete
this
.
msg
.
MakeUpStatus
;
}
else
if
(
this
.
type
===
3
)
{
}
else
if
(
this
.
type
===
3
)
{
// 请假
// 请假
this
.
msg
.
CheckStatus
=
2
this
.
msg
.
CheckStatus
=
2
;
delete
this
.
msg
.
MakeUpStatus
delete
this
.
msg
.
MakeUpStatus
;
}
}
this
.
getList
();
this
.
getList
();
},
},
methods
:
{
methods
:
{
closeSaveForm
()
{
closeSaveForm
()
{
this
.
$emit
(
'close'
)
this
.
$emit
(
"close"
);
this
.
persistent
=
false
this
.
persistent
=
false
;
},
},
getList
()
{
getList
()
{
getClassCheckPageList
(
this
.
msg
).
then
(
res
=>
{
getClassCheckPageList
(
this
.
msg
).
then
((
res
)
=>
{
console
.
log
(
83
,
res
)
console
.
log
(
83
,
res
);
if
(
res
.
Code
===
1
)
{
if
(
res
.
Code
===
1
)
{
this
.
data
=
res
.
Data
.
PageData
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
this
.
pageCount
=
res
.
Data
.
PageCount
;
}
}
})
});
},
},
//重新查询
//重新查询
resetSearch
()
{
resetSearch
()
{
...
@@ -165,15 +190,14 @@
...
@@ -165,15 +190,14 @@
//翻页
//翻页
changePage
(
val
)
{
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
this
.
getList
()
this
.
getList
();
},
},
},
},
}
};
</
script
>
</
script
>
<
style
>
<
style
>
.avatar-uploader
.el-upload
{
.avatar-uploader
.el-upload
{
border-radius
:
6px
;
border-radius
:
6px
;
cursor
:
pointer
;
cursor
:
pointer
;
width
:
100%
;
width
:
100%
;
...
@@ -181,26 +205,26 @@
...
@@ -181,26 +205,26 @@
color
:
#8c939d
;
color
:
#8c939d
;
position
:
relative
;
position
:
relative
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.addDutyMain
{
.addDutyMain
{
display
:
inline-block
;
display
:
inline-block
;
width
:
118px
;
width
:
118px
;
height
:
118px
;
height
:
118px
;
font-size
:
70px
;
font-size
:
70px
;
border
:
1px
dashed
#d9d9d9
;
border
:
1px
dashed
#d9d9d9
;
line-height
:
120px
;
line-height
:
120px
;
}
}
.ItemImgDiv
{
.ItemImgDiv
{
width
:
118px
;
width
:
118px
;
height
:
118px
;
height
:
118px
;
position
:
relative
;
position
:
relative
;
margin
:
0
10px
10px
0
;
margin
:
0
10px
10px
0
;
display
:
inline-block
;
display
:
inline-block
;
}
}
._delete_img
{
._delete_img
{
position
:
absolute
;
position
:
absolute
;
top
:
0px
;
top
:
0px
;
height
:
82px
;
height
:
82px
;
...
@@ -210,20 +234,20 @@
...
@@ -210,20 +234,20 @@
background-color
:
rgba
(
2
,
2
,
2
,
0.6
);
background-color
:
rgba
(
2
,
2
,
2
,
0.6
);
display
:
inherit
;
display
:
inherit
;
opacity
:
0
;
opacity
:
0
;
transition
:
all
linear
.5s
transition
:
all
linear
0.5s
;
}
}
._delete_img
i
.iconfont
{
._delete_img
i
.iconfont
{
display
:
inline-block
;
display
:
inline-block
;
width
:
32px
;
width
:
32px
;
height
:
32px
;
height
:
32px
;
border-radius
:
50%
;
border-radius
:
50%
;
color
:
#E
95252
!important
;
color
:
#e
95252
!important
;
background-color
:
rgba
(
251
,
251
,
251
,
0.9
);
background-color
:
rgba
(
251
,
251
,
251
,
0.9
);
margin-top
:
26px
;
margin-top
:
26px
;
}
}
._upload_box
ul
li
{
._upload_box
ul
li
{
float
:
left
;
float
:
left
;
height
:
82px
;
height
:
82px
;
width
:
143px
;
width
:
143px
;
...
@@ -232,18 +256,18 @@
...
@@ -232,18 +256,18 @@
position
:
relative
;
position
:
relative
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
._upload_box
ul
li
img
{
._upload_box
ul
li
img
{
height
:
82px
;
height
:
82px
;
width
:
143px
;
width
:
143px
;
}
}
._upload_box
ul
li
:hover
._delete_img
{
._upload_box
ul
li
:hover
._delete_img
{
opacity
:
1
;
opacity
:
1
;
}
}
._upload_tips
{
._upload_tips
{
font-size
:
12px
;
font-size
:
12px
;
position
:
absolute
;
position
:
absolute
;
top
:
71%
;
top
:
71%
;
...
@@ -251,6 +275,5 @@
...
@@ -251,6 +275,5 @@
left
:
0
;
left
:
0
;
text-align
:
center
;
text-align
:
center
;
color
:
#949494
;
color
:
#949494
;
}
}
</
style
>
</
style
>
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