活跃设备数
@@ -290,12 +373,17 @@ export default {
secondTab: {},
thirdTab: {},
selValue: "1",
- choicValue:localStorage.getItem('orgCode'),
+ choicValue: localStorage.getItem("orgCode"),
houseList: [],
secindex: "1",
dateType: 4,
+ echarValue: "0",
customtime: [],
- cardindex: "1",
+ cardindex: "6",
+ // houseTypes:'0,1',
+ dateType1: 1,
+ customtime1: [],
+ houseTypes:'0,1',
options: [
{
label: "代理商",
@@ -306,28 +394,53 @@ export default {
value: "1",
},
],
+ options1: [
+ {
+ label: "趋势图",
+ value: "0",
+ },
+ {
+ label: "表格",
+ value: "1",
+ },
+ ],
+ options2: [
+ {
+ label: "正式数据",
+ value: "0,1",
+ },
+ {
+ label: "测试数据",
+ value: "2,3",
+ },
+ ],
};
},
mounted() {
this.getList();
- this.tabtimetap(4);
+ // this.tabtimetap(4);
},
methods: {
valuechange() {
this.dateType = 4;
- this.cardindex=1
- this.secindex=1
+ this.cardindex = 1;
+ this.secindex = 1;
// console.log(this.choicValue);
this.dataOverViewWithSystem();
this.dataOverviewWithSystemWithDay();
this.dataOverviewWithSystemWithLook();
},
+ sysChange(){
+ this.dataOverViewWithSystem();
+ this.dataOverviewWithSystemWithDay();
+ this.dataOverviewWithSystemWithLook();
+ },
// 当选择的代理商或者楼盘切换时
selChange() {
this.choicValue = "";
this.dateType = 4;
- this.cardindex=1
- this.secindex=1
+ this.cardindex = 1;
+ this.secindex = 1;
this.getList();
},
// 获取下拉框数据
@@ -361,8 +474,13 @@ export default {
dataOverviewWithSystemWithDay() {
this.$api.api
.dataOverviewWithSystemWithDay({
- agentId: this.selValue == 0 ? this.choicValue : null,
- orgCode: this.selValue == 1 ? this.choicValue : null,
+ orgCode: localStorage.getItem('orgCode'),
+ orgType: localStorage.getItem("orgType"),
+ // orgType: localStorage.getItem("orgType"),
+ startDate: this.dateType1 ? "" : this.customtime1[0],
+ endDate: this.dateType1 ? "" : this.customtime1[1],
+ dateType: this.dateType1,
+ houseTypes:this.houseTypes,
})
.then((res) => {
console.log(res);
@@ -381,27 +499,28 @@ export default {
startDate: this.dateType ? "" : this.customtime[0],
endDate: this.dateType ? "" : this.customtime[1],
dateType: this.dateType,
- agentId: this.selValue == 0 ? this.choicValue : null,
- orgCode: this.selValue == 1 ? this.choicValue : null,
+ // agentId: this.selValue == 0 ? this.choicValue : null,
+ orgCode: localStorage.getItem('orgCode'),
orgType: localStorage.getItem("orgType"),
+ houseTypes:this.houseTypes,
})
.then((res) => {
console.log(res);
this.thirdTab = res.data;
- this.getChars2(1);
+ this.getChars2(this.cardindex);
});
},
// echars生成
getChars1(idx) {
console.log(idx);
- let Strname = ["昨日", "今日"];
+ let Strname = ["时段一", "时段二"];
let timeDate = [];
// 判断是第几个然后对数据进行渲染
// 先处理时间
let arr1 = [];
let arr2 = [];
// console.log(timeDate);
- if (idx == 1 ) {
+ if (idx == 1) {
// 接待量
this.secondTab.yesterdayReceptionList.map((item) => {
timeDate.push(item.time.substring(11, 16));
@@ -425,10 +544,10 @@ export default {
// 活跃设备
this.secondTab.todayActiveEquipmentList.map((item) => {
timeDate.push(item.time.substring(11, 16));
- arr2.push(item.data);
+ arr1.push(item.data);
});
this.secondTab.yesterdayActiveEquipmentList.map((item) => {
- arr1.push(item.data);
+ arr2.push(item.data);
});
}
let arr = [
@@ -504,7 +623,7 @@ export default {
data: arr1,
type: "line",
smooth: true,
- }
+ },
];
this.SwitchCARDS(arr, "echar2", timeDate, Strname);
},
@@ -512,8 +631,11 @@ export default {
dataOverViewWithSystem() {
this.$api.api
.dataOverViewWithSystem({
- agentId: this.selValue == 0 ? this.choicValue : null,
- orgCode: this.selValue == 1 ? this.choicValue : null,
+ // agentId: this.selValue == 0 ? this.choicValue : null,
+ // orgCode: this.selValue == 1 ? this.choicValue : null,
+ orgCode: localStorage.getItem('orgCode'),
+ orgType: localStorage.getItem("orgType"),
+ houseTypes:this.houseTypes,
})
.then((res) => {
// console.log(res);
@@ -530,15 +652,24 @@ export default {
},
confirmtime(e) {
this.dateType = null;
+ this.cardindex=6
this.dataOverviewWithSystemWithLook();
},
tabtimetap(i) {
this.dateType = i;
- this.selectTime = "";
- this.selectTime1 = "";
- this.customtime=[]
+ this.customtime = [];
+ this.cardindex=6
this.dataOverviewWithSystemWithLook();
},
+ confirmtime1(e) {
+ this.dateType1 = null;
+ this.dataOverviewWithSystemWithDay();
+ },
+ tabtimetap1(i) {
+ this.dateType1 = i;
+ this.customtime1 = [];
+ this.dataOverviewWithSystemWithDay();
+ },
//卡片下折线图
SwitchCARDS(arr, str, timeDate, Strname) {
// console.log(arr,str,timeDate,Strname);
@@ -547,29 +678,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",
},
diff --git a/src/views/Statistics/dataScreeSys.vue b/src/views/Statistics/dataScreeSys.vue
index f4eae37..4ee0f31 100644
--- a/src/views/Statistics/dataScreeSys.vue
+++ b/src/views/Statistics/dataScreeSys.vue
@@ -3,6 +3,20 @@
+
+
+
+
-
+
-
+
服务期内楼盘总数
{{ firstTab.houseQofEnough || 0 }}
+
+
试用楼盘数
+
{{ firstTab.houseQuantityOfTryOut || 0 }}
+
过期楼盘数
{{ firstTab.houseQofUnenough || 0 }}
@@ -148,17 +166,17 @@
-
今日实时状况
+
时段统计
-
+
近7天
-
+
近15天
-
@@ -176,11 +194,24 @@
>
+
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看详情
+
+
+
+
@@ -250,22 +315,23 @@
-
-
-
+
+
+
-
+
+
+
+ 销售设备数
+
+
+ {{ thirdTab.buyEquipQuantity || 0 }}
+
+
-
+
+
+
+
+
+
+
+
+ {{ row.buyHouseQuantity || 0 }}
+
+
+
+
+ {{ row.activeUserQuantity }}
+
+
+
+
+ {{ row.newJoinUserQuantity || 0 }}
+
+
+
+
+ {{ row.receptionQuantity || 0 }}
+
+
+
+
+ {{ row.avgReceptionTime || 0 }}
+
+
+
+
+ {{ row.activeEquipmentQuantity || 0 }}
+
+
+
+
+ {{ row.buyEquipQuantity || 0 }}
+
+
+
+
+
+
+
+
+
+
+
{{ timeStr }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+