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
26b05aa4
Commit
26b05aa4
authored
Jun 22, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增
parent
6f760830
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
155 additions
and
17 deletions
+155
-17
App.vue
src/App.vue
+1
-1
schedu.js
src/api/scheduling/schedu.js
+13
-0
appoint-form.vue
src/components/schedul/appoint-form.vue
+17
-16
appointManagement.vue
src/pages/sale/appointManagement.vue
+119
-0
routes.js
src/router/routes.js
+5
-0
No files found.
src/App.vue
View file @
26b05aa4
...
@@ -12,7 +12,7 @@ export default {
...
@@ -12,7 +12,7 @@ export default {
<
style
>
<
style
>
@import
url('~assets/css/font.css')
;
@import
url('~assets/css/font.css')
;
@import
url('//at.alicdn.com/t/font_2077629_
9jvzm3idarn
.css')
;
@import
url('//at.alicdn.com/t/font_2077629_
v5y4jdrtlx
.css')
;
html
,
html
,
body
,
body
,
...
...
src/api/scheduling/schedu.js
View file @
26b05aa4
...
@@ -159,3 +159,16 @@ export function saveDutyCheck(data) {
...
@@ -159,3 +159,16 @@ export function saveDutyCheck(data) {
data
data
})
})
}
}
/**
* 约课管理
* @param {JSON参数} data
*/
export
function
GetReserveClassPage
(
data
)
{
return
request
({
url
:
'/VisitorReserve/GetReserveClassPage'
,
method
:
'post'
,
data
})
}
src/components/schedul/appoint-form.vue
View file @
26b05aa4
...
@@ -24,11 +24,11 @@
...
@@ -24,11 +24,11 @@
<div
style=
"margin-bottom:20px;"
>
<div
style=
"margin-bottom:20px;"
>
<div
class=
"Appoint_Line"
></div>
预约申请
<div
class=
"Appoint_Line"
></div>
预约申请
</div>
</div>
<q-input
filled
v-model=
"addMsg.
date"
class=
"col-6 q-pb-lg"
mask=
"date"
label=
"
日期"
>
<q-input
filled
v-model=
"addMsg.
ClassDate"
class=
"col-6 q-pb-lg"
mask=
"date"
label=
"预约
日期"
>
<template
v-slot:append
>
<template
v-slot:append
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-icon
name=
"event"
class=
"cursor-pointer"
>
<q-popup-proxy
ref=
"qDateProxy1"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-popup-proxy
ref=
"qDateProxy1"
transition-show=
"scale"
transition-hide=
"scale"
>
<q-date
v-model=
"addMsg.
d
ate"
@
input=
"() => $refs.qDateProxy1.hide()"
/>
<q-date
v-model=
"addMsg.
ClassD
ate"
@
input=
"() => $refs.qDateProxy1.hide()"
/>
</q-popup-proxy>
</q-popup-proxy>
</q-icon>
</q-icon>
</
template
>
</
template
>
...
@@ -36,28 +36,28 @@
...
@@ -36,28 +36,28 @@
<div
class=
"Sysuser_Date"
>
<div
class=
"Sysuser_Date"
>
<q-field
filled
class=
"q-pb-lg"
>
<q-field
filled
class=
"q-pb-lg"
>
<
template
v-slot:control
>
<
template
v-slot:control
>
<el-time-select
v-model=
"addMsg.
t
ime"
style=
"width:100%"
:picker-options=
"
{
<el-time-select
v-model=
"addMsg.
ClassT
ime"
style=
"width:100%"
:picker-options=
"
{
start: '00:00',
start: '00:00',
step: '00:15',
step: '00:15',
end: '23:59'
end: '23:59'
}" placeholder="
选择
时间">
}" placeholder="
预约
时间">
</el-time-select>
</el-time-select>
</
template
>
</
template
>
</q-field>
</q-field>
</div>
</div>
<q-input
v-model=
"addMsg.
c
ontent"
class=
"q-pb-lg"
filled
type=
"textarea"
placeholder=
"主讲内容"
/>
<q-input
v-model=
"addMsg.
ClassC
ontent"
class=
"q-pb-lg"
filled
type=
"textarea"
placeholder=
"主讲内容"
/>
<div
style=
"display:flex;align-items:center;"
>
<div
style=
"display:flex;align-items:center;"
>
<q-select
filled
stack-label
option-value=
"TId"
style=
"width:90%"
option-label=
"TeacherName"
<q-select
filled
stack-label
option-value=
"TId"
style=
"width:90%"
option-label=
"TeacherName"
v-model=
"addMsg.
teacher"
ref=
"Teacher_
Id"
:options=
"TeacherList"
label=
"教师团队"
:dense=
"false"
v-model=
"addMsg.
TeacherId"
ref=
"Teacher
Id"
:options=
"TeacherList"
label=
"教师团队"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
multiple
/>
class=
"col-6 q-pb-lg"
emit-value
map-options
multiple
/>
<div
style=
"margin:-20px 0 0 9px"
@
click=
"isShowTeacher=true"
>
选择
</div>
<div
style=
"margin:-20px 0 0 9px"
@
click=
"isShowTeacher=true"
>
选择
</div>
</div>
</div>
<q-select
filled
stack-label
option-value=
"RoomId"
option-label=
"RoomName"
v-model=
"addMsg.ClassRoomId"
<q-select
filled
stack-label
option-value=
"RoomId"
option-label=
"RoomName"
v-model=
"addMsg.ClassRoomId"
ref=
"ClassRoomId"
:options=
"ClassRoomList"
label=
"关联教室"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
ref=
"ClassRoomId"
:options=
"ClassRoomList"
label=
"关联教室"
:dense=
"false"
class=
"col-6 q-pb-lg"
emit-value
map-options
/>
map-options
/>
<
q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"addMsg.customer
"
ref=
"customer"
<
!-- <q-select filled stack-label option-value="Id" option-label="Name" v-model="addMsg.Visitor_Id
" ref="customer"
:options="customerList" label="客户" :dense="false" class="col-6 q-pb-lg" emit-value map-options />
:options="customerList" label="客户" :dense="false" class="col-6 q-pb-lg" emit-value map-options />
<q-input
v-model=
"addMsg.remark"
class=
"q-pb-lg"
filled
type=
"textarea"
placeholder=
"备注"
/>
<q-input v-model="addMsg.remark" class="q-pb-lg" filled type="textarea" placeholder="备注" />
-->
</div>
</div>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
size=
"sm"
style=
"font-weight:400 !important"
@
click=
"closeAppointForm"
/>
<q-btn
label=
"取消"
flat
color=
"grey-10"
size=
"sm"
style=
"font-weight:400 !important"
@
click=
"closeAppointForm"
/>
...
@@ -105,13 +105,6 @@
...
@@ -105,13 +105,6 @@
},
},
TeacherList
:
[],
//教师
TeacherList
:
[],
//教师
ClassRoomList
:
[],
//教室
ClassRoomList
:
[],
//教室
customerList
:
[{
Name
:
'张三'
,
Id
:
1
},
{
Name
:
'李四'
,
Id
:
2
}],
saveAppointLoading
:
false
,
saveAppointLoading
:
false
,
isShowTeacher
:
false
,
//显示选择框
isShowTeacher
:
false
,
//显示选择框
}
}
...
@@ -136,6 +129,11 @@
...
@@ -136,6 +129,11 @@
getTeacherDropDownList
({}).
then
(
res
=>
{
getTeacherDropDownList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
TeacherList
=
res
.
Data
;
this
.
TeacherList
=
res
.
Data
;
var
obj
=
{
TeacherName
:
'请选择'
,
TId
:
0
}
this
.
TeacherList
.
unshift
(
obj
);
}
}
});
});
},
},
...
@@ -154,7 +152,10 @@
...
@@ -154,7 +152,10 @@
},
},
//保存
//保存
saveAppointForm
()
{
saveAppointForm
()
{
if
(
this
.
saveObj
){
this
.
addMsg
.
Visitor_Id
=
this
.
saveObj
.
Id
;
}
console
.
log
(
this
.
addMsg
,
'addMsg'
);
}
}
}
}
}
}
...
...
src/pages/sale/appointManagement.vue
0 → 100644
View file @
26b05aa4
<
template
>
<div
class=
"page-body"
>
<q-table
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
人员信息
</div>
<q-space
/>
<!--
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"试听预约"
/>
</div>
-->
</
template
>
<
template
v-slot:body-cell-Id=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"报入"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</div>
</template>
<
script
>
import
{
GetReserveClassPage
}
from
'../../api/scheduling/schedu'
export
default
{
meta
:
{
title
:
"约课管理"
},
components
:
{
},
data
()
{
return
{
msg
:
{
pageIndex
:
1
,
pageSize
:
10
},
dataList
:
[],
loading
:
false
,
PageCount
:
0
,
columns
:
[{
name
:
'CateName'
,
label
:
'老师'
,
field
:
'CateName'
,
align
:
'left'
},
{
name
:
'CourseCount'
,
label
:
'时间'
,
align
:
'left'
,
field
:
row
=>
row
.
CourseCount
},
{
name
:
'Status'
,
label
:
'日期'
,
align
:
'left'
,
field
:
row
=>
row
.
Status
},
{
name
:
'UpdateByName'
,
label
:
'教室'
,
align
:
'left'
,
field
:
row
=>
row
.
UpdateByName
},
{
name
:
'UpdateTimeStr'
,
label
:
'人数'
,
align
:
'left'
,
field
:
row
=>
row
.
UpdateTimeStr
},
{
name
:
'ClassContent'
,
label
:
'主讲内容'
,
align
:
'left'
,
field
:
row
=>
row
.
ClassContent
},
{
name
:
'CateId'
,
label
:
'操作'
,
field
:
'CateId'
}
],
}
},
mounted
()
{
this
.
getList
()
},
methods
:
{
//重新查询
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getList
();
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getList
()
},
//获取课程系列分页列表
getList
()
{
GetReserveClassPage
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
,
'数据'
);
if
(
res
.
Data
==
1
){
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
}
})
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/router/routes.js
View file @
26b05aa4
...
@@ -655,6 +655,11 @@ const routes = [{
...
@@ -655,6 +655,11 @@ const routes = [{
component
:
()
=>
component
:
()
=>
import
(
"pages/sale/visitorRegistrat.vue"
)
import
(
"pages/sale/visitorRegistrat.vue"
)
},
},
{
path
:
"/sale/appointManagement"
,
//销售 约课管理
component
:
()
=>
import
(
"pages/sale/appointManagement.vue"
)
},
{
{
path
:
"/course/teacherHours"
,
//教学奖励 教师课时统计
path
:
"/course/teacherHours"
,
//教学奖励 教师课时统计
component
:
()
=>
component
:
()
=>
...
...
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