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
50ef66d1
Commit
50ef66d1
authored
Jan 17, 2022
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d3db4bd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
3 deletions
+72
-3
mystu.vue
src/pages/sale/mystu.vue
+72
-3
No files found.
src/pages/sale/mystu.vue
View file @
50ef66d1
...
...
@@ -167,6 +167,32 @@
label=
"我下属的"
/>
</div>
<div
class=
"col-3"
>
<q-select
dense
clearable
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.CreateType"
:options=
"customFromList"
emit-value
map-options
label=
"客户来源"
/>
</div>
<div
class=
"col-3"
>
<q-select
filled
v-model=
"msg.StuChannel"
dense
:options=
"StuChannelList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
use-input
@
filter=
"filterStuChannel"
>
<
template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
</div>
</div>
</div>
<div
class=
"page-content"
>
...
...
@@ -206,7 +232,11 @@ import { queryEmployee } from "../../api/users/user";
import
{
resetPassword
}
from
"../../api/users/user.js"
;
import
stulist
from
"../../components/school/student/stulist"
;
import
{
getMyCustomerList
}
from
"../../api/sale/sale"
;
import
{
getMyCustomerList
,
CreateTypeList
,
GetStuChannelList
}
from
"../../api/sale/sale"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
meta
:
{
...
...
@@ -238,7 +268,9 @@ export default {
WechatNo
:
""
,
StuType
:
""
,
CreateIds
:
[],
ExistCourseConsultant
:
""
//是否存在课程顾问(1-存在,2=不存在)
ExistCourseConsultant
:
""
,
//是否存在课程顾问(1-存在,2=不存在)
CreateType
:
''
,
//客户来源
StuChannel
:
""
//收客渠道
},
dateArray
:
[],
//日期数组
pageCount
:
0
,
...
...
@@ -279,7 +311,10 @@ export default {
],
isJudgeTrans
:
1
,
//用于判断转交是否有条件
SubordList
:
[],
//我的下属数据
AllSubordList
:
[]
AllSubordList
:
[],
customFromList
:
[],
//客户来源
StuChannelList
:
[],
//收客渠道
allStuChannelList
:
[],
//所有收客渠道
};
},
created
()
{
...
...
@@ -292,12 +327,46 @@ export default {
this
.
currentUrl
=
this
.
$route
.
path
;
this
.
getStudent
();
this
.
getCustomerList
();
this
.
getCustomFrom
();
this
.
GetStuChannelList
();
},
computed
:
{
...
mapGetters
([
"userInfo"
])
},
methods
:
{
//获取收客渠道
GetStuChannelList
()
{
GetStuChannelList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
StuChannelList
=
res
.
Data
;
this
.
allStuChannelList
=
res
.
Data
;
}
});
},
//筛选渠道
filterStuChannel
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
""
)
{
this
.
StuChannelList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
allStuChannelList
)
);
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
StuChannelList
=
this
.
allStuChannelList
.
filter
(
v
=>
v
.
Name
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
});
},
//获取客户来源
getCustomFrom
()
{
CreateTypeList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customFromList
=
res
.
Data
;
}
});
},
//获取我下属的下拉数据
GetSubordList
()
{
GetPersonalDimension
().
then
(
res
=>
{
...
...
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