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
21e65c86
Commit
21e65c86
authored
Sep 03, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
918e4a12
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
11 deletions
+20
-11
dialog.vue
src/components/team/dialog.vue
+8
-4
index.vue
src/components/team/index.vue
+12
-7
No files found.
src/components/team/dialog.vue
View file @
21e65c86
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<el-dialog
:title=
"title"
append-to-body
:visible
.
sync=
"show"
width=
"800px"
>
<el-dialog
:title=
"title"
append-to-body
:visible
.
sync=
"show"
width=
"800px"
>
<div
v-loading=
"loading"
>
<div
v-loading=
"loading"
>
<div>
销售顾问
</div>
<div>
销售顾问
:
{{
dialogObj
.
staff_name
}}
</div>
<el-table
:data=
"list"
>
<el-table
:data=
"list"
>
<el-table-column
prop=
"month_order_rate"
>
<el-table-column
prop=
"month_order_rate"
>
...
@@ -71,10 +71,14 @@
...
@@ -71,10 +71,14 @@
},
},
getClass
()
{
getClass
()
{
let
json
=
{
let
json
=
{
teacher_id
:
this
.
dialogObj
.
teacher_id
,
start_at
:
this
.
dialogObj
.
start_at
,
page
:
this
.
nowPage
,
limit
:
this
.
limit
}
}
getClassOpenedApi
().
then
(
res
=>
{
getClassOpenedApi
(
json
).
then
(
res
=>
{
this
.
loading
=
false
;
console
.
log
(
res
)
})
})
},
},
...
...
src/components/team/index.vue
View file @
21e65c86
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<
/el-tooltip
>
<
/el-tooltip
>
<
/template
>
<
/template
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
el
-
link
@
click
=
"dialogToggle"
>
{{
scope
.
row
.
lately_class_num
}}
<
/el-link
>
<
el
-
link
@
click
=
"dialogToggle
(scope.row, 'class')
"
>
{{
scope
.
row
.
lately_class_num
}}
<
/el-link
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -260,6 +260,7 @@
...
@@ -260,6 +260,7 @@
type
:
type
,
type
:
type
,
teacher_id
:
row
.
teacher_id
,
teacher_id
:
row
.
teacher_id
,
start_at
:
this
.
search
.
start_at
,
start_at
:
this
.
search
.
start_at
,
staff_name
:
row
.
staff_name
}
}
}
,
}
,
getData
()
{
getData
()
{
...
@@ -268,13 +269,17 @@
...
@@ -268,13 +269,17 @@
team
:
this
.
search
.
team
team
:
this
.
search
.
team
}
}
getTeamApi
(
json
).
then
(
res
=>
{
getTeamApi
(
json
).
then
(
res
=>
{
if
(
res
.
team_total
[
1
])
{
if
(
Object
.
keys
(
res
).
length
)
{
res
.
team_total
[
1
].
total
=
true
;
// 方便"合计" 可以这样写,也可以用scope.$index
if
(
res
.
team_total
[
1
])
{
res
.
team_list
.
page_data
.
unshift
(
res
.
team_total
[
1
]);
res
.
team_total
[
1
].
total
=
true
;
// 方便"合计" 可以这样写,也可以用scope.$index
res
.
team_list
.
page_data
.
unshift
(
res
.
team_total
[
1
]);
}
this
.
list
=
res
.
team_list
.
page_data
;
this
.
total
=
res
.
team_list
.
total
;
this
.
loading
=
false
;
}
else
{
this
.
loading
=
false
;
}
}
this
.
list
=
res
.
team_list
.
page_data
;
this
.
total
=
res
.
team_list
.
total
;
this
.
loading
=
false
;
}
)
}
)
}
,
}
,
onPageChange
(
val
)
{
onPageChange
(
val
)
{
...
...
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