Commit 6d514371 by xinla

流失提醒改为新接口

1 parent 418ca54c
...@@ -232,27 +232,29 @@ export default { ...@@ -232,27 +232,29 @@ export default {
<el-table-column type="selection" align="center" width="55"></el-table-column> <el-table-column type="selection" align="center" width="55"></el-table-column>
<el-table-column label="客户" prop="name" align="center"> <el-table-column label="客户" prop="name" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.name }} {{ scope.row.customerName }}
<span :style="{ color: scope.row.type === 1 ? '#4bde03' : '#f9a90b' }">{{ <!-- <span :style="{ color: scope.row.type === 1 ? '#4bde03' : '#f9a90b' }">{{
{ 1: '@微信', 2: '@企业微信' }[scope.row.type] { 1: '@微信', 2: '@企业微信' }[scope.row.type]
}}</span> }}</span>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[scope.row.gender]]"></i> <i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[scope.row.gender]]"></i> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="corpName" label="公司名称" align="center"></el-table-column> <!-- <el-table-column prop="corpName" label="公司名称" align="center"></el-table-column> -->
<el-table-column prop="userName" label="添加人(首位)" align="center"> <el-table-column prop="userName" label="添加人(首位)" align="center">
<template slot-scope="scope">{{ scope.row.weFlowerCustomerRels[0].userName }}</template> <!-- <template slot-scope="scope">{{ scope.row.weFlowerCustomerRels[0].userName }}</template> -->
</el-table-column> </el-table-column>
<el-table-column prop="createTime" label="添加时间" align="center"> <el-table-column prop="firstAddTime" label="添加时间" align="center">
<template slot-scope="scope">{{ scope.row.weFlowerCustomerRels[0].createTime }}</template> <!-- <template slot-scope="scope">{{ scope.row.weFlowerCustomerRels[0].createTime }}</template> -->
</el-table-column> </el-table-column>
<el-table-column prop="address" label="标签" align="center"> <el-table-column prop="address" label="标签" align="center">
<template slot-scope="scope"> <template slot-scope="{ row }" v-if="row.tagNames">
<div v-for="(item, index) in scope.row.weFlowerCustomerRels" :key="index"> <el-tag type="info" v-for="(unit, unique) in row.tagNames.split(',')" :key="unique">{{ unit }}</el-tag>
<!-- <div v-for="(item, index) in row.weFlowerCustomerRels" :key="index">
<el-tag type="info" v-for="(unit, unique) in item.weFlowerCustomerTagRels" :key="unique">{{ <el-tag type="info" v-for="(unit, unique) in item.weFlowerCustomerTagRels" :key="unique">{{
unit.tagName unit.tagName
}}</el-tag> }}</el-tag>
</div> </div> -->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
}, },
list: [], // 列表 list: [], // 列表
total: 0, // 总条数 total: 0, // 总条数
treeData: [], // 树 treeData: [{}], // 树
// 树props // 树props
treeProps: { treeProps: {
children: 'children', children: 'children',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!