From 8f97c106712b213e1120fd7af7550744df14dd9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=97=B6=E4=BD=B3=E8=B1=AA?= <2044682269@qq.com>
Date: Wed, 1 Dec 2021 20:23:22 +0800
Subject: [PATCH] bug
---
src/page/wel.vue | 28 +++++++++----------
src/views/Statistics/ReceptionStatistical.vue | 11 ++++----
src/views/Statistics/TrendAnalysis.vue | 4 +--
src/views/admin/dept/index.vue | 26 ++++++++++-------
4 files changed, 37 insertions(+), 32 deletions(-)
diff --git a/src/page/wel.vue b/src/page/wel.vue
index 9bbd35b..6100552 100644
--- a/src/page/wel.vue
+++ b/src/page/wel.vue
@@ -230,8 +230,8 @@
@@ -502,17 +502,17 @@
有效接待
-
{{sysSec.customerQuantity || 0}}
+
{{sysSec.activeCustomer || 0}}
- 环比:{{sysCompare.customerQuantity || 0}}
+ 环比:{{sysCompare.activeCustomer || 0}}
-
+
- {{orderBy.customerQuantity || 0}}%
+ {{orderBy.activeCustomer || 0}}%
-
+
- {{orderBy.customerQuantity || 0}}%
+ {{orderBy.activeCustomer || 0}}%
@@ -599,17 +599,17 @@
有效接待
-
{{sysSec.customerQuantity || 0}}
+
{{sysSec.activeCustomer || 0}}
- 环比:{{sysCompare.customerQuantity || 0}}
+ 环比:{{sysCompare.activeCustomer || 0}}
-
+
- {{orderBy.customerQuantity || 0}}%
+ {{orderBy.activeCustomer || 0}}%
-
+
- {{orderBy.customerQuantity || 0}}%
+ {{orderBy.activeCustomer || 0}}%
diff --git a/src/views/Statistics/ReceptionStatistical.vue b/src/views/Statistics/ReceptionStatistical.vue
index ef90d53..e57abc8 100644
--- a/src/views/Statistics/ReceptionStatistical.vue
+++ b/src/views/Statistics/ReceptionStatistical.vue
@@ -323,6 +323,8 @@ export default {
this.customtime=[];
this.TimetoAhoose=4;
this.statDateStart= '';
+ this.deptId=''
+ this.accountId=''
this.statDateEnd= '';
this.tabtimetap(4);
this.deptFindList();
@@ -397,7 +399,9 @@ export default {
},
];
this.options.push(...res.data);
+ this.receptionStatisticsAllAccount();
this.accountRank();
+
});
},
deptChange() {
@@ -412,12 +416,7 @@ export default {
})
.then((res) => {
console.log(res);
- this.repList = [
- {
- name: "全部",
- deptId: "",
- },
- ];
+ this.repList = [];
this.repList.push(...res.data);
this.accountRank();
});
diff --git a/src/views/Statistics/TrendAnalysis.vue b/src/views/Statistics/TrendAnalysis.vue
index 94d5f67..5fdf808 100644
--- a/src/views/Statistics/TrendAnalysis.vue
+++ b/src/views/Statistics/TrendAnalysis.vue
@@ -107,14 +107,14 @@
平均接待时长/min
-
{{Math.floor(cardobj.startSumDuration/60)||0}}
+
{{cardobj.startSumDuration||0}}
- 对比:{{Math.floor(cardobj.endSumDuration/60) ||0}}
+ 对比:{{cardobj.endSumDuration ||0}}
{{cardobj.contrastSumDuration ||0}}%
diff --git a/src/views/admin/dept/index.vue b/src/views/admin/dept/index.vue
index fa9825c..d82510d 100644
--- a/src/views/admin/dept/index.vue
+++ b/src/views/admin/dept/index.vue
@@ -216,16 +216,22 @@ export default {
this.deptList=res.data
if(this.deptList.length==0){
// this.$message.warning('没有别的部门啦!')
- this.$api.api.deptDel({
- houseId:this.houseId,
- deptId:row.deptId
- // ...this.deptForm,
- })
- .then(res=>{
- console.log(res);
- this.deptFindByPage();
- this.$message.success('删除成功')
- })
+ if(this.tableData[0].peopleCount>0){
+ this.$message.warning('当前部门下还有用户!')
+ return
+ }else{
+ this.$api.api.deptDel({
+ houseId:this.houseId,
+ deptId:row.deptId
+ // ...this.deptForm,
+ })
+ .then(res=>{
+ console.log(res);
+ this.deptFindByPage();
+ this.$message.success('删除成功')
+ })
+ }
+
}else{
this.deptVisible = true;
}