Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
ce78bdba
Commit
ce78bdba
authored
Sep 04, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c0596a85
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
201 additions
and
51 deletions
+201
-51
dialog.vue
src/components/team/dialog.vue
+176
-42
index.vue
src/components/team/index.vue
+24
-7
index.js
src/service/index.js
+1
-2
No files found.
src/components/team/dialog.vue
View file @
ce78bdba
This diff is collapsed.
Click to expand it.
src/components/team/index.vue
View file @
ce78bdba
...
...
@@ -17,11 +17,17 @@
<el-table-column
label=
"组别"
width=
"50px"
>
<template
slot-scope=
"scope"
>
{{
(
String
(
scope
.
row
.
squad
).
indexOf
(
','
)
>
-
1
&&
scope
.
row
.
total
)
?
'合计'
:
`T${scope.row.squad
}
`
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"销售顾问"
>
<!--
<
el
-
table
-
column
label
=
"销售顾问"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
html
=
"transStaff(scope.row)"
><
/span
>
<
/template
>
<
/el-table-column>--
>
<
el
-
table
-
column
v
-
if
=
"this.search.team != '1,2,3,4,5,6,7,8,9,10'"
label
=
"销售顾问"
>
<
template
slot
-
scope
=
"scope"
>
{{
scope
.
row
.
total
?
'-'
:
scope
.
row
.
staff_name
}}
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"reach_class_num"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['reach_class_num']"
placement
=
"top"
>
...
...
@@ -31,6 +37,7 @@
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"reach_course_num"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['reach_course_num']"
placement
=
"top"
>
...
...
@@ -40,6 +47,7 @@
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"wait_add_friend"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['wait_add_friend']"
placement
=
"top"
>
...
...
@@ -49,6 +57,7 @@
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"wait_visit_num"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['wait_visit_num']"
placement
=
"top"
>
...
...
@@ -58,6 +67,7 @@
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"over_visit_num"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['over_visit_num']"
placement
=
"top"
>
...
...
@@ -70,6 +80,7 @@
<
el
-
link
@
click
=
"dialogToggle(scope.row, 'callback')"
>
{{
scope
.
row
.
over_visit_num
}}
<
/el-link
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"chat_contact_count"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['chat_contact_count']"
placement
=
"top"
>
...
...
@@ -79,6 +90,7 @@
<
/el-tooltip
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"valid_chat_contact_count"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['valid_chat_contact_count']"
placement
=
"top"
>
...
...
@@ -91,6 +103,7 @@
<
el
-
link
@
click
=
"dialogToggle(scope.row, 'validchat')"
>
{{
scope
.
row
.
valid_chat_contact_count
}}
<
/el-link
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"valid_phone_counts"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<
el
-
tooltip
effect
=
"dark"
:
content
=
"TIP_TEAM['valid_phone_counts']"
placement
=
"top"
>
...
...
@@ -103,6 +116,7 @@
<
el
-
link
@
click
=
"dialogToggle(scope.row, 'phonerecord')"
>
{{
scope
.
row
.
valid_phone_counts
}}
<
/el-link
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"phone_total_time"
>
<
template
slot
=
"header"
slot
-
scope
=
"scope"
>
<!--
TODO
-->
...
...
@@ -136,7 +150,7 @@
<
/el-tooltip
>
<
/template
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
link
@
click
=
"dialogToggle"
>
{{
scope
.
row
.
month_order_num
}}
<
/el-link
>
<
el
-
link
@
click
=
"dialogToggle
(scope.row, 'achievement')
"
>
{{
scope
.
row
.
month_order_num
}}
<
/el-link
>
<
/template
>
<
/el-table-column
>
...
...
@@ -149,7 +163,7 @@
<
/el-tooltip
>
<
/template
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
link
@
click
=
"dialogToggle"
>
<
el
-
link
@
click
=
"dialogToggle
(scope.row, 'achievement')
"
>
{{
transRate
(
scope
.
row
.
month_trans_order_num
,
scope
.
row
.
month_trans_user_num
)
}}
<
/el-link
>
<
/template
>
...
...
@@ -164,7 +178,7 @@
<
/el-tooltip
>
<
/template
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
link
@
click
=
"dialogToggle"
>
{{
scope
.
row
.
order_money_count
}}
<
/el-link
>
<
el
-
link
@
click
=
"dialogToggle
(scope.row, 'achievement')
"
>
{{
scope
.
row
.
order_money_count
}}
<
/el-link
>
<
/template
>
<
/el-table-column
>
<
/el-table
>
...
...
@@ -271,15 +285,18 @@
}
return
''
;
}
,
dialogToggle
(
row
,
type
)
{
console
.
log
(
'row'
,
row
);
this
.
dialogObj
=
{
team
:
this
.
search
.
team
,
alias
:
row
.
alias
,
// 老师微信号
squad
:
(
String
(
row
.
squad
).
indexOf
(
','
)
>
-
1
&&
row
.
total
)
?
''
:
`${row.squad
}
`
,
show
:
true
,
total
:
row
.
total
,
type
:
type
,
user_id
:
row
.
user_id
,
teacher_id
:
row
.
teacher_id
,
start_at
:
this
.
search
.
start_at
,
staff_name
:
row
.
staff_name
staff_name
:
row
.
staff_name
.
indexOf
(
','
)
>-
1
?
row
.
staff_name
.
split
(
','
).
join
(
','
)
:
row
.
staff_name
}
}
,
getData
()
{
...
...
src/service/index.js
View file @
ce78bdba
...
...
@@ -32,8 +32,7 @@ axios.interceptors.request.use(
config
.
params
=
config
.
params
||
{};
let
json
=
JSON
.
parse
(
JSON
.
stringify
(
config
.
params
));
// console.log(json)
for
(
let
k
in
json
)
{
for
(
let
k
in
json
)
{
// let reg = /^[0-9]+$/u;
// if(reg.test(json[k])){
// console.log(json[k])
...
...
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