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
e5e62b62
Commit
e5e62b62
authored
Sep 04, 2024
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
c229a0fe
f78e040d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1523 additions
and
2094 deletions
+1523
-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
+826
-1294
yueke.vue
src/components/school/student/transfer-order/yueke.vue
+186
-281
No files found.
src/components/schedul/reservestudentlist.vue
View file @
e5e62b62
<
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>
...
...
@@ -28,8 +25,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>
...
...
@@ -48,12 +45,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>
...
...
@@ -74,8 +67,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
>
...
...
@@ -111,9 +104,8 @@
},
data
()
{
return
{
columns
:
[
{
name
:
'StuName'
,
columns
:
[{
name
:
'StuName'
,
label
:
'学生名称'
,
align
:
'left'
,
field
:
'StuName'
,
...
...
@@ -169,7 +161,7 @@
],
//表格可见列
visibleColumns
:
[
'StuName'
,
'ReservationDate'
,
'Demand'
,
'ClassDateStr'
,
'TeacherName'
,
'LessonName'
,
'RoomName'
,
'TeacherId'
'StuName'
,
'ReservationDate'
,
'Demand'
,
'ClassDateStr'
,
'TeacherName'
,
'LessonName'
,
'RoomName'
,
'TeacherId'
],
//可见列
reserveObj
:
{},
isShowReserve
:
false
,
...
...
@@ -189,31 +181,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
)
{
console
.
log
(
"reserveObj"
,
obj
);
...
...
@@ -229,8 +221,8 @@ return timeStr;
},
//删除试听
DeleteVisitorReserve
(
Id
)
{
//删除试听
DeleteVisitorReserve
(
Id
)
{
let
that
=
this
;
this
.
$q
.
dialog
({
...
...
@@ -259,7 +251,9 @@ return timeStr;
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
src/components/school/student/student-shiting.vue
View file @
e5e62b62
This diff is collapsed.
Click to expand it.
src/components/school/student/transfer-order.vue
View file @
e5e62b62
This diff is collapsed.
Click to expand it.
src/components/school/student/transfer-order/order-form.vue
View file @
e5e62b62
This diff is collapsed.
Click to expand it.
src/components/school/student/transfer-order/yueke.vue
View file @
e5e62b62
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