Browse Source

删除未使用的istygshowfn

lite
453530270@qq.com 3 years ago
parent
commit
57e09efeae
  1. 128
      src/views/ty/index.vue

128
src/views/ty/index.vue

@ -255,28 +255,6 @@ export default {
},
methods: {
istygShowfn() {
if (this.istygShow === false) {
this.istygShow = true
} else {
this.istygShow = false
}
},
istygShowfn2() {
if (this.istygShow2 === false) {
this.istygShow2 = true
} else {
this.istygShow2 = false
}
},
istygShowfn3() {
if (this.istygShow3 === false) {
this.istygShow3 = true
} else {
this.istygShow3 = false
}
},
ty_bar1() {
let that = this;
@ -1042,10 +1020,10 @@ export default {
}
// 使
setTimeout(()=>{
// setTimeout(()=>{
// var myChart = echarts.init(Element);
option && myChart.setOption(option);
}, 200)
// }, 200)
},
//
@ -1086,108 +1064,6 @@ export default {
})
},
// 24
getData24h(){
let that = this;
homeApi.getID().then(res=>{
// console.log(res, '=====');
let idArr = "";
res.data.data.map(item=>{
if(item.type==1){
idArr += "|"+item.groupId;
}
})
homeApi.getAllfFlow({groupsId:idArr}).then(res=>{
// console.log(res, '=====');
that.data24h = res.data.data.dvalue;
that.data24hX = res.data.data.dkeys;
});
});
},
//
gethomeBarData(){
let that = this;
homeApi.getID().then(res=>{
// console.log(res, '=====');
let idArr = "";
res.data.data.map(item=>{
if(item.type==1){
idArr += "|"+item.groupId;
}
})
that.groupsData = [];
homeApi.homeBarData({groupsId:idArr}).then(res=>{
console.log(res, '=====');
res.data.data.groupsData.forEach(item=>{
that.groupsData.push(item);
});
// console.log(that.groupsData, 'that.groupsData')
that.cgn_1 = that.groupsData[0].noRepeatInNum;
that.cgp_1 = that.groupsData[0].proportion;
that.cgn_2 = that.groupsData[1].noRepeatInNum;
that.cgp_2 = that.groupsData[1].proportion;
that.cgn_3 = that.groupsData[2]?that.groupsData[2].noRepeatInNum:'';
that.cgp_3 = that.groupsData[2]?that.groupsData[2].proportion:'';
});
});
},
// 线
getGcgNumDatas(){
let that = this;
homeApi.getID().then(res=>{
// console.log(res, '=====');
let idArr = "";
res.data.data.map(item=>{
if(item.type==1){
idArr += "|"+item.groupId;
}
})
homeApi.allGcgNumDatas({groupsId:idArr}).then(res=>{
// console.log(res, '=====');
const tmpdata = res.data.data;
tmpdata.forEach((item) => {
that.rsqsDataName.push(item.groupName);
that.rsqsDatas.push(item.list)
})
that.rsqsXData = res.data.data[0].list.dkeys;
that.rsqsDatas.forEach((item) => {
let rsqsData = []
Object.getOwnPropertyNames(item).forEach((value) => {
if(value=='dkeys'){
}
if(value=='dvalue'){
// console.log(item, value, '-----')
// rsqsData.push(item[value])
rsqsData = item[value];
}
});
that.rsqsDataAll.push(rsqsData)
})
});
});
},
//
addNumber(start, end, id) {
var o = document.getElementById(id);
var i = start;
var Interval;
if (i < end) {
Interval = setInterval(function () {
i += 4000; //
if (i > end) {
clearInterval(Interval); // setIntervaltimew3c
o.innerHTML = end.toLocaleString(); //
i = 0;
} else {
o.innerHTML = i.toLocaleString();
}
}, 10); //
}
},
},

Loading…
Cancel
Save