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
df74261e
Commit
df74261e
authored
Aug 29, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
留学需求
parent
c25c6133
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
197 additions
and
32 deletions
+197
-32
schedu.js
src/api/scheduling/schedu.js
+11
-1
student-shiting.vue
src/components/school/student/student-shiting.vue
+2
-1
student-studyabroad.vue
src/components/school/student/student-studyabroad.vue
+10
-26
studentRight-form.vue
src/components/school/student/studentRight-form.vue
+4
-4
studyabroad.vue
src/components/school/student/studyabroad.vue
+170
-0
No files found.
src/api/scheduling/schedu.js
View file @
df74261e
...
...
@@ -211,7 +211,17 @@ export function SetVisitorReserve(data) {
data
})
}
/**
* 新增留学需求
* @param {JSON参数} data
*/
export
function
SetStudyAbroad
(
data
)
{
return
request
({
url
:
'/VisitorReserve/SetStudyAbroad'
,
method
:
'post'
,
data
})
}
/**
* 约课管理
* @param {JSON参数} data
...
...
src/components/school/student/student-shiting.vue
View file @
df74261e
...
...
@@ -106,7 +106,8 @@
qMsg
:
{
pageIndex
:
1
,
pageSize
:
12
,
Visitor_Id
:
0
Visitor_Id
:
0
,
IsReserve
:
1
,
},
dataList
:
[],
page_Count
:
0
,
...
...
src/components/school/student/student-studyabroad.vue
View file @
df74261e
<
style
></
style
>
<
template
>
<div>
<studyabroad
:saveObj=
"saveObj"
@
close=
"closeReserveForm"
@
success=
"closeReserveForm"
v-if=
"!saveObj.IsHaveCurseManager || userInfo.IsCourseConsultant == 1"
></studyabroad>
<div
style=
"display:flex;flex:1;flex-direction: column;overflow:hidden;"
>
<div
class=
"TimeLineDiv"
>
<q-timeline
color=
"primary"
>
...
...
@@ -9,29 +10,11 @@
<template
v-slot:title
>
<div
class=
"visit_Cont"
>
<div
class=
"Log_Content"
>
<q-chip
color=
"primary"
size=
"xs"
text-color=
"white"
style=
"position:absolute;:top:0;right:0"
v-if=
"tItem.ReserveType==1"
>
跟班
</q-chip>
<div
v-if=
"tItem.ReservationDate&&tItem.ReservationDate.length>0"
>
试听日期:
{{
timeFormatSeconds
(
tItem
.
ReservationDate
)
}}
</div>
<div
v-if=
"tItem.Demand&&tItem.Demand.length>0"
>
试听需求:
{{
tItem
.
Demand
}}
</div>
<div>
预约时间:
{{
tItem
.
ClassDateStr
}}
{{
tItem
.
ClassTime
}}
<template
v-if=
"tItem.ClassDateStr&&tItem.ClassDateStr.length>0"
>
-
</
template
>
{{ tItem.EndTime }}
</div>
<div
class=
"StuCom_Remark"
v-if=
"false"
>
<div
style=
"flex-shrink:0"
>
主讲内容:
</div>
<div
class=
"StuCom_Inner"
>
{{ tItem.ClassContent }}
</div>
</div>
<div>
主讲老师:{{ tItem.TeacherName }}
</div>
<div>
课程名称:{{ tItem.LessonName }}
</div>
<div
class=
"StuCom_Remark"
>
<span
class=
"StuCom_Left"
>
教室
</span>
:{{ tItem.RoomName }}
<div
>
留学需求:
{{
tItem
.
Remark
}}
</div>
</div>
<div
@
click=
"DeleteVisitorReserve(tItem.Id)"
style=
"margin-top:10px;"
class=
"visit_delete text-negative"
>
...
...
@@ -67,13 +50,13 @@
queryClassRoomList
,
GetTrialLessonList
}
from
"../../../api/school/index"
;
// import reserveclassForm from "./reserveclass-form
";
import
studyabroad
from
"./studyabroad
"
;
export
default
{
meta
:
{
title
:
""
},
components
:
{
// reserveclassForm
studyabroad
},
props
:
{
saveObj
:
{
...
...
@@ -87,7 +70,8 @@
qMsg
:
{
pageIndex
:
1
,
pageSize
:
12
,
Visitor_Id
:
0
Visitor_Id
:
0
,
IsReserve
:
2
,
},
dataList
:
[],
page_Count
:
0
,
...
...
src/components/school/student/studentRight-form.vue
View file @
df74261e
...
...
@@ -197,10 +197,10 @@
Name
:
"试听"
,
Id
:
4
},
//
{
//
Name: "留学需求",
//
Id: 6
//
},
{
Name
:
"留学需求"
,
Id
:
6
},
// {
// Name: "顾问",
// Id: 5
...
...
src/components/school/student/studyabroad.vue
0 → 100644
View file @
df74261e
<
style
scoped
>
.Student_Date
.el-input__inner
{
background
:
transparent
!important
;
border
:
0
!important
;
padding-right
:
0
!important
;
}
</
style
>
<
template
>
<div>
<div
class=
"row wrap"
>
<q-btn
label=
"新增留学需求"
color=
"accent q-mb-lg"
size=
"sm"
@
click=
"isShowReserve = true"
/>
</div>
<template
v-if=
"isShowReserve"
>
<div
class=
"row studentDate"
>
<q-input
style=
"width:257px;"
v-model=
"addMsg.Remark"
placeholder=
"留学需求"
filled
type=
"textarea"
/>
</div>
<div
class=
"row wrap justify-end q-pr-lg"
style=
"margin-bottom:10px;"
>
<q-btn
label=
"关闭"
flat
color=
"accent q-mb-lg"
size=
"md"
style=
"margin-right:10px;"
@
click=
"closeClassForm"
/>
<q-btn
label=
"保存"
color=
"accent q-mb-lg"
size=
"md"
@
click=
"saveAppointForm()"
/>
</div>
</
template
>
</div>
</template>
<
script
>
import
{
SetStudyAbroad
}
from
"../../../api/scheduling/schedu"
;
import
{
getTeacherDropDownList
,
queryClassRoomList
,
GetTrialLessonList
}
from
"../../../api/school/index"
;
// import auditionForm from "../../schedul/audition-form";
export
default
{
components
:
{
// auditionForm,
},
props
:
{
saveObj
:
{
type
:
Object
,
default
:
null
}
},
data
()
{
return
{
isShowReserve
:
false
,
addMsg
:
{
Id
:
0
,
//编号
Visitor_Id
:
0
,
//访客编号
ReserveClassId
:
0
,
//选中的班级编号
ClassDate
:
""
,
//预约日期
ClassTime
:
""
,
//预约开始时间
EndTime
:
""
,
//预约结束时间
TeacherId
:
0
,
//教师编号
ClassRoomId
:
0
,
//教室编号
ClassContent
:
""
,
//主讲内容
TrialLessonId
:
""
,
ReserveType
:
0
,
ClassPlanId
:
0
,
Demand
:
""
,
},
isShowTeacher
:
false
,
//是否显示试听课弹窗
showObj
:{
className
:
""
,
courseName
:
""
,
}
};
},
created
()
{
},
mounted
()
{
if
(
this
.
saveObj
)
{
this
.
addMsg
.
Visitor_Id
=
this
.
saveObj
.
StuId
;
}
},
methods
:
{
//关闭窗口
closeClassForm
()
{
this
.
clearMsg
()
this
.
isShowReserve
=
false
;
this
.
$emit
(
"success"
);
},
//清除
clearMsg
()
{
this
.
addMsg
.
Id
=
0
;
this
.
addMsg
.
ReserveClassId
=
0
;
this
.
addMsg
.
ClassDate
=
""
;
this
.
addMsg
.
ClassTime
=
""
;
this
.
addMsg
.
EndTime
=
""
;
this
.
addMsg
.
TeacherId
=
0
;
this
.
addMsg
.
ClassRoomId
=
0
;
this
.
addMsg
.
ClassContent
=
""
;
this
.
addMsg
.
TrialLessonId
=
""
;
this
.
addMsg
.
ReserveType
=
0
;
this
.
addMsg
.
ClassPlanId
=
0
;
this
.
addMsg
.
Demand
=
""
;
},
//保存
saveAppointForm
()
{
if
(
this
.
addMsg
.
Remark
==
""
)
{
this
.
$q
.
notify
({
type
:
"negative"
,
position
:
"top"
,
timeout
:
2000
,
message
:
"请输入留学需求!"
});
return
;
}
SetStudyAbroad
(
this
.
addMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
"iconfont icon-chenggong"
,
color
:
"accent"
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
"top"
});
this
.
$emit
(
"success"
);
}
else
{
this
.
$q
.
notify
({
type
:
"negative"
,
position
:
"top"
,
timeout
:
2000
,
message
:
res
.
Message
});
}
this
.
clearMsg
();
this
.
isShowReserve
=
false
;
});
},
closeAuditForm
()
{
this
.
isShowTeacher
=
false
;
},
//子组件选中传值
getchildInfo
(
obj
)
{
if
(
obj
)
{
this
.
addMsg
.
ReserveType
=
obj
.
ReserveType
;
this
.
addMsg
.
ClassPlanId
=
obj
.
ClassPlanId
;
this
.
addMsg
.
TeacherId
=
obj
.
TeacherId
;
this
.
addMsg
.
ClassRoomId
=
obj
.
ClassRoomId
;
this
.
addMsg
.
ReserveClassId
=
obj
.
ReserveClassId
;
this
.
addMsg
.
ClassDate
=
obj
.
ClassDateStr
;
this
.
addMsg
.
ClassTime
=
obj
.
ClassTime
;
this
.
addMsg
.
EndTime
=
obj
.
EndTime
;
this
.
addMsg
.
ClassContent
=
obj
.
ClassContent
;
this
.
addMsg
.
TrialLessonId
=
obj
.
TrialLessonId
;
this
.
isShowReserve
=
true
;
}
}
}
};
</
script
>
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