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
4b739bf8
Commit
4b739bf8
authored
Jan 11, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
90edd4c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
32 deletions
+54
-32
mystu.vue
src/pages/sale/mystu.vue
+54
-32
No files found.
src/pages/sale/mystu.vue
View file @
4b739bf8
...
...
@@ -15,16 +15,16 @@
<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
clearable
:options=
"customTypeList"
option-label=
"Name"
option-value=
"Id"
emit-value
map-options
label=
"客户类型"
/>
<q-select
@
input=
"resetSearch"
filled
v-model=
"msg.StuType"
dense
clearable
: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"
dense
v-model=
"msg.CustomerId"
:options=
"myCustomerList"
filled
use-input
label=
"同行"
option-label=
"CustomerName"
option-value=
"CustomerId"
ref=
"CustomerName"
class=
"col-6"
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>
...
...
@@ -36,21 +36,29 @@
</q-select>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetBelong"
dense
filled
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.BelongType"
:options=
"BelongTypeList"
emit-value
map-options
label=
"归属类型"
/>
<q-select
@
input=
"resetBelong"
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=
"结束时间"
/>
<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
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
dense
filled
clearable
use-input
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.ExistCourseConsultant"
:options=
"consultantList"
emit-value
map-options
label=
"是否存在课程顾问"
/>
</div>
<div
class=
"col-3"
v-if=
"msg.BelongType==4"
>
<q-select
@
input=
"resetSearch"
dense
clearable
@
filter=
"filterSubord"
use-input
filled
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"msg.CreateIds"
multiple
:options=
"SubordList"
emit-value
map-options
label=
"我下属的"
/>
<q-select
@
input=
"resetSearch"
dense
clearable
@
filter=
"filterSubord"
use-input
filled
option-value=
"Id"
option-label=
"EmployeeName"
v-model=
"msg.CreateIds"
multiple
:options=
"SubordList"
emit-value
map-options
label=
"我下属的"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
...
...
@@ -84,7 +92,9 @@
import
{
getMyCustomerList
}
from
"../../api/sale/sale"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
meta
:
{
title
:
"客户管理"
...
...
@@ -111,10 +121,11 @@
StartTime
:
""
,
//开始时间
EndTime
:
""
,
//结束时间
CustomerId
:
0
,
QQ
:
''
,
WechatNo
:
''
,
StuType
:
''
,
CreateIds
:[]
QQ
:
''
,
WechatNo
:
''
,
StuType
:
''
,
CreateIds
:
[],
ExistCourseConsultant
:
""
,
//是否存在课程顾问(1-存在,2=不存在)
},
dateArray
:
[],
//日期数组
pageCount
:
0
,
...
...
@@ -141,9 +152,19 @@
Name
:
"我下属的"
}
],
isJudgeTrans
:
1
,
//用于判断转交是否有条件
SubordList
:[],
//我的下属数据
AllSubordList
:[]
//课程顾问
consultantList
:
[{
Id
:
1
,
Name
:
"是"
},
{
Id
:
2
,
Name
:
"否"
},
],
isJudgeTrans
:
1
,
//用于判断转交是否有条件
SubordList
:
[],
//我的下属数据
AllSubordList
:
[]
};
},
created
()
{
...
...
@@ -163,9 +184,9 @@
methods
:
{
//获取我下属的下拉数据
GetSubordList
(){
GetSubordList
()
{
GetPersonalDimension
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
SubordList
=
res
.
Data
;
this
.
AllSubordList
=
res
.
Data
;
}
...
...
@@ -186,7 +207,7 @@
});
},
//获取客户类型
getCustomTypeList
(){
getCustomTypeList
()
{
GetStudentTypeList
().
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
customTypeList
=
res
.
Data
;
...
...
@@ -197,8 +218,8 @@
this
.
msg
.
pageIndex
=
1
;
this
.
getStudent
();
},
resetBelong
(){
if
(
this
.
msg
.
BelongType
!=
4
)
{
resetBelong
()
{
if
(
this
.
msg
.
BelongType
!=
4
)
{
this
.
msg
.
pageIndex
=
1
;
this
.
getStudent
();
}
...
...
@@ -226,11 +247,11 @@
this
.
loading
=
false
;
this
.
data
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
this
.
data
.
forEach
(
x
=>
{
if
(
x
.
CreateBy
!=
this
.
userInfo
.
Id
)
{
x
.
BelongType
=
3
}
else
{
x
.
BelongType
=
1
this
.
data
.
forEach
(
x
=>
{
if
(
x
.
CreateBy
!=
this
.
userInfo
.
Id
)
{
x
.
BelongType
=
3
}
else
{
x
.
BelongType
=
1
}
})
})
...
...
@@ -272,8 +293,9 @@
@import
url('~assets/css/table.sass')
</
style
>
<
style
scoped
>
/
deep
/
.el-input__inner
,
/
deep
/
.el-range-input
{
/
deep
/
.el-input__inner
,
/
deep
/
.el-range-input
{
background-color
:
transparent
;
border
:
none
;
}
}
</
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