20230418
This commit is contained in:
parent
1d859d0d6d
commit
a02227c4e9
|
@ -111,6 +111,7 @@ import {getData} from './api/index.js'
|
||||||
this.fun();
|
this.fun();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
window.goPage = this.goPage()
|
||||||
this.menuChange(0,this.menuBtn[0].name)
|
this.menuChange(0,this.menuBtn[0].name)
|
||||||
let week = new Date(this.$moment().format("YYYY-MM-DD")).getDay()
|
let week = new Date(this.$moment().format("YYYY-MM-DD")).getDay()
|
||||||
this.week = this.weekList[week]
|
this.week = this.weekList[week]
|
||||||
|
@ -132,7 +133,7 @@ import {getData} from './api/index.js'
|
||||||
methods:{
|
methods:{
|
||||||
//菜单选中
|
//菜单选中
|
||||||
menuChange(index,name){
|
menuChange(index,name){
|
||||||
console.log("name",name)
|
this.goPage(name)
|
||||||
this.menuAc = index
|
this.menuAc = index
|
||||||
this.menuBtn.forEach((item,index) => {
|
this.menuBtn.forEach((item,index) => {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
|
@ -169,6 +170,10 @@ import {getData} from './api/index.js'
|
||||||
this.$router.push('alarm')
|
this.$router.push('alarm')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
goPage(name){
|
||||||
|
console.log(name)
|
||||||
|
},
|
||||||
|
|
||||||
//选中楼层
|
//选中楼层
|
||||||
floorChange(index){
|
floorChange(index){
|
||||||
this.floorAct = index
|
this.floorAct = index
|
||||||
|
|
Loading…
Reference in New Issue