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
17aa2574
Commit
17aa2574
authored
Jun 22, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
574ab4c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
110 additions
and
2 deletions
+110
-2
yueke-form.vue
src/components/schedul/yueke-form.vue
+91
-0
appointManagement.vue
src/pages/sale/appointManagement.vue
+19
-2
No files found.
src/components/schedul/yueke-form.vue
0 → 100644
View file @
17aa2574
<
template
>
<q-dialog
v-model=
"persistent"
content-class=
"bg-grey-1"
persistent
transition-show=
"scale"
transition-hide=
"scale"
>
<q-card
style=
"width: 400px;max-width:400px;"
>
<q-card-section
class=
"q-pt-none scroll"
style=
"max-height: 70vh"
>
<q-card-section>
<div
class=
"text-h6"
>
<span
v-if=
"ChoiceType==3"
>
请填写取消备注
</span>
<span
v-if=
"ChoiceType==2"
>
请选择流单原因
</span>
</div>
</q-card-section>
<div
class=
"row wrap"
>
<template
v-if=
"ChoiceType==3"
>
<q-input
filled
stack-label
:dense=
"false"
v-model=
"msg.remark"
type=
"textarea"
class=
"col-12"
label=
"备注"
/>
</
template
>
<
template
v-if=
"ChoiceType==2"
>
<q-select
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"chooseLiudan"
ref=
"remark"
:options=
"reasonList"
label=
"流单原因"
:dense=
"false"
class=
"col-12 q-pb-lg"
emit-value
map-options
multiple
/>
</
template
>
</div>
</div>
</q-card-section>
<q-separator
/>
<q-card-actions
align=
"right"
class=
"bg-white"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"closeSaveForm"
/>
<q-btn
label=
"立即提交"
color=
"accent q-px-md"
style=
"font-weight:400 !important"
:loading=
"saveLoading"
@
click=
"saveYueke"
/>
</q-card-actions>
</q-card>
</q-dialog>
</template>
<
script
>
export
default
{
props
:
{
ChoiceType
:
{
type
:
Number
,
default
:
null
}
},
data
()
{
return
{
persistent
:
true
,
saveLoading
:
false
,
msg
:
{
remark
:
''
},
chooseLiudan
:[],
reasonList
:
[{
Id
:
1
,
Name
:
'教学环境'
},
{
Id
:
2
,
Name
:
'教学内容'
},
{
Id
:
3
,
Name
:
'讲师'
},
{
Id
:
4
,
Name
:
'价格'
},
{
Id
:
5
,
Name
:
'销售跟进'
},
{
Id
:
6
,
Name
:
'同行竞争'
},
{
Id
:
7
,
Name
:
'其他'
}]
}
},
mounted
()
{},
methods
:
{
//关闭弹窗
closeSaveForm
()
{
this
.
$emit
(
'close'
)
this
.
persistent
=
false
},
//保存菜单
saveYueke
()
{
this
.
saveLoading
=
true
;
if
(
this
.
ChoiceType
==
2
){
this
.
msg
.
remark
=
this
.
chooseLiudan
.
toString
();
}
console
.
log
(
this
.
msg
,
'msg'
);
},
}
}
</
script
>
src/pages/sale/appointManagement.vue
View file @
17aa2574
...
...
@@ -35,6 +35,7 @@
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
<yuekeForm
v-if=
"isShowYue"
:ChoiceType=
"ChoiceType"
@
close=
"closeYuekeForm"
@
success=
"refreshPage"
></yuekeForm>
</div>
</template>
...
...
@@ -42,11 +43,15 @@
import
{
queryVisitorReservePage
}
from
'../../api/scheduling/schedu'
import
yuekeForm
from
'../../components/schedul/yueke-form'
export
default
{
meta
:
{
title
:
"约课管理"
},
components
:
{},
components
:
{
yuekeForm
},
data
()
{
return
{
msg
:
{
...
...
@@ -104,6 +109,8 @@
field
:
'Id'
}
],
isShowYue
:
false
,
ChoiceType
:
0
}
},
...
...
@@ -133,8 +140,18 @@
//预约操作按钮
OperateVitior
(
item
,
type
)
{
this
.
ChoiceType
=
type
;
this
.
isShowYue
=
true
;
},
//关闭弹窗
closeYuekeForm
()
{
this
.
isShowYue
=
false
},
//刷新页面
refreshPage
()
{
this
.
getList
();
}
}
}
...
...
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