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
918e4a12
Commit
918e4a12
authored
Sep 03, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
553f4966
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
10 deletions
+33
-10
webpack.dev.conf.js
build/webpack.dev.conf.js
+1
-0
dialog.vue
src/components/team/dialog.vue
+22
-3
index.vue
src/components/team/index.vue
+10
-7
No files found.
build/webpack.dev.conf.js
View file @
918e4a12
...
...
@@ -22,6 +22,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
// these devServer options should be customized in /config/index.js
devServer
:
{
disableHostCheck
:
true
,
clientLogLevel
:
'warning'
,
historyApiFallback
:
{
rewrites
:
[
...
...
src/components/team/dialog.vue
View file @
918e4a12
...
...
@@ -2,8 +2,12 @@
<el-dialog
:title=
"title"
append-to-body
:visible
.
sync=
"show"
width=
"800px"
>
<div
v-loading=
"loading"
>
<div>
销售顾问
</div>
<el-table
:data=
"list"
>
<el-table-column
prop=
"month_order_rate"
>
</el-table-column>
</el-table>
<page
:total=
"total"
:limit=
"limit"
@
pageChange=
"onPageChange"
@
sizeChange=
"onSizeChange"
/>
...
...
@@ -19,6 +23,7 @@
export
default
{
name
:
"TeamDialog"
,
components
:
{
page
},
props
:
{
dialogObj
:
{
type
:
Object
,
...
...
@@ -46,15 +51,29 @@
if
(
this
.
dialogObj
)
{
this
.
show
=
this
.
dialogObj
.
show
;
if
(
this
.
dialogObj
.
type
==
'callback'
)
{
this
.
getVisited
();
}
else
if
(
this
.
dialogObj
.
type
==
'class'
)
{
this
.
getClass
();
}
}
},
getVisited
()
{
let
json
=
{
teacher_id
:
this
.
dialogObj
.
teacher_id
,
start_at
:
this
.
dialogObj
.
start_at
,
page
:
this
.
nowPage
,
limit
:
this
.
limit
}
getVisitedApi
(
json
).
then
(
res
=>
{
this
.
loading
=
false
;
console
.
log
(
res
)
})
},
getClass
()
{
let
json
=
{
getVisitedApi
().
then
(
res
=>
{
}
getClassOpenedApi
().
then
(
res
=>
{
})
},
...
...
src/components/team/index.vue
View file @
918e4a12
...
...
@@ -67,7 +67,7 @@
<
/el-tooltip
>
<
/template
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
link
@
click
=
"dialogToggle('callback')"
>
{{
scope
.
row
.
over_visit_num
}}
<
/el-link
>
<
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"
>
...
...
@@ -88,7 +88,7 @@
<
/el-tooltip
>
<
/template
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
link
@
click
=
"dialogToggle('callback')"
>
{{
scope
.
row
.
valid_chat_contact_count
}}
<
/el-link
>
<
el
-
link
@
click
=
"dialogToggle(
scope.row,
'callback')"
>
{{
scope
.
row
.
valid_chat_contact_count
}}
<
/el-link
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"valid_phone_counts"
>
...
...
@@ -100,7 +100,7 @@
<
/el-tooltip
>
<
/template
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
link
@
click
=
"dialogToggle('callback')"
>
{{
scope
.
row
.
valid_phone_counts
}}
<
/el-link
>
<
el
-
link
@
click
=
"dialogToggle(
scope.row,
'callback')"
>
{{
scope
.
row
.
valid_phone_counts
}}
<
/el-link
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
prop
=
"phone_total_time"
>
...
...
@@ -205,8 +205,8 @@
loading
:
true
,
search
:
{
team
:
'1'
,
//
start_at: getNowFormatDate()
start_at
:
new
Date
(
)
start_at
:
getNowFormatDate
()
// start_at: new Date(
)
}
,
pickerOptions
:
{
disabledDate
(
time
)
{
...
...
@@ -253,10 +253,13 @@
}
return
''
;
}
,
dialogToggle
(
type
)
{
dialogToggle
(
row
,
type
)
{
console
.
log
(
'row'
,
row
);
this
.
dialogObj
=
{
show
:
true
,
type
:
type
type
:
type
,
teacher_id
:
row
.
teacher_id
,
start_at
:
this
.
search
.
start_at
,
}
}
,
getData
()
{
...
...
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