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
1f9b468f
Commit
1f9b468f
authored
Sep 04, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
样式调整
parent
9763c0ec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1525 additions
and
2094 deletions
+1525
-2094
reservestudentlist.vue
src/components/schedul/reservestudentlist.vue
+39
-45
student-shiting.vue
src/components/school/student/student-shiting.vue
+144
-138
transfer-order.vue
src/components/school/student/transfer-order.vue
+328
-336
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+828
-1294
yueke.vue
src/components/school/student/transfer-order/yueke.vue
+186
-281
No files found.
src/components/schedul/reservestudentlist.vue
View file @
1f9b468f
<
template
>
<div
class=
"page-content"
:class=
"[$q.platform.is.desktop?'':'']"
>
<div
class=
"page-content"
:class=
"[$q.platform.is.desktop?'':'']"
>
<q-table
v-if=
"$q.platform.is.desktop"
:pagination=
"pageMsg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
:visible-columns=
"visibleColumns"
row-key=
"name"
>
<template
v-slot:top
>
<div
class=
"q-table__title"
:class=
"[$q.platform.is.desktop?'col-2':'col-12']"
>
试听开课管理
</div>
<div
class=
"q-table__title"
:class=
"[$q.platform.is.desktop?'col-2':'col-12']"
>
试听开课管理
</div>
<q-space
/>
</
template
>
<
template
v-slot:body-cell-ReservationDate=
"props"
>
<q-td>
...
...
@@ -21,8 +18,8 @@
<q-td
:props=
"props"
>
<div
style=
"min-width: 150px;word-break: break-word;white-space: normal;"
>
{{
props
.
row
.
ClassDateStr
}}
{{
props
.
row
.
ClassTime
}}
<template
v-if=
"props.row.ClassDateStr&&props.row.ClassDateStr.length>0"
>
-
</
template
>
{{ props.row.EndTime }}
<template
v-if=
"props.row.ClassDateStr&&props.row.ClassDateStr.length>0"
>
-
</
template
>
{{ props.row.EndTime }}
</div>
</q-td>
</template>
...
...
@@ -41,12 +38,8 @@
</
template
>
</q-table>
<
template
v-if=
"$q.platform.is.mobile"
>
<q-card
class=
"light-shadow q-pa-md bg-grey-1 rounded-borders q-mb-md"
flat
v-for=
"(x, index) in data"
:key=
"index"
>
<q-card
class=
"light-shadow q-pa-md bg-grey-1 rounded-borders q-mb-md"
flat
v-for=
"(x, index) in data"
:key=
"index"
>
<div
class=
"row justify-between"
>
<div>
学生:
<span
class=
"text-blue-5"
>
{{
x
.
StuName
}}
</span></div>
<div>
试听日期:
<span
class=
"text-blue-5"
>
{{
timeFormatSeconds
(
x
.
ReservationDate
)
}}
</span></div>
...
...
@@ -67,8 +60,8 @@
</div>
</div>
<div
class=
"row justify-end"
>
<q-btn
label=
"修改"
color=
"primary"
flat
@
click=
"editVisitor(x)"
/>
<q-btn
label=
"删除"
color=
"red-6"
flat
@
click=
"DeleteVisitorReserve(x.Id)"
/>
<q-btn
label=
"修改"
color=
"primary"
flat
@
click=
"editVisitor(x)"
/>
<q-btn
label=
"删除"
color=
"red-6"
flat
@
click=
"DeleteVisitorReserve(x.Id)"
/>
</div>
</q-card>
</
template
>
...
...
@@ -103,9 +96,8 @@
},
data
()
{
return
{
columns
:
[
{
name
:
'StuName'
,
columns
:
[{
name
:
'StuName'
,
label
:
'学生名称'
,
align
:
'left'
,
field
:
'StuName'
,
...
...
@@ -161,7 +153,7 @@
],
//表格可见列
visibleColumns
:
[
'StuName'
,
'ReservationDate'
,
'Demand'
,
'ClassDateStr'
,
'TeacherName'
,
'LessonName'
,
'RoomName'
,
'TeacherId'
'StuName'
,
'ReservationDate'
,
'Demand'
,
'ClassDateStr'
,
'TeacherName'
,
'LessonName'
,
'RoomName'
,
'TeacherId'
],
//可见列
reserveObj
:
{},
isShowReserve
:
false
,
...
...
@@ -181,31 +173,31 @@
},
methods
:
{
//获得年月日时分秒
//传入日期//例:2020-10-27T14:36:23
timeFormatSeconds
(
time
,
type
)
{
let
timeStr
=
""
;
if
(
time
===
'0001-01-01T00:00:00'
)
{
return
timeStr
;
}
var
d
=
time
?
new
Date
(
time
)
:
new
Date
();
var
year
=
d
.
getFullYear
();
var
month
=
d
.
getMonth
()
+
1
;
var
day
=
d
.
getDate
();
if
(
month
<
10
)
month
=
'0'
+
month
;
if
(
day
<
10
)
day
=
'0'
+
day
;
if
(
type
==
2
)
{
var
hours
=
d
.
getHours
();
var
min
=
d
.
getMinutes
();
var
seconds
=
d
.
getSeconds
();
if
(
hours
<
0
)
hours
=
'0'
+
hours
;
if
(
min
<
10
)
min
=
'0'
+
min
;
if
(
seconds
<
10
)
seconds
=
'0'
+
seconds
;
timeStr
+=
' '
+
hours
+
':'
+
min
+
':'
+
seconds
;
}
//传入日期//例:2020-10-27T14:36:23
timeFormatSeconds
(
time
,
type
)
{
let
timeStr
=
""
;
if
(
time
===
'0001-01-01T00:00:00'
)
{
return
timeStr
;
}
var
d
=
time
?
new
Date
(
time
)
:
new
Date
();
var
year
=
d
.
getFullYear
();
var
month
=
d
.
getMonth
()
+
1
;
var
day
=
d
.
getDate
();
if
(
month
<
10
)
month
=
'0'
+
month
;
if
(
day
<
10
)
day
=
'0'
+
day
;
if
(
type
==
2
)
{
var
hours
=
d
.
getHours
();
var
min
=
d
.
getMinutes
();
var
seconds
=
d
.
getSeconds
();
if
(
hours
<
0
)
hours
=
'0'
+
hours
;
if
(
min
<
10
)
min
=
'0'
+
min
;
if
(
seconds
<
10
)
seconds
=
'0'
+
seconds
;
timeStr
+=
' '
+
hours
+
':'
+
min
+
':'
+
seconds
;
}
timeStr
=
year
+
'-'
+
month
+
'-'
+
day
+
timeStr
;
return
timeStr
;
},
timeStr
=
year
+
'-'
+
month
+
'-'
+
day
+
timeStr
;
return
timeStr
;
},
//编辑试听
editVisitor
(
obj
)
{
this
.
reserveObj
=
obj
...
...
@@ -220,8 +212,8 @@ return timeStr;
},
//删除试听
DeleteVisitorReserve
(
Id
)
{
//删除试听
DeleteVisitorReserve
(
Id
)
{
let
that
=
this
;
this
.
$q
.
dialog
({
...
...
@@ -250,7 +242,9 @@ return timeStr;
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
src/components/school/student/student-shiting.vue
View file @
1f9b468f
This diff is collapsed.
Click to expand it.
src/components/school/student/transfer-order.vue
View file @
1f9b468f
This diff is collapsed.
Click to expand it.
src/components/school/student/transfer-order/order-form.vue
View file @
1f9b468f
This diff is collapsed.
Click to expand it.
src/components/school/student/transfer-order/yueke.vue
View file @
1f9b468f
This diff is collapsed.
Click to expand it.
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