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

update

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