@@ -319,6 +319,7 @@ | |||
{{ row.clientStageName || "--" }} | |||
</template> | |||
</el-table-column> | |||
<el-table-column prop="pickCount" label="客户标签命中数" width="150" align="center"></el-table-column> | |||
<el-table-column prop="visitRecord" label="到访次数" align="center"> | |||
<template slot-scope="{ row }"> | |||
{{ row.visitRecord || "0" }} | |||
@@ -398,10 +399,14 @@ | |||
</el-select> | |||
</div> | |||
<span slot="footer" class="dialog-footer"> | |||
<el-button @click="dialogVisible = false;agentId = '';">取 消</el-button> | |||
<el-button type="primary" @click="confirmTransfer" | |||
>确 定</el-button | |||
<el-button | |||
@click=" | |||
dialogVisible = false; | |||
agentId = ''; | |||
" | |||
>取 消</el-button | |||
> | |||
<el-button type="primary" @click="confirmTransfer">确 定</el-button> | |||
</span> | |||
</el-dialog> | |||
</div> | |||
@@ -567,7 +572,7 @@ export default { | |||
transItem: null, // 转移客户保存的数据 | |||
isBand: true, // 批量转交按钮状态 | |||
selectMoreIds: "", // 多选客户id | |||
agentId: '', // 移交员工的id | |||
agentId: "", // 移交员工的id | |||
}; | |||
}, | |||
computed: { | |||
@@ -593,10 +598,10 @@ export default { | |||
// 确认提交转移 | |||
confirmTransfer() { | |||
if (!this.agentId) { | |||
this.$message.error('请选择转交员工') | |||
return | |||
this.$message.error("请选择转交员工"); | |||
return; | |||
} | |||
this.theCirculation({ ids: this.selectMoreIds, agentId: this.agentId }) | |||
this.theCirculation({ ids: this.selectMoreIds, agentId: this.agentId }); | |||
}, | |||
// 单个转交 | |||
@@ -609,10 +614,21 @@ export default { | |||
// 转移客户至其他顾问 | |||
theCirculation(query) { | |||
this.$api.http.theCirculation(query).then((res) => { | |||
this.$message({ | |||
message: res.message, | |||
type: "warning", | |||
}); | |||
if (res.code == 0) { | |||
this.$message({ | |||
message: res.msg, | |||
type: "success", | |||
}); | |||
// 获取楼盘列表 | |||
this.findbypage(); | |||
} else { | |||
this.$message({ | |||
message: res.msg, | |||
type: "error", | |||
}); | |||
} | |||
this.dialogVisible = false; | |||
}); | |||
}, | |||
@@ -620,13 +636,13 @@ export default { | |||
handleSelectionChange(val) { | |||
if (val.length > 0) { | |||
this.isBand = false; | |||
let arr = val.map(item => { | |||
return item.id | |||
}) | |||
this.selectMoreIds = arr.join(',') | |||
let arr = val.map((item) => { | |||
return item.id; | |||
}); | |||
this.selectMoreIds = arr.join(","); | |||
} else { | |||
this.isBand = true; | |||
this.selectMoreIds = ''; | |||
this.selectMoreIds = ""; | |||
} | |||
console.log(val); | |||
}, | |||
@@ -705,7 +721,7 @@ export default { | |||
this.findUserListByHouseId(); | |||
this.getclientStage(); | |||
// 获取违禁词 | |||
// this.sensitivewordsList() | |||
this.sensitivewordsList(); | |||
}, | |||
// 违禁词 | |||
sensitivewordsList() { | |||
@@ -192,7 +192,7 @@ | |||
:style="'width:' + item.zxl1 + '%;'" | |||
></div> | |||
</div> | |||
<div class="jinboxbott">{{ item.zxl }}</div> | |||
<div class="jinboxbott">{{ item.zxl }}次</div> | |||
</div> | |||
</div> | |||
<div | |||
@@ -234,10 +234,10 @@ | |||
<div class="jinbox-box"> | |||
<div | |||
class="boxbaifenbi" | |||
:style="'width:' + item.zxl1 + '%;'" | |||
:style="'width:' + item.percentage + '%;'" | |||
></div> | |||
</div> | |||
<div class="jinboxbott">{{ item.zxl }}</div> | |||
<div class="jinboxbott">{{ item.zxl }}分钟</div> | |||
</div> | |||
</div> | |||
<div | |||
@@ -588,6 +588,7 @@ export default { | |||
this["num" + type] = res.data.num || 0; | |||
this["avg" + type] = res.data.avg || 0; | |||
let arr = []; | |||
let max = 0 | |||
let newarr = res.data.list || []; | |||
if (newarr.length != 0) { | |||
res.data.list.map((item) => { | |||
@@ -599,6 +600,9 @@ export default { | |||
} else if (type == 2) { | |||
obj.name = item.accountName; | |||
obj.zxl = Math.floor(item.sumDuration / 60); | |||
if (max < obj.zxl) { | |||
max = obj.zxl | |||
} | |||
arr.push(obj); | |||
} else if (type == 3) { | |||
obj.name = item.accountName; | |||
@@ -611,11 +615,19 @@ export default { | |||
} | |||
}); | |||
} | |||
if(type == 2) { | |||
arr.forEach((item) => { | |||
item.percentage = (item.zxl/max)*100 | |||
}) | |||
} | |||
if (type == 3) { | |||
arr = arr; | |||
} | |||
if (type == 4) { | |||
console.log(arr, 'arr4,ajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjakslajdklsajkldjaskldjaksl') | |||
arr = this.dealData(arr); | |||
console.log(type); | |||
} | |||
@@ -972,6 +984,7 @@ export default { | |||
overflow: hidden; | |||
} | |||
.jinbox-box { | |||
position: relative; | |||
width: 75%; | |||
height: 100%; | |||
border-radius: 8px; | |||
@@ -988,7 +1001,8 @@ export default { | |||
} | |||
.jinboxbott { | |||
width: 16%; | |||
text-indent: 50px; | |||
display: flex; | |||
justify-content: flex-end; | |||
} | |||
} | |||
.div-lab { | |||
@@ -3,11 +3,11 @@ | |||
* https://cli.vuejs.org/zh/config/ | |||
*/ | |||
// const url = 'http://pigx-gateway' | |||
// const url = 'http://39.97.167.65:9999' //测试 | |||
const url = 'http://39.97.167.65:9999' //测试 | |||
// const url = 'http://192.168.31.167:9999' //长龙 | |||
// const url = 'http://192.168.31.134:9999' //嘉豪 | |||
// const url = 'http://192.168.31.100:9999' //王笑 | |||
const url = 'http://62.234.122.43:9999' //正式 | |||
// const url = 'http://62.234.122.43:9999' //正式 | |||
const CompressionWebpackPlugin = require('compression-webpack-plugin') | |||
const productionGzipExtensions = ['js', 'css'] | |||