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
b696ae1e
Commit
b696ae1e
authored
Jul 01, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11111
parent
ca334ed7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
29 deletions
+132
-29
appointmentDetails.vue
src/pages/stuMan/components/appointmentDetails.vue
+115
-0
stuAppointmentList.vue
src/pages/stuMan/components/stuAppointmentList.vue
+17
-29
No files found.
src/pages/stuMan/components/appointmentDetails.vue
0 → 100644
View file @
b696ae1e
<
style
>
</
style
>
<!--预约详情-->
<
template
>
<q-dialog
v-model=
"isShowAppointmentDialog"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 800px; max-width: 900px"
class=
"stop"
>
<q-card-section>
<div
class=
"text-h6"
>
预约详情
</div>
</q-card-section>
<div
style=
"margin: 20px"
>
<q-table
:loading=
"loading"
:pagination=
"pageMsg"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
:data=
"DataList"
:columns=
"columns"
row-key=
"name"
hide-bottom
>
<template
v-slot:body-cell-StartTime=
"props"
>
<q-td
:props=
"props"
>
{{
props
.
row
.
StartTime
}}
-
{{
props
.
row
.
EndTime
}}
</q-td>
</
template
>
<
template
v-slot:body-cell-StatusStr=
"props"
>
<q-td
:props=
"props"
>
<q-badge
:color=
"props.row.Status == 0 ? 'primary' : 'negative'"
:label=
"props.row.StatusStr"
/>
</q-td>
</
template
>
</q-table>
<q-separator
/>
</div>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight: 400 !important"
@
click=
"closeAppointmentForm"
/>
</q-card-actions>
</q-card>
</q-dialog>
</template>
<
script
>
import
{
queryPlanAppointmentDetail
,
}
from
"../../../api/stuMan/index"
;
export
default
{
name
:
"appointmentDetails"
,
props
:
{
showItem
:
{
type
:
Object
,
default
:
null
,
},
},
data
()
{
return
{
isShowAppointmentDialog
:
true
,
loading
:
false
,
columns
:
[{
name
:
"StuName"
,
label
:
"姓名"
,
field
:
"StuName"
,
align
:
"left"
,
},
{
name
:
"DateStr"
,
label
:
"预约日期"
,
field
:
"DateStr"
,
align
:
"left"
,
},
{
name
:
"StartTime"
,
label
:
"预约时段"
,
field
:
"StartTime"
,
align
:
"left"
,
},
{
name
:
"StatusStr"
,
label
:
"预约状态"
,
field
:
"StatusStr"
,
align
:
"left"
,
},
{
name
:
"CreateTime"
,
label
:
"创建时间"
,
field
:
"CreateTime"
,
align
:
"left"
,
}
],
qMsg
:
{
PlanAppointmentId
:
0
,
},
pageMsg
:
{
rowsPerPage
:
1000
},
DataList
:
[],
};
},
created
()
{
this
.
qMsg
.
PlanAppointmentId
=
this
.
showItem
.
PlanAppointmentId
},
mounted
()
{
this
.
getAppointmentDetailsList
();
},
methods
:
{
//关闭弹窗
closeAppointmentForm
()
{
this
.
$emit
(
"refreshpage"
);
},
//获取预约详情
getAppointmentDetailsList
()
{
this
.
loading
=
true
;
queryPlanAppointmentDetail
(
this
.
qMsg
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
DataList
=
res
.
Data
;
}
});
}
},
};
</
script
>
\ No newline at end of file
src/pages/stuMan/components/stuAppointmentList.vue
View file @
b696ae1e
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
</q-td>
</q-td>
<q-td
key=
"Num"
:props=
"props"
>
<q-td
key=
"Num"
:props=
"props"
>
<div
v-for=
"item in props.row.TimeList"
>
<div
v-for=
"item in props.row.TimeList"
>
<div
class=
"border-bottom"
style=
"cursor:pointer;color:blue;text-decoration:underline"
@
click=
"ShowStuAppoint(item)"
>
<div
class=
"border-bottom"
style=
"cursor:pointer;color:blue;text-decoration:underline"
@
click=
"ShowStuAppoint(item)"
>
{{
item
.
StuAppointNum
}}
{{
item
.
StuAppointNum
}}
</div>
</div>
</div>
</div>
...
@@ -30,14 +31,13 @@
...
@@ -30,14 +31,13 @@
</
template
>
</
template
>
</q-table>
</q-table>
</div>
</div>
<appointmentDetails
v-if=
"isShowDetails"
:showItem=
"showItem"
@
refreshpage=
"refreshpage"
></appointmentDetails>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
queryPlanAppointmentDetail
,
}
from
"../../../api/stuMan/index"
;
export
default
{
import
appointmentDetails
from
"./appointmentDetails"
;
export
default
{
props
:
{
props
:
{
tableData
:
{
tableData
:
{
type
:
Array
,
type
:
Array
,
...
@@ -51,7 +51,9 @@
...
@@ -51,7 +51,9 @@
meta
:
{
meta
:
{
title
:
"学员预约统计"
,
title
:
"学员预约统计"
,
},
},
components
:
{},
components
:
{
appointmentDetails
},
data
()
{
data
()
{
return
{
return
{
columns
:
[{
columns
:
[{
...
@@ -78,37 +80,23 @@
...
@@ -78,37 +80,23 @@
pageMsg
:
{
pageMsg
:
{
rowsPerPage
:
1000
rowsPerPage
:
1000
},
},
//是否显示预约详情
isShowDetails
:
false
,
showItem
:
{},
};
};
},
},
created
()
{},
created
()
{},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
//翻页
//刷新页面
changePage
(
val
)
{
refreshpage
()
{
this
.
isShowDetails
=
false
;
},
this
.
showItem
=
{};
//跳转到课程回顾
goCourseRecord
(
item
)
{
this
.
OpenNewUrl
(
"../../classroom/courseInfo"
,
{
id
:
item
.
Id
,
});
},
//跳转到课程反馈
goFeedBack
(
item
)
{
this
.
OpenNewUrl
(
"/teacher/feedBackList"
,
{
id
:
item
.
Id
,
});
},
},
//显示预约详情
//显示预约详情
ShowStuAppoint
(
item
)
{
ShowStuAppoint
(
item
)
{
console
.
log
(
"item"
,
item
);
this
.
showItem
=
item
;
if
(
item
.
PlanAppointmentId
&&
item
.
PlanAppointmentId
>
0
)
{
this
.
isShowDetails
=
true
;
queryPlanAppointmentDetail
({
PlanAppointmentId
:
item
.
PlanAppointmentId
}).
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
});
}
}
}
},
},
};
};
...
...
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