|
|
@ -287,6 +287,7 @@ export default {
|
|
|
|
handleClick(tab, event) {
|
|
|
|
handleClick(tab, event) {
|
|
|
|
console.log(tab, event);
|
|
|
|
console.log(tab, event);
|
|
|
|
if (tab.name == 1) {
|
|
|
|
if (tab.name == 1) {
|
|
|
|
|
|
|
|
|
|
|
|
this.selectChannel = 1;
|
|
|
|
this.selectChannel = 1;
|
|
|
|
this.getDataBaseTime(this.areaData.id, this.selectChannel);
|
|
|
|
this.getDataBaseTime(this.areaData.id, this.selectChannel);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -304,10 +305,18 @@ export default {
|
|
|
|
getChannelSelect() {
|
|
|
|
getChannelSelect() {
|
|
|
|
getChannelListJoggle({ termid: this.areaData.id })
|
|
|
|
getChannelListJoggle({ termid: this.areaData.id })
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
console.log("wwww",Number(localStorage.getItem("channelId")))
|
|
|
|
this.channelList = res.data.list;
|
|
|
|
this.channelList = res.data.list;
|
|
|
|
this.timeChannelList = res.data.list;
|
|
|
|
this.timeChannelList = res.data.list;
|
|
|
|
this.timeChannel = this.channelList[0].channelid;
|
|
|
|
if(Number(localStorage.getItem("channelId"))==1||Number(localStorage.getItem("channelId"))==-1){
|
|
|
|
|
|
|
|
this.timeChannel = this.channelList[0].channelid;
|
|
|
|
this.selectChannel = this.channelList[0].channelid;
|
|
|
|
this.selectChannel = this.channelList[0].channelid;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.timeChannel = Number(localStorage.getItem("channelId"));
|
|
|
|
|
|
|
|
this.selectChannel = Number(localStorage.getItem("channelId"))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// this.timeChannel = this.channelList[0].channelid;
|
|
|
|
|
|
|
|
// this.selectChannel = this.channelList[0].channelid;
|
|
|
|
console.log(this.channelList);
|
|
|
|
console.log(this.channelList);
|
|
|
|
this.changeChannel();
|
|
|
|
this.changeChannel();
|
|
|
|
})
|
|
|
|
})
|
|
|
|