Commit 21e65c86 authored by 赵茹林's avatar 赵茹林

update

parent 918e4a12
...@@ -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)
}) })
}, },
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment