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
c462bd68
Commit
c462bd68
authored
Jun 22, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
833cf737
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
32 deletions
+29
-32
visitor-form.vue
src/components/schedul/visitor-form.vue
+1
-1
visitorRegistrat.vue
src/pages/sale/visitorRegistrat.vue
+28
-31
No files found.
src/components/schedul/visitor-form.vue
View file @
c462bd68
...
...
@@ -31,7 +31,7 @@
ref=
"VisitorStatus"
v-model=
"objOption.VisitorStatus"
:options=
"statusList"
:rules=
"[val => !!val || '请选择状态']"
emit-value
map-options
label=
"状态"
/>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"objOption.Evaluate"
ref=
"Evaluate"
class=
"col-6 q-pb-lg"
label=
"
兴趣课程"
:rules=
"[val => !!val || '请输入兴趣课程
']"
/>
label=
"
意向评估"
:rules=
"[val => !!val || '请输入意向评估
']"
/>
</div>
<div
class=
"row wrap"
>
<q-input
filled
stack-label
type=
"textarea"
maxlength=
"500"
:dense=
"false"
v-model=
"objOption.Remark"
...
...
src/pages/sale/visitorRegistrat.vue
View file @
c462bd68
...
...
@@ -38,9 +38,12 @@
</
template
>
<
template
v-slot:body-cell-Id=
"props"
>
<q-td
:props=
"props"
>
<q-btn
flat
size=
"xs"
@
click=
"editVisitor(props.row)"
icon=
"edit"
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-btn
flat
size=
"xs"
@
click=
"getAppointment()"
icon=
"iconfont icon-ziyuan1"
color=
"accent"
style=
"font-weight:400;"
label=
"申请约课"
/>
<q-btn
flat
size=
"xs"
@
click=
"editVisitor(props.row)"
icon=
"edit"
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-btn
flat
size=
"xs"
@
click=
"getAppointment(props.row)"
icon=
"iconfont icon-ziyuan1"
color=
"accent"
style=
"font-weight:400;"
label=
"申请约课"
/>
</q-td>
</
template
>
...
...
@@ -50,13 +53,10 @@
</
template
>
</q-table>
</div>
<schedulFanke
v-if=
"isShowDetail"
@
close=
"closeDetail"
:save-obj=
"sendObj"
></schedulFanke>
<visitor-form
v-if=
"isShowVisitor"
:save-obj=
"visitObjOption"
@
close=
"closeVisitorForm"
@
success=
"refreshPage"
>
<visitor-form
v-if=
"isShowVisitor"
:save-obj=
"visitObjOption"
@
close=
"closeVisitorForm"
@
success=
"refreshPage"
>
</visitor-form>
<appoint-form
v-if=
"isShowFangke"
@
close=
"closeAppoint"
>
</appoint-form>
<schedulFanke
v-if=
"isShowDetail"
@
close=
"closeDetail"
:save-obj=
"sendObj"
></schedulFanke>
<appoint-form
v-if=
"isShowFangke"
:save-obj=
"visitObjOption"
@
close=
"closeAppoint"
@
success=
"refreshPage"
></appoint-form>
</div>
</template>
...
...
@@ -165,13 +165,11 @@
label
:
'操作'
,
}
],
sendObj
:{},
isShowDetail
:
false
,
isShowVisitor
:
false
,
visitObjOption
:
null
,
isShowFangke
:
false
,
//是否显示填写预约
sendObj
:
{},
isShowDetail
:
false
,
isShowVisitor
:
false
,
visitObjOption
:
null
,
isShowFangke
:
false
,
//是否显示填写预约
}
},
mounted
()
{
...
...
@@ -182,9 +180,7 @@
},
methods
:
{
//新增访客
editVisitor
(
obj
){
console
.
log
(
obj
);
editVisitor
(
obj
)
{
if
(
obj
)
{
this
.
visitObjOption
=
obj
;
}
else
{
...
...
@@ -211,24 +207,24 @@
this
.
getVisitoryPage
();
},
//过滤备注显示
getRemarks
(
remark
){
if
(
remark
.
length
>
10
)
{
return
remark
.
substring
(
0
,
10
)
+
'...'
;
}
else
{
getRemarks
(
remark
)
{
if
(
remark
.
length
>
10
)
{
return
remark
.
substring
(
0
,
10
)
+
'...'
;
}
else
{
return
remark
;
}
},
//获取详情
getDetail
(
obj
){
getDetail
(
obj
)
{
this
.
sendObj
=
obj
;
this
.
isShowDetail
=
true
;
this
.
isShowDetail
=
true
;
},
//关闭
closeDetail
(){
this
.
isShowDetail
=
false
;
closeDetail
()
{
this
.
isShowDetail
=
false
;
},
//关闭访客弹窗
closeVisitorForm
(){
closeVisitorForm
()
{
this
.
isShowVisitor
=
false
;
this
.
isShowDetail
=
false
;
},
...
...
@@ -239,11 +235,12 @@
this
.
getList
();
},
//打开约课
getAppointment
(){
getAppointment
(
item
)
{
this
.
visitObjOption
=
item
;
this
.
isShowFangke
=
true
;
},
closeAppoint
(){
this
.
isShowFangke
=
false
;
closeAppoint
()
{
this
.
isShowFangke
=
false
;
}
}
}
...
...
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