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
eb29da8c
Commit
eb29da8c
authored
Dec 16, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e0b3ffb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
15 deletions
+63
-15
mystu.vue
src/pages/sale/mystu.vue
+38
-14
student.vue
src/pages/school/student.vue
+25
-1
No files found.
src/pages/sale/mystu.vue
View file @
eb29da8c
...
...
@@ -3,26 +3,28 @@
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.StuName"
label=
"昵称"
maxlength=
"20"
/>
<q-input
@
input=
"resetSearch"
dense
clearable
filled
v-model=
"msg.StuName"
label=
"昵称"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.StuTel"
label=
"电话"
maxlength=
"20"
/>
<q-input
@
input=
"resetSearch"
dense
clearable
filled
v-model=
"msg.StuTel"
label=
"电话"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
filled
v-model=
"msg.StuStage"
:options=
"customState"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户状态"
clearable
/>
<q-input
@
input=
"resetSearch"
dense
clearable
filled
v-model=
"msg.QQ"
label=
"QQ"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-field
filled
>
<template
v-slot:control
>
<el-date-picker
v-model=
"dateArray"
@
change=
"resetSearch"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
range-separator=
"至"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
/>
</
template
>
</q-field>
<q-input
@
input=
"resetSearch"
dense
clearable
filled
v-model=
"msg.WechatNo"
label=
"微信号"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
filled
v-model=
"msg.StuType"
dense
:options=
"customTypeList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户类型"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
dense
filled
v-model=
"msg.StuStage"
:options=
"customState"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户状态"
clearable
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
v-model=
"msg.CustomerId"
:options=
"myCustomerList"
filled
use-input
label=
"同行"
option-label=
"CustomerName"
option-value=
"CustomerId"
ref=
"CustomerName"
class=
"col-6
q-pb-lg
"
emit-value
<q-select
@
input=
"resetSearch"
dense
v-model=
"msg.CustomerId"
:options=
"myCustomerList"
filled
use-input
label=
"同行"
option-label=
"CustomerName"
option-value=
"CustomerId"
ref=
"CustomerName"
class=
"col-6"
emit-value
map-options
@
filter=
"cusfilterFn"
>
<template
v-slot:no-option
>
<q-item>
...
...
@@ -34,9 +36,17 @@
</q-select>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
filled
option-value=
"Id"
option-label=
"Name"
<q-select
@
input=
"resetSearch"
dense
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.BelongType"
:options=
"BelongTypeList"
emit-value
map-options
label=
"归属类型"
/>
</div>
<div
class=
"col-3"
>
<q-field
filled
dense
>
<
template
v-slot:control
>
<el-date-picker
v-model=
"dateArray"
size=
"mini"
@
change=
"resetSearch"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
range-separator=
"至"
start-placeholder=
"开始时间"
end-placeholder=
"结束时间"
/>
</
template
>
</q-field>
</div>
</div>
</div>
<div
class=
"page-content"
>
...
...
@@ -55,7 +65,8 @@
getSchoolDropdown
,
deleteStudent
,
createStudentAccount
,
queryStuStageList
queryStuStageList
,
GetStudentTypeList
}
from
"../../api/school/index"
;
import
{
queryEmployee
...
...
@@ -94,6 +105,9 @@
EndTime
:
""
,
//结束时间
CustomerId
:
0
,
BelongType
:
1
,
//归属类型
QQ
:
''
,
WechatNo
:
''
,
StuType
:
''
},
dateArray
:
[],
//日期数组
pageCount
:
0
,
...
...
@@ -101,6 +115,7 @@
customState
:
[],
myCustomerList
:
[],
//同行列表
allCustomerList
:
[],
//所有同行列表
customTypeList
:
[],
//客户类型
//归属类型列表
BelongTypeList
:
[{
Id
:
1
,
...
...
@@ -120,6 +135,7 @@
created
()
{
this
.
getSchool
();
this
.
getStuStageList
();
this
.
getCustomTypeList
();
},
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
;
...
...
@@ -133,6 +149,14 @@
this
.
customState
=
res
.
Data
;
});
},
//获取客户类型
getCustomTypeList
(){
GetStudentTypeList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customTypeList
=
res
.
Data
;
}
})
},
resetSearch
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
getStudent
();
...
...
src/pages/school/student.vue
View file @
eb29da8c
...
...
@@ -18,6 +18,16 @@
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.StuTel"
label=
"电话"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.QQ"
label=
"QQ"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.WechatNo"
label=
"微信号"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
filled
v-model=
"msg.StuType"
:options=
"customTypeList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户类型"
clearable
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
filled
v-model=
"msg.CreateBy"
@
filter=
"filterEmployee"
use-input
:options=
"myEmployeeList"
option-label=
"EmployeeName"
option-value=
"Id"
emit-value
map-options
label=
"负责人"
...
...
@@ -54,7 +64,8 @@
getSchoolDropdown
,
deleteStudent
,
createStudentAccount
,
queryStuStageList
queryStuStageList
,
GetStudentTypeList
}
from
'../../api/school/index'
import
{
...
...
@@ -86,6 +97,9 @@
StuStage
:
""
,
//客户阶段
StartTime
:
""
,
//开始时间
EndTime
:
""
,
//结束时间
QQ
:
''
,
WechatNo
:
''
,
StuType
:
''
},
dateArray
:
[],
//日期数组
pageCount
:
0
,
...
...
@@ -93,11 +107,13 @@
myEmployeeList
:
[],
//客户阶段状态列表
customState
:
[],
customTypeList
:
[]
//客户类型
}
},
created
()
{
this
.
getEmployeeList
();
this
.
getStuStageList
();
this
.
getCustomTypeList
();
},
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
...
...
@@ -110,6 +126,14 @@
this
.
customState
=
res
.
Data
;
})
},
//获取客户类型
getCustomTypeList
(){
GetStudentTypeList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customTypeList
=
res
.
Data
;
}
})
},
//获取员工列表
getEmployeeList
()
{
queryEmployee
({
...
...
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