{{ row.visitRecord || "0" }}
@@ -398,10 +399,14 @@
@@ -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() {
diff --git a/src/views/Statistics/ConsultantBrand.vue b/src/views/Statistics/ConsultantBrand.vue
index ea5e8df..12979aa 100644
--- a/src/views/Statistics/ConsultantBrand.vue
+++ b/src/views/Statistics/ConsultantBrand.vue
@@ -192,7 +192,7 @@
:style="'width:' + item.zxl1 + '%;'"
>
- {{ item.zxl }}
+ {{ item.zxl }}次
- {{ item.zxl }}
+ {{ item.zxl }}分钟
{
@@ -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 {
diff --git a/vue.config.js b/vue.config.js
index 0646ad8..ae7c759 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -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']