Commit ce78bdba authored by 赵茹林's avatar 赵茹林

update

parent c0596a85
This diff is collapsed.
...@@ -17,11 +17,17 @@ ...@@ -17,11 +17,17 @@
<el-table-column label="组别" width="50px"> <el-table-column label="组别" width="50px">
<template slot-scope="scope">{{(String(scope.row.squad).indexOf(',') > -1 && scope.row.total) ? '合计' : `T${scope.row.squad}`}}</template> <template slot-scope="scope">{{(String(scope.row.squad).indexOf(',') > -1 && scope.row.total) ? '合计' : `T${scope.row.squad}`}}</template>
</el-table-column> </el-table-column>
<el-table-column label="销售顾问">
<!--<el-table-column label="销售顾问">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-html="transStaff(scope.row)"></span> <span v-html="transStaff(scope.row)"></span>
</template> </template>
</el-table-column>-->
<el-table-column v-if="this.search.team != '1,2,3,4,5,6,7,8,9,10'" label="销售顾问">
<template slot-scope="scope">{{scope.row.total ? '-' : scope.row.staff_name}}</template>
</el-table-column> </el-table-column>
<el-table-column prop="reach_class_num"> <el-table-column prop="reach_class_num">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['reach_class_num']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['reach_class_num']" placement="top">
...@@ -31,6 +37,7 @@ ...@@ -31,6 +37,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="reach_course_num"> <el-table-column prop="reach_course_num">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['reach_course_num']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['reach_course_num']" placement="top">
...@@ -40,6 +47,7 @@ ...@@ -40,6 +47,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="wait_add_friend"> <el-table-column prop="wait_add_friend">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['wait_add_friend']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['wait_add_friend']" placement="top">
...@@ -49,6 +57,7 @@ ...@@ -49,6 +57,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="wait_visit_num"> <el-table-column prop="wait_visit_num">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['wait_visit_num']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['wait_visit_num']" placement="top">
...@@ -58,6 +67,7 @@ ...@@ -58,6 +67,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="over_visit_num"> <el-table-column prop="over_visit_num">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['over_visit_num']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['over_visit_num']" placement="top">
...@@ -70,6 +80,7 @@ ...@@ -70,6 +80,7 @@
<el-link @click="dialogToggle(scope.row, '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">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['chat_contact_count']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['chat_contact_count']" placement="top">
...@@ -79,6 +90,7 @@ ...@@ -79,6 +90,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="valid_chat_contact_count"> <el-table-column prop="valid_chat_contact_count">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['valid_chat_contact_count']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['valid_chat_contact_count']" placement="top">
...@@ -91,6 +103,7 @@ ...@@ -91,6 +103,7 @@
<el-link @click="dialogToggle(scope.row, 'validchat')">{{scope.row.valid_chat_contact_count}}</el-link> <el-link @click="dialogToggle(scope.row, 'validchat')">{{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">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<el-tooltip effect="dark" :content="TIP_TEAM['valid_phone_counts']" placement="top"> <el-tooltip effect="dark" :content="TIP_TEAM['valid_phone_counts']" placement="top">
...@@ -103,6 +116,7 @@ ...@@ -103,6 +116,7 @@
<el-link @click="dialogToggle(scope.row, 'phonerecord')">{{scope.row.valid_phone_counts}}</el-link> <el-link @click="dialogToggle(scope.row, 'phonerecord')">{{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">
<template slot="header" slot-scope="scope"> <template slot="header" slot-scope="scope">
<!--TODO--> <!--TODO-->
...@@ -136,7 +150,7 @@ ...@@ -136,7 +150,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="dialogToggle">{{scope.row.month_order_num}}</el-link> <el-link @click="dialogToggle(scope.row, 'achievement')">{{scope.row.month_order_num}}</el-link>
</template> </template>
</el-table-column> </el-table-column>
...@@ -149,7 +163,7 @@ ...@@ -149,7 +163,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="dialogToggle"> <el-link @click="dialogToggle(scope.row, 'achievement')">
{{transRate(scope.row.month_trans_order_num, scope.row.month_trans_user_num)}} {{transRate(scope.row.month_trans_order_num, scope.row.month_trans_user_num)}}
</el-link> </el-link>
</template> </template>
...@@ -164,7 +178,7 @@ ...@@ -164,7 +178,7 @@
</el-tooltip> </el-tooltip>
</template> </template>
<template slot-scope="scope"> <template slot-scope="scope">
<el-link @click="dialogToggle">{{scope.row.order_money_count}}</el-link> <el-link @click="dialogToggle(scope.row, 'achievement')">{{scope.row.order_money_count}}</el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -271,15 +285,18 @@ ...@@ -271,15 +285,18 @@
} }
return ''; return '';
}, },
dialogToggle(row, type) { dialogToggle(row, type) {
console.log('row', row);
this.dialogObj = { this.dialogObj = {
team: this.search.team, alias: row.alias, // 老师微信号
squad: (String(row.squad).indexOf(',') > -1 && row.total) ? '' : `${row.squad}`,
show: true, show: true,
total: row.total,
type: type, type: type,
user_id: row.user_id,
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 staff_name: row.staff_name.indexOf(',')>-1 ? row.staff_name.split(',').join(',') : row.staff_name
} }
}, },
getData() { getData() {
......
...@@ -32,8 +32,7 @@ axios.interceptors.request.use( ...@@ -32,8 +32,7 @@ axios.interceptors.request.use(
config.params = config.params || {}; config.params = config.params || {};
let json = JSON.parse(JSON.stringify(config.params)); let json = JSON.parse(JSON.stringify(config.params));
// console.log(json) // console.log(json)
for(let k in json) for(let k in json) {
{
// let reg = /^[0-9]+$/u; // let reg = /^[0-9]+$/u;
// if(reg.test(json[k])){ // if(reg.test(json[k])){
// console.log(json[k]) // console.log(json[k])
......
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