-
+
+
购买服务楼盘数
-
+
{{ thirdTab.houseQuantity || 0 }}
@@ -235,7 +298,11 @@
{{ thirdTab.avgDuration || 0 }}
-->
-
+
活跃用户数
@@ -243,7 +310,11 @@
{{ thirdTab.activeUserQuantity || 0 }}
-
+
新增用户数
@@ -251,13 +322,21 @@
{{ thirdTab.userCountWithNewJoin || 0 }}
-
+
接待量
{{ thirdTab.receptionQuantity || 0 }}
-
+
平均接待时长
@@ -265,7 +344,11 @@
{{ thirdTab.receptionTimeWithAvg || 0 }}
-
+
活跃设备数
@@ -275,7 +358,7 @@
-
+
@@ -295,7 +378,8 @@ export default {
secondTab: {},
thirdTab: {},
selValue: "0",
- choicValue: "",
+ echarValue:'0',
+ choicValue:"",
houseList: [],
secindex: "1",
dateType: 4,
@@ -311,29 +395,40 @@ export default {
value: "1",
},
],
- agentissow:true
+ options1: [
+ {
+ label: "趋势图",
+ value: "0",
+ },
+ {
+ label: "表格",
+ value: "1",
+ },
+ ],
+ agentissow: true,
+ dateType1: 4,
+ customtime1: [],
};
},
mounted() {
this.getList();
- this.tabtimetap(4);
+ // this.tabtimetap(4);
},
methods: {
valuechange() {
this.dateType = 4;
- this.cardindex=1;
- this.secindex=1;
- if(this.choicValue==''){
-
- }
- if(this.selValue==1){
- this.agentissow=false;
- }else{
- if(this.choicValue==''){
- this.agentissow=true;
- }else{
- this.agentissow=false;
- }
+ this.cardindex = 1;
+ this.secindex = 1;
+ if (this.choicValue == "") {
+ }
+ if (this.selValue == 1) {
+ this.agentissow = false;
+ } else {
+ if (this.choicValue == "") {
+ this.agentissow = true;
+ } else {
+ this.agentissow = false;
+ }
}
this.dataOverViewWithSystem();
this.dataOverviewWithSystemWithDay();
@@ -343,17 +438,17 @@ export default {
selChange() {
this.choicValue = "";
this.dateType = 4;
- this.cardindex=1
- this.secindex=1
+ this.cardindex = 1;
+ this.secindex = 1;
this.getList();
- if(this.selValue==1){
- this.agentissow=false;
- }else{
- if(this.choicValue==''){
- this.agentissow=true;
- }else{
- this.agentissow=false;
- }
+ if (this.selValue == 1) {
+ this.agentissow = false;
+ } else {
+ if (this.choicValue == "") {
+ this.agentissow = true;
+ } else {
+ this.agentissow = false;
+ }
}
},
// 获取下拉框数据
@@ -390,6 +485,9 @@ export default {
agentId: this.selValue == 0 ? this.choicValue : null,
orgCode: this.selValue == 1 ? this.choicValue : null,
orgType: localStorage.getItem("orgType"),
+ startDate: this.dateType1 ? "" : this.customtime1[0],
+ endDate: this.dateType1 ? "" : this.customtime1[1],
+ dateType: this.dateType1,
})
.then((res) => {
this.secondTab = res.data;
@@ -424,7 +522,7 @@ export default {
let arr1 = [];
let arr2 = [];
// console.log(timeDate);
- if (idx == 1 ) {
+ if (idx == 1) {
// 接待量
this.secondTab.todayReceptionList.map((item) => {
timeDate.push(item.time.substring(11, 16));
@@ -527,7 +625,7 @@ export default {
data: arr1,
type: "line",
smooth: true,
- }
+ },
];
this.SwitchCARDS(arr, "echar2", timeDate, Strname);
},
@@ -551,17 +649,23 @@ export default {
this.secindex = i;
this.getChars1(i);
},
+ confirmtime1(e) {
+ this.dateType1 = null;
+ this.dataOverviewWithSystemWithDay();
+ },
+ tabtimetap1(i) {
+ this.dateType1 = i;
+ this.customtime1 = [];
+ this.dataOverviewWithSystemWithDay();
+ },
confirmtime(e) {
this.dateType = null;
this.dataOverviewWithSystemWithLook();
},
tabtimetap(i) {
this.dateType = i;
- this.selectTime = "";
- this.selectTime1 = "";
- this.customtime=[]
+ this.customtime = [];
this.dataOverviewWithSystemWithLook();
-
},
//卡片下折线图
SwitchCARDS(arr, str, timeDate, Strname) {
@@ -570,29 +674,29 @@ export default {
var option;
option = {
- color: [
- "#6F8EDC",
- "#EE6666",
- "#F98120",
- "#1CC99E",
- "#9474FB",
- "#66AFF5",
- "#FABD2B",
- "#FFCF8F",
- "#657292",
- "#7A6A99",
- "#BF5D52",
- "#77B7E4",
- "#E6A065",
- "#9D5139",
- "#C1AA88",
- "#F87F7A",
- "#F6CF74",
- "#7F5506",
- "#88BB9B",
- "#6E99AA",
- "#5789D0",
- ],
+ color: [
+ "#6F8EDC",
+ "#EE6666",
+ "#F98120",
+ "#1CC99E",
+ "#9474FB",
+ "#66AFF5",
+ "#FABD2B",
+ "#FFCF8F",
+ "#657292",
+ "#7A6A99",
+ "#BF5D52",
+ "#77B7E4",
+ "#E6A065",
+ "#9D5139",
+ "#C1AA88",
+ "#F87F7A",
+ "#F6CF74",
+ "#7F5506",
+ "#88BB9B",
+ "#6E99AA",
+ "#5789D0",
+ ],
tooltip: {
trigger: "axis",
},
@@ -891,5 +995,4 @@ export default {
display: flex;
justify-content: space-between;
}
-
diff --git a/src/views/building/index.vue b/src/views/building/index.vue
index dec08cc..b6610a6 100644
--- a/src/views/building/index.vue
+++ b/src/views/building/index.vue
@@ -139,16 +139,31 @@
clearable
>