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

update

parent 553f4966
......@@ -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: [
......
......@@ -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 => {
})
},
......
......@@ -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() {
......
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