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
ed19de17
Commit
ed19de17
authored
Dec 14, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增值班记录
parent
fe8b3317
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
762 additions
and
414 deletions
+762
-414
quasar.conf.js
quasar.conf.js
+2
-2
App.vue
src/App.vue
+1
-1
index.js
src/api/stuMan/index.js
+8
-0
schedul-visit.vue
src/components/schedul/schedul-visit.vue
+744
-409
schedul-visit.vue
src/pages/classroom/components/schedul-visit.vue
+2
-0
scheduleBoard.vue
src/pages/scheduling/scheduleBoard.vue
+5
-2
No files found.
quasar.conf.js
View file @
ed19de17
...
...
@@ -49,7 +49,7 @@ module.exports = function (ctx) {
env
:
ctx
.
dev
?
{
// API: 'https://localhost:5001/api',
// API: 'http://192.168.20.24:8300/api',
API
:
'http://192.168.
20.8:8085
/api'
,
API
:
'http://192.168.
10.46:8300
/api'
,
// API: 'http://192.168.20.17:8017/api',
...
...
@@ -98,7 +98,7 @@ module.exports = function (ctx) {
// https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework
framework
:
{
iconSet
:
'material-icons'
,
// Quasar icon set
lang
:
'
en-u
s'
,
// Quasar language pack
lang
:
'
zh-han
s'
,
// Quasar language pack
config
:
{},
// Possible values for "importStrategy":
...
...
src/App.vue
View file @
ed19de17
...
...
@@ -13,7 +13,7 @@ export default {
//alert("shouji");
}
else
{
//alert("diannao");
document
.
write
(
'<link href="font.css" rel="stylesheet" type="text/css" media="screen" />'
);
document
.
write
(
'<link href="
http://edu.oytour.com/
font.css" rel="stylesheet" type="text/css" media="screen" />'
);
}
},
};
...
...
src/api/stuMan/index.js
View file @
ed19de17
...
...
@@ -11,6 +11,14 @@ export function getStudentAttendanceDayStatistics(data) {
});
}
export
function
getTodayVisitList
(
data
){
return
request
({
url
:
'/DutyPlan/GetDutyTodayVisit'
,
method
:
'post'
,
data
});
}
//学管 获取访客列表
export
function
getVisitorAllPageList
(
data
)
{
return
request
({
...
...
src/components/schedul/schedul-visit.vue
View file @
ed19de17
<
style
>
.schedulVisit
{
.schedulVisit
{
min-height
:
calc
(
100%
-
30px
);
padding
:
15px
;
margin-top
:
30px
;
border-radius
:
8px
;
background
:
#fff
;
}
}
.schedulVisit
.fangkeTitle
{
.schedulVisit
.fangkeTitle
{
color
:
#000000
;
font-size
:
18px
;
font-weight
:
bold
;
}
}
.schedulVisit
.fangkeNumb
{
.schedulVisit
.fangkeNumb
{
display
:
inline-block
;
background-color
:
#BCCEFD
;
color
:
#2966FE
;
background-color
:
#bccefd
;
color
:
#2966fe
;
font-size
:
15px
;
border-radius
:
6px
;
text-align
:
center
;
line-height
:
22px
;
margin-left
:
15px
;
padding
:
0px
6px
;
}
}
.schedulVisit
.visit_Date
{
.schedulVisit
.visit_Date
{
margin-left
:
60px
;
color
:
#000000
;
font-size
:
16px
;
}
}
.schedulVisit
.visit_Date
i
{
color
:
#B4B4B
4
;
.schedulVisit
.visit_Date
i
{
color
:
#b4b4b
4
;
margin-right
:
10px
;
}
}
.page-option
.el-input__inner
{
background-color
:
#F1F3F
5
;
.page-option
.el-input__inner
{
background-color
:
#f1f3f
5
;
border
:
0
;
height
:
34px
;
line-height
:
34px
;
border-radius
:
10px
;
}
}
.page-option
.el-input__icon
{
.page-option
.el-input__icon
{
line-height
:
34px
;
}
}
.schedul_Vtable
tr
th
{
color
:
#8E8E8E
;
}
.schedul_Vtable
tr
th
{
color
:
#8e8e8e
;
}
.schedul_Vtable
tr
td
{
color
:
#2D2D2D
;
}
.schedul_Vtable
tr
td
{
color
:
#2d2d2d
;
}
.visit_FORM
.el-input__inner
{
background
:
#F0F2F
5
;
.visit_FORM
.el-input__inner
{
background
:
#f0f2f
5
;
border-radius
:
10px
;
height
:
34px
;
line-height
:
34px
;
border
:
0
;
}
}
.visit_FORM
.el-input__icon
{
.visit_FORM
.el-input__icon
{
line-height
:
34px
;
}
}
.schedulVisit
.q-table
{
.schedulVisit
.q-table
{
padding-bottom
:
5px
;
}
}
.schedulVisit
.q-table
tbody
td
:before
{
background
:
''
!important
;
}
.schedulVisit
.q-table
tbody
td
:before
{
background
:
""
!important
;
}
.schedulVisit
.q-table
tbody
tr
:hover
{
box-shadow
:
0px
2px
20px
0px
#E4E7FB
;
.schedulVisit
.q-table
tbody
tr
:hover
{
box-shadow
:
0px
2px
20px
0px
#e4e7fb
;
background
:
#fff
;
border-radius
:
16px
}
border-radius
:
16px
;
}
.schedulVisit
.q-table
tbody
td
:before
{
.schedulVisit
.q-table
tbody
td
:before
{
background
:
transparent
!important
;
}
}
.scheduVipop
.el-textarea__inner
{
background
:
#F0F2F
5
!important
;
.scheduVipop
.el-textarea__inner
{
background
:
#f0f2f
5
!important
;
border
:
0
;
}
}
</
style
>
<
template
>
<div
class=
"schedulVisit"
>
<div
class=
"row"
>
<div
class=
"col q-mr-lg"
>
<q-tabs
style=
"margin-bottom:20px;"
v-model=
"tabCheck"
narrow-indicator
dense
align=
"left"
class=
"text-primary"
>
<q-tab
:ripple=
"false"
name=
"first"
label=
"预约到访"
/>
<q-tab
:ripple=
"false"
name=
"second"
label=
"访客登记"
/>
<q-tab
:ripple=
"false"
name=
"third"
label=
"预约试听"
/>
</q-tabs>
</div>
<div
v-if=
"tabCheck == 'first'"
class=
"col-3"
>
<q-input
dense
debounce
v-model=
"searchObj.arriveVisitKey"
input-style=
"font-size:13px;"
filled
placeholder=
"请输入到访者姓名或电话"
@
keydown
.
enter=
"changeVisitList"
>
<template
v-slot:prepend
>
<q-icon
name=
"search"
color=
"gery-3"
/>
</
template
>
</q-input>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"stickycreatInsertStr-column-table schedul_Vtable"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<q-table
:pagination=
"msg"
:loading=
"loadingObj.visitLoading"
no-data-label=
"暂无相关数据"
flat
class=
"stickycreatInsertStr-column-table schedul_Vtable"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
v-if=
"tabCheck == 'second'"
>
<
template
>
<div
class=
"fangkeTitle"
ref=
"fkdj"
>
访客登记
</div>
<span
class=
"fangkeNumb"
>
{{
data
.
length
}}
</span>
<span
class=
"fangkeNumb"
>
{{
data
.
length
}}
</span>
<div
class=
"visit_Date"
>
<i
class=
"iconfont icon-img-rili"
style=
""
></i>
{{
saveObj
.
PlanDate
}}
<i
class=
"iconfont icon-img-rili"
style=
""
></i
>
{{
saveObj
.
PlanDate
}}
</div>
<q-space
/>
<div
class=
"page-option"
style=
"margin-right:20px;width:250px;"
>
<el-input
placeholder=
"姓名/电话/微信"
v-model=
"msg.KeyWords"
@
input=
"resetSearch"
>
<el-input
placeholder=
"姓名/电话/微信"
v-model=
"msg.KeyWords"
@
input=
"resetSearch"
>
<i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i>
</el-input>
</div>
<div
class=
"page-option addVisit"
>
<el-popover
placement=
"left"
popper-class=
"scheduVipop"
width=
"300"
trigger=
"click"
>
<el-popover
placement=
"left"
popper-class=
"scheduVipop"
width=
"300"
trigger=
"click"
>
<div>
<el-form
label-width=
"80px"
:model=
"addMsg"
ref=
"addMsg1"
:rules=
"rules"
style=
"margin-top:10px;"
class=
"visit_FORM"
>
<el-form
label-width=
"80px"
:model=
"addMsg"
ref=
"addMsg1"
:rules=
"rules"
style=
"margin-top:10px;"
class=
"visit_FORM"
>
<el-form-item
label=
"姓名"
prop=
"Name"
>
<el-input
v-model=
"addMsg.Name"
placeholder=
"请输入姓名"
></el-input>
<el-input
v-model=
"addMsg.Name"
placeholder=
"请输入姓名"
></el-input>
</el-form-item>
<el-form-item
label=
"电话"
prop=
"Tel"
>
<el-input
v-model=
"addMsg.Tel"
placeholder=
"请输入电话号码"
></el-input>
<el-input
v-model=
"addMsg.Tel"
placeholder=
"请输入电话号码"
></el-input>
</el-form-item>
<el-form-item
label=
"微信号"
>
<el-input
v-model=
"addMsg.WeChatNum"
placeholder=
"请输入微信号"
></el-input>
<el-input
v-model=
"addMsg.WeChatNum"
placeholder=
"请输入微信号"
></el-input>
</el-form-item>
<el-form-item
label=
"兴趣课程"
prop=
"CourseName"
>
<el-input
v-model=
"addMsg.CourseName"
placeholder=
"请输入兴趣课程"
></el-input>
<el-input
v-model=
"addMsg.CourseName"
placeholder=
"请输入兴趣课程"
></el-input>
</el-form-item>
<el-form-item
label=
"学习时间"
prop=
"StudyTime"
>
<el-input
v-model=
"addMsg.StudyTime"
placeholder=
"请输入学习时间"
></el-input>
<el-input
v-model=
"addMsg.StudyTime"
placeholder=
"请输入学习时间"
></el-input>
</el-form-item>
<el-form-item
label=
"当前水平"
prop=
"LevelType"
>
<el-select
v-model=
"addMsg.LevelType"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in GBList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Name"
>
<el-select
v-model=
"addMsg.LevelType"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in GBList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Name"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"VisitorStatus"
>
<el-select
v-model=
"addMsg.VisitorStatus"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
<el-select
v-model=
"addMsg.VisitorStatus"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.Id"
:label=
"item.Name"
:value=
"item.Id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"意向评估"
prop=
"Evaluate"
>
<el-input
v-model=
"addMsg.Evaluate"
placeholder=
"请输入意向评估"
></el-input>
<el-input
v-model=
"addMsg.Evaluate"
placeholder=
"请输入意向评估"
></el-input>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-input
type=
"textarea"
v-model=
"addMsg.Remark"
:rows=
"4"
placeholder=
"请输入备注"
></el-input>
<el-input
type=
"textarea"
v-model=
"addMsg.Remark"
:rows=
"4"
placeholder=
"请输入备注"
></el-input>
</el-form-item>
</el-form>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"submitForm('addMsg1')"
style=
"float:right;margin-bottom:10px;"
label=
"保存"
/>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"submitForm('addMsg1')"
style=
"float:right;margin-bottom:10px;"
label=
"保存"
/>
</div>
<q-btn
color=
"accent"
slot=
"reference"
size=
"sm"
icon=
"add"
@
click=
"clearAddMsg"
label=
"添加访客"
v-if=
"DutyAuthObj.isShowAdd"
/>
<q-btn
color=
"accent"
slot=
"reference"
size=
"sm"
icon=
"add"
@
click=
"clearAddMsg"
label=
"添加访客"
v-if=
"DutyAuthObj.isShowAdd"
/>
</el-popover>
</div>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<el-popover
placement=
"left"
popper-class=
"scheduVipop"
width=
"300"
ref=
"popover2"
trigger=
"click"
>
<el-popover
placement=
"left"
popper-class=
"scheduVipop"
width=
"300"
ref=
"popover2"
trigger=
"click"
>
<div>
<el-form
label-width=
"80px"
:model=
"addMsg"
ref=
"addMsg2"
:rules=
"rules"
style=
"margin-top:10px;"
class=
"visit_FORM"
>
<el-form
label-width=
"80px"
:model=
"addMsg"
ref=
"addMsg2"
:rules=
"rules"
style=
"margin-top:10px;"
class=
"visit_FORM"
>
<el-form-item
label=
"姓名"
prop=
"Name"
>
<el-input
v-model=
"addMsg.Name"
placeholder=
"请输入姓名"
maxlength=
"50"
></el-input>
<el-input
v-model=
"addMsg.Name"
placeholder=
"请输入姓名"
maxlength=
"50"
></el-input>
</el-form-item>
<el-form-item
label=
"电话"
prop=
"Tel"
>
<el-input
v-model=
"addMsg.Tel"
placeholder=
"请输入电话号码"
maxlength=
"50"
></el-input>
<el-input
v-model=
"addMsg.Tel"
placeholder=
"请输入电话号码"
maxlength=
"50"
></el-input>
</el-form-item>
<el-form-item
label=
"微信号"
>
<el-input
v-model=
"addMsg.WeChatNum"
placeholder=
"请输入微信号"
maxlength=
"50"
></el-input>
<el-input
v-model=
"addMsg.WeChatNum"
placeholder=
"请输入微信号"
maxlength=
"50"
></el-input>
</el-form-item>
<el-form-item
label=
"兴趣课程"
prop=
"CourseName"
>
<el-input
v-model=
"addMsg.CourseName"
placeholder=
"请输入兴趣课程"
maxlength=
"50"
></el-input>
<el-input
v-model=
"addMsg.CourseName"
placeholder=
"请输入兴趣课程"
maxlength=
"50"
></el-input>
</el-form-item>
<el-form-item
label=
"学习时间"
prop=
"StudyTime"
>
<el-input
v-model=
"addMsg.StudyTime"
placeholder=
"请输入学习时间"
maxlength=
"100"
></el-input>
<el-input
v-model=
"addMsg.StudyTime"
placeholder=
"请输入学习时间"
maxlength=
"100"
></el-input>
</el-form-item>
<el-form-item
label=
"当前水平"
prop=
"LevelType"
>
<el-select
v-model=
"addMsg.LevelType"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in GBList"
:key=
"item.Name"
:label=
"item.Name"
:value=
"item.Name"
>
<el-select
v-model=
"addMsg.LevelType"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in GBList"
:key=
"item.Name"
:label=
"item.Name"
:value=
"item.Name"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"VisitorStatus"
>
<el-select
v-model=
"addMsg.VisitorStatus"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.Id"
:value=
"item.Id"
:label=
"item.Name"
>
<el-select
v-model=
"addMsg.VisitorStatus"
style=
"width:200px;"
placeholder=
"请选择"
>
<el-option
v-for=
"item in statusList"
:key=
"item.Id"
:value=
"item.Id"
:label=
"item.Name"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"意向评估"
prop=
"Evaluate"
>
<el-input
v-model=
"addMsg.Evaluate"
placeholder=
"请输入意向评估"
maxlength=
"500"
></el-input>
<el-input
v-model=
"addMsg.Evaluate"
placeholder=
"请输入意向评估"
maxlength=
"500"
></el-input>
</el-form-item>
<el-form-item
label=
"备注"
>
<el-input
type=
"textarea"
v-model=
"addMsg.Remark"
:rows=
"4"
placeholder=
"请输入备注"
maxlength=
"500"
>
<el-input
type=
"textarea"
v-model=
"addMsg.Remark"
:rows=
"4"
placeholder=
"请输入备注"
maxlength=
"500"
>
</el-input>
</el-form-item>
</el-form>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"submitForm2('addMsg2')"
style=
"float:right;margin-bottom:10px;"
label=
"保存"
/>
<q-btn
color=
"accent"
size=
"sm"
@
click=
"submitForm2('addMsg2')"
style=
"float:right;margin-bottom:10px;"
label=
"保存"
/>
</div>
<q-btn
flat
size=
"xs"
icon=
"edit"
slot=
"reference"
@
click=
"EditVisitor(props.row.Id)"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
v-if=
"DutyAuthObj.isShowEdit"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
slot=
"reference"
@
click=
"EditVisitor(props.row.Id)"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
v-if=
"DutyAuthObj.isShowEdit"
/>
</el-popover>
<q-btn
flat
size=
"xs"
@
click=
"getDetail(props.row)"
icon=
"iconfont icon-View"
color=
"accent"
style=
"font-weight:400"
label=
"详情"
/>
<q-btn
flat
size=
"xs"
@
click=
"getDetail(props.row)"
icon=
"iconfont icon-View"
color=
"accent"
style=
"font-weight:400"
label=
"详情"
/>
</q-td>
</
template
>
</q-table>
<q-table
v-if=
"tabCheck == 'first'"
hide-bottom
:columns=
"visitColumns"
:data=
"showTodayVist"
:loading=
"loadingObj.visitLoading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
>
<
template
v-slot:body-cell-Option=
"props"
>
<q-td
:props=
"props"
>
<q-btn
dense
flat
color=
"primary"
v-if=
"props.row.IsVisit!=1"
>
<q-icon
name=
"edit"
color=
"primary"
style=
"font-size:11px"
class=
"q-mr-xs"
></q-icon>
<span
style=
"font-size:12px;"
>
到访
</span>
</q-btn>
</q-td>
</
template
>
<
template
v-slot:body-cell-IsVisitStr=
"props"
>
<q-td
:props=
"props"
class=
"text-negative"
>
<span
:class=
"
{'text-primary':props.row.IsVisit==1}">
{{
props
.
row
.
IsVisitStr
}}
</span>
</q-td>
</
template
>
</q-table>
</div>
<schedulFanke
v-if=
"isShowDetail"
@
close=
"closeDetail"
:save-obj=
"sendObj"
></schedulFanke>
<schedulFanke
v-if=
"isShowDetail"
@
close=
"closeDetail"
:save-obj=
"sendObj"
></schedulFanke>
</div>
</template>
<
script
>
import
{
getStudentPage
}
from
"../../api/school"
;
import
{
getGuestBasicsEnumList
}
from
'../../api/sale/sale'
import
schedulFanke
from
'../schedul/schedul-fanke'
import
{
getStudentPage
}
from
"../../api/school"
;
import
{
getGuestBasicsEnumList
}
from
"../../api/sale/sale"
;
import
{
getTodayVisitList
}
from
"../../api/stuMan/index"
;
import
schedulFanke
from
"../schedul/schedul-fanke"
;
export
default
{
export
default
{
props
:
{
saveObj
:
{
type
:
Object
,
...
...
@@ -244,54 +469,117 @@
},
data
()
{
return
{
columns
:
[{
name
:
'StuName'
,
label
:
'姓名'
,
tabCheck
:
"first"
,
columns
:
[
{
name
:
"StuName"
,
label
:
"姓名"
,
required
:
true
,
field
:
'StuName'
,
align
:
'left'
field
:
"StuName"
,
align
:
"left"
},
{
name
:
"StuSexStr"
,
field
:
"StuSexStr"
,
label
:
"性别"
,
align
:
"left"
},
{
name
:
"StuTel"
,
field
:
"StuTel"
,
label
:
"客户电话"
,
align
:
"left"
},
{
name
:
"StuStageName"
,
field
:
"StuStageName"
,
label
:
"客户阶段"
,
align
:
"left"
},
{
name
:
"CreateTimeStr"
,
field
:
"CreateTimeStr"
,
label
:
"创建时间"
,
align
:
"left"
},
{
name
:
'StuSexStr'
,
field
:
'StuSexStr'
,
label
:
'性别'
,
align
:
'left'
,
name
:
"CreateByName"
,
label
:
"关联人员"
,
field
:
"CreateByName"
,
align
:
"left"
},
{
name
:
'StuTel'
,
field
:
'StuTel'
,
label
:
'电话'
,
align
:
'left'
,
name
:
"VisitTimes"
,
label
:
"到访次数"
,
field
:
"VisitTimes"
,
align
:
"left"
},
{
name
:
'StuStageName'
,
field
:
'StuStageName'
,
label
:
'客户阶段'
,
align
:
'left'
,
name
:
"optioned"
,
label
:
"操作"
}
],
visitColumns
:
[
{
name
:
"StuName"
,
label
:
"姓名"
,
field
:
"StuName"
,
align
:
"left"
},
{
name
:
"StuTel"
,
field
:
"StuTel"
,
label
:
"客户电话"
,
align
:
"left"
},
{
name
:
"VisitTime"
,
label
:
"预计到访时间"
,
field
:
"VisitTime"
,
align
:
"left"
},
{
name
:
"SchoolName"
,
label
:
"预计校区"
,
field
:
"SchoolName"
,
align
:
"left"
},
{
name
:
'CreateTimeStr'
,
field
:
'CreateTimeStr'
,
label
:
'创建时间'
,
align
:
'left'
,
name
:
"ReceptionPersionName"
,
label
:
"对接人"
,
field
:
"ReceptionPersionName"
,
align
:
"left"
},
{
name
:
'CreateByName'
,
label
:
'关联人员'
,
field
:
'CreateByName'
,
align
:
'left'
name
:
"ReceptionPersionTel"
,
label
:
"对接人电话"
,
field
:
"ReceptionPersionTel"
,
align
:
"left"
},
{
name
:
'VisitTimes'
,
label
:
'到访次数'
,
field
:
'VisitTimes'
,
align
:
'left'
name
:
"Remark"
,
label
:
"备注"
,
field
:
"Remark"
,
align
:
"left"
},
{
name
:
'optioned'
,
label
:
'操作'
,
name
:
"IsVisitStr"
,
label
:
"到访状态"
,
field
:
"IsVisitStr"
,
align
:
"left"
},
{
name
:
"Option"
,
label
:
"操作"
,
field
:
"Option"
}
],
searchObj
:
{
arriveVisitKey
:
""
},
loadingObj
:
{
visitLoading
:
true
},
data
:
[],
loading
:
true
,
pageCount
:
0
,
...
...
@@ -301,7 +589,7 @@
pageSize
:
5
,
rowsPerPage
:
5
,
IsQueryMyStu
:
1
,
KeyWords
:
""
,
KeyWords
:
""
},
addMsg
:
{
Id
:
0
,
//编号
...
...
@@ -312,71 +600,90 @@
StudyTime
:
""
,
//学习时间
LevelType
:
""
,
//当前水平
PlanId
:
0
,
//值班编号
VisitorStatus
:
''
,
//状态
Evaluate
:
''
,
//意向评估
Remark
:
''
//备注
VisitorStatus
:
""
,
//状态
Evaluate
:
""
,
//意向评估
Remark
:
""
//备注
},
statusList
:
[{
statusList
:
[
{
Id
:
1
,
Name
:
'正常'
},
{
Name
:
"正常"
},
{
Id
:
2
,
Name
:
'贵宾'
},
{
Name
:
"贵宾"
},
{
Id
:
3
,
Name
:
'黑名单'
}],
SearchKey
:
''
,
//搜索条件
Name
:
"黑名单"
}
],
SearchKey
:
""
,
//搜索条件
isShowVform
:
false
,
isShowVedit
:
false
,
//权限显示对象
DutyAuthObj
:
{
isShowAdd
:
true
,
//是否显示新增按钮【默认显示】
isShowEdit
:
true
,
//是否显示编辑按钮【默认显示】
isShowEdit
:
true
//是否显示编辑按钮【默认显示】
},
rules
:
{
//表单必填验证
Name
:
[{
rules
:
{
//表单必填验证
Name
:
[
{
required
:
true
,
message
:
'请输入姓名'
,
trigger
:
'blur'
}],
Tel
:
[{
message
:
"请输入姓名"
,
trigger
:
"blur"
}
],
Tel
:
[
{
required
:
true
,
message
:
'请输入电话'
,
trigger
:
'blur'
}],
CourseName
:
[{
message
:
"请输入电话"
,
trigger
:
"blur"
}
],
CourseName
:
[
{
required
:
true
,
message
:
'请输入兴趣课程'
,
trigger
:
'blur'
}],
StudyTime
:
[{
message
:
"请输入兴趣课程"
,
trigger
:
"blur"
}
],
StudyTime
:
[
{
required
:
true
,
message
:
'请输入学习时间'
,
trigger
:
'blur'
}],
LevelType
:
[{
message
:
"请输入学习时间"
,
trigger
:
"blur"
}
],
LevelType
:
[
{
required
:
true
,
message
:
'请选择当前水平'
,
trigger
:
'change'
}],
VisitorStatus
:
[{
message
:
"请选择当前水平"
,
trigger
:
"change"
}
],
VisitorStatus
:
[
{
required
:
true
,
message
:
'请选择状态'
,
trigger
:
'change'
}],
Evaluate
:
[{
message
:
"请选择状态"
,
trigger
:
"change"
}
],
Evaluate
:
[
{
required
:
true
,
message
:
'请输入意向评估'
,
trigger
:
'blur'
}]
message
:
"请输入意向评估"
,
trigger
:
"blur"
}
]
},
sendObj
:
{},
isShowDetail
:
false
}
isShowDetail
:
false
,
todayVistList
:
[],
showTodayVist
:
[]
};
},
watch
:
{
//有默认值
...
...
@@ -385,20 +692,20 @@
this
.
initAuth
();
},
immediate
:
true
}
},
},
created
()
{
},
created
()
{},
mounted
()
{
this
.
msg
.
PlanId
=
this
.
saveObj
.
Id
;
this
.
getGuestBasics
();
this
.
initAuth
()
this
.
initAuth
();
this
.
getVisitoryPage
();
this
.
initTodayVistList
();
},
methods
:
{
submitForm
(
addMsg1
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg1
].
validate
((
valid
)
=>
{
submitForm
(
addMsg1
)
{
//提交创建、修改表单
this
.
$refs
[
addMsg1
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
SaveVisitor
();
}
else
{
...
...
@@ -407,14 +714,13 @@
});
},
submitForm2
(
addMsg2
)
{
this
.
$refs
[
addMsg2
].
validate
((
valid
)
=>
{
this
.
$refs
[
addMsg2
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
SaveVisitor
();
}
else
{
return
false
;
}
});
},
//初始化权限信息
initAuth
()
{
...
...
@@ -446,19 +752,21 @@
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getVisitoryPage
()
this
.
getVisitoryPage
();
},
//获取访客列表
getVisitoryPage
()
{
this
.
loading
=
true
;
getStudentPage
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
"res"
,
res
)
this
.
loading
=
false
getStudentPage
(
this
.
msg
)
.
then
(
res
=>
{
console
.
log
(
"res"
,
res
);
this
.
loading
=
false
;
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}).
catch
(()
=>
{
this
.
loading
=
false
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
},
//新增修改访客
EditVisitor
(
Id
)
{
...
...
@@ -482,7 +790,7 @@
this
.
addMsg
.
Remark
=
tempData
.
Remark
;
}
}
})
});
}
else
{
this
.
clearAddMsg
();
}
...
...
@@ -496,7 +804,7 @@
this
.
addMsg
.
StudyTime
=
""
;
this
.
addMsg
.
LevelType
=
""
;
this
.
msg
.
PlanId
=
this
.
saveObj
.
Id
;
this
.
addMsg
.
VisitorStatus
=
''
;
this
.
addMsg
.
VisitorStatus
=
""
;
this
.
addMsg
.
Evaluate
=
""
;
this
.
addMsg
.
Remark
=
""
;
this
.
$refs
.
addMsg1
.
resetFields
();
...
...
@@ -511,12 +819,12 @@
this
.
clearAddMsg
();
this
.
$refs
.
addMsg1
.
resetFields
();
this
.
$refs
.
addMsg2
.
resetFields
();
})
});
},
//过滤备注显示
getRemarks
(
remark
)
{
if
(
remark
.
length
>
10
)
{
return
remark
.
substring
(
0
,
10
)
+
'...'
;
return
remark
.
substring
(
0
,
10
)
+
"..."
;
}
else
{
return
remark
;
}
...
...
@@ -529,10 +837,37 @@
//关闭
closeDetail
()
{
this
.
isShowDetail
=
false
;
},
changeVisitList
()
{
this
.
loadingObj
.
visitLoading
=
true
;
this
.
showTodayVist
=
[];
this
.
$nextTick
(()
=>
{
this
.
showTodayVist
=
this
.
todayVistList
.
filter
(
x
=>
{
return
(
x
.
StuName
.
indexOf
(
this
.
searchObj
.
arriveVisitKey
)
!=
-
1
||
x
.
StuTel
.
indexOf
(
this
.
searchObj
.
arriveVisitKey
)
!=
-
1
);
});
this
.
loadingObj
.
visitLoading
=
false
;
});
},
initTodayVistList
()
{
this
.
loadingObj
.
visitLoading
=
true
;
if
(
this
.
$route
.
query
.
Id
)
{
let
msg
=
{
Id
:
this
.
$route
.
query
.
Id
};
getTodayVisitList
(
msg
).
then
(
r
=>
{
console
.
log
(
r
);
this
.
todayVistList
=
r
.
Data
;
this
.
showTodayVist
=
this
.
todayVistList
;
this
.
loadingObj
.
visitLoading
=
false
;
});
}
else
{
this
.
loadingObj
.
visitLoading
=
false
;
}
}
}
};
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
</
style
>
src/pages/classroom/components/schedul-visit.vue
View file @
ed19de17
...
...
@@ -94,6 +94,7 @@
</
style
>
<
template
>
<div
class=
"schedulVisit"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"stickycreatInsertStr-column-table schedul_Vtable"
separator=
"none"
:data=
"data"
:columns=
"columns"
...
...
@@ -143,6 +144,7 @@
},
data
()
{
return
{
tabCheck
:
"first"
,
columns
:
[{
name
:
'GuestName'
,
label
:
'姓名'
,
...
...
src/pages/scheduling/scheduleBoard.vue
View file @
ed19de17
...
...
@@ -122,15 +122,18 @@
}
.Sctop_Color
{
font-size
:
1
8
px
;
font-size
:
1
5
px
;
color
:
#000000
;
width
:
19%
;
text-align
:
center
;
font-weight
:
600
;
font-family
:
pingfang
;
}
.Scotop_little
{
color
:
#AAAAAA
;
font-size
:
14px
;
font-size
:
12px
;
font-weight
:
400
;
margin-right
:
15px
;
display
:
inline-block
;
text-align
:
right
;
...
...
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