Commit 918e4a12 authored by 赵茹林's avatar 赵茹林

update

parent 553f4966
...@@ -22,6 +22,7 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -22,6 +22,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
// these devServer options should be customized in /config/index.js // these devServer options should be customized in /config/index.js
devServer: { devServer: {
disableHostCheck: true,
clientLogLevel: 'warning', clientLogLevel: 'warning',
historyApiFallback: { historyApiFallback: {
rewrites: [ rewrites: [
......
...@@ -2,8 +2,12 @@ ...@@ -2,8 +2,12 @@
<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>
<el-table :data="list"> <el-table :data="list">
<el-table-column prop="month_order_rate">
</el-table-column>
</el-table> </el-table>
<page :total="total" :limit="limit" @pageChange="onPageChange" @sizeChange="onSizeChange"/> <page :total="total" :limit="limit" @pageChange="onPageChange" @sizeChange="onSizeChange"/>
...@@ -19,6 +23,7 @@ ...@@ -19,6 +23,7 @@
export default { export default {
name: "TeamDialog", name: "TeamDialog",
components: {page},
props: { props: {
dialogObj: { dialogObj: {
type: Object, type: Object,
...@@ -46,15 +51,29 @@ ...@@ -46,15 +51,29 @@
if (this.dialogObj) { if (this.dialogObj) {
this.show = this.dialogObj.show; this.show = this.dialogObj.show;
if (this.dialogObj.type == 'callback') { if (this.dialogObj.type == 'callback') {
this.getVisited();
} else if (this.dialogObj.type == 'class') { } else if (this.dialogObj.type == 'class') {
this.getClass();
} }
} }
}, },
getVisited() { 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 => {
}) })
}, },
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column prop="chat_contact_count"> <el-table-column prop="chat_contact_count">
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column prop="valid_phone_counts"> <el-table-column prop="valid_phone_counts">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column prop="phone_total_time"> <el-table-column prop="phone_total_time">
...@@ -205,8 +205,8 @@ ...@@ -205,8 +205,8 @@
loading: true, loading: true,
search: { search: {
team: '1', team: '1',
// start_at: getNowFormatDate() start_at: getNowFormatDate()
start_at: new Date( ) // start_at: new Date()
}, },
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
...@@ -253,10 +253,13 @@ ...@@ -253,10 +253,13 @@
} }
return ''; return '';
}, },
dialogToggle(type) { dialogToggle(row, type) {
console.log('row', row);
this.dialogObj = { this.dialogObj = {
show: true, show: true,
type: type type: type,
teacher_id: row.teacher_id,
start_at: this.search.start_at,
} }
}, },
getData() { getData() {
......
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