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
35b50da4
Commit
35b50da4
authored
Apr 30, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7d3f2b78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
246 additions
and
14 deletions
+246
-14
schedu.js
src/api/scheduling/schedu.js
+73
-1
schedul-visit.vue
src/components/schedul/schedul-visit.vue
+173
-13
No files found.
src/api/scheduling/schedu.js
View file @
35b50da4
...
...
@@ -55,4 +55,76 @@ export function OnDuty(data) {
method
:
'post'
,
data
})
}
\ No newline at end of file
}
//获取访客列表
export
function
queryVisitorPage
(
data
)
{
return
request
({
url
:
'/DutyPlan/GetVisitorPage'
,
method
:
'post'
,
data
})
}
//新增修改访客
export
function
setVisitor
(
data
)
{
return
request
({
url
:
'/DutyPlan/SetVisitor'
,
method
:
'post'
,
data
})
}
//根据编号查询访客信息
export
function
queryVisitor
(
data
)
{
return
request
({
url
:
'/DutyPlan/GetVisitor'
,
method
:
'post'
,
data
})
}
//修改访客状态
export
function
updateVisitor
(
data
)
{
return
request
({
url
:
'/DutyPlan/UpdateVisitor'
,
method
:
'post'
,
data
})
}
//修改访客删除状态
export
function
setVisitorStatus
(
data
)
{
return
request
({
url
:
'/DutyPlan/RemoveVisitor'
,
method
:
'post'
,
data
})
}
//删除值班内容
export
function
removeDutyContent
(
data
)
{
return
request
({
url
:
'/DutyPlan/RemoveDutyContent'
,
method
:
'post'
,
data
})
}
//新增修改值班内容
export
function
SetDutyContent
(
data
)
{
return
request
({
url
:
'/DutyPlan/SetDutyContent'
,
method
:
'post'
,
data
})
}
//值班签到
export
function
DutyCheck
(
data
)
{
return
request
({
url
:
'/DutyPlan/DutyCheck'
,
method
:
'post'
,
data
})
}
src/components/schedul/schedul-visit.vue
View file @
35b50da4
<
style
>
</
style
>
<
template
>
<div>
123
<div
class=
"page-body"
>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"stickycreatInsertStr-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
style=
"cursor:pointer"
>
访客登记
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"添加访客"
/>
</div>
</
template
>
<
template
v-slot:body-cell-VisitorStatus=
"props"
>
<q-td
:props=
"props"
>
<span>
{{
props
.
row
.
VisitorStatusStr
}}
</span>
</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
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
""
/>
</q-td>
</
template
>
</q-table>
</div>
</div>
</template>
<
script
>
import
{
queryVisitorPage
}
from
'../../api/scheduling/schedu'
import
{
getGuestBasicsEnumList
}
from
'../../api/sale/sale'
export
default
{
props
:
{
saveObj
:
{
...
...
@@ -16,18 +47,147 @@
},
data
()
{
return
{
dataList
:
{}
currentUrl
:
""
,
columns
:
[{
name
:
'Name'
,
label
:
'姓名'
,
required
:
true
,
field
:
'Name'
,
align
:
'left'
},
{
name
:
'Tel'
,
field
:
'Tel'
,
label
:
'电话'
,
align
:
'left'
,
},
{
name
:
'WeChatNum'
,
field
:
'WeChatNum'
,
label
:
'微信'
,
align
:
'left'
},
{
name
:
'CourseName'
,
label
:
'兴趣课程'
,
field
:
'CourseName'
,
align
:
'left'
},
{
name
:
'StudyTime'
,
label
:
'学习时间'
,
field
:
'StudyTime'
,
align
:
'left'
},
{
name
:
'LevelType'
,
label
:
'当前水平'
,
field
:
'LevelType'
,
align
:
'left'
},
{
name
:
'CreateByName'
,
label
:
'关联人员'
,
field
:
'CreateByName'
,
align
:
'left'
},
{
name
:
'VisitorStatus'
,
label
:
'状态'
,
field
:
'VisitorStatus'
,
align
:
'left'
},
{
name
:
'Evaluate'
,
label
:
'意向评估'
,
field
:
'Evaluate'
,
align
:
'left'
},
{
name
:
'VisitTimes'
,
label
:
'到访次数'
,
field
:
'VisitTimes'
,
align
:
'left'
},
{
name
:
'Remark'
,
label
:
'备注'
,
field
:
'Remark'
,
align
:
'left'
},
{
name
:
'optioned'
,
label
:
'操作'
,
}
],
data
:
[],
loading
:
true
,
pageCount
:
0
,
GBList
:
[],
//日语基础列表
isShowBtn
:
true
,
//默认显示新增名单
msg
:
{
pageIndex
:
1
,
pageSize
:
10
,
rowsPerPage
:
10
,
PlanId
:
0
,
},
addMsg
:{
Id
:
0
,
//编号
Name
:
""
,
//姓名
Tel
:
""
,
//电话
WeChatNum
:
""
,
//微信号
CourseName
:
""
,
//兴趣课程
StudyTime
:
""
,
//学习时间
LevelType
:
""
,
//当前水平
PlanId
:
0
,
//值班编号
}
}
},
created
()
{
this
.
getGuestBasics
()
},
mounted
()
{
this
.
getVisitoryPage
();
},
methods
:
{
//请求数据
getList
()
{
//日语基础枚举
getGuestBasics
()
{
getGuestBasicsEnumList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
GBList
=
res
.
Data
}
});
},
},
}
//重新查询
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getVisitoryPage
();
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
getVisitoryPage
()
},
//获取访客列表
getVisitoryPage
()
{
this
.
loading
=
true
;
queryVisitorPage
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
);
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
//新增修改访客
SetVisitor
(
Id
)
{
</
script
>
\ No newline at end of file
}
}
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
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