+
@@ -249,7 +308,7 @@ export default {
role:'',
houseId:"",
houseList:[],
- classatec:1,
+ classatec:0,
customtime:[],
statDateStart:'',
statDateEnd:'',
@@ -259,86 +318,9 @@ export default {
liftlist:{},
sequential:{},
},
- tableData: [
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- {
- date: '80%',
- name: '王小虎',
- address: '正在录音',
- num:'18655732363'
- },
- ]
+ tableData: [],
+ equipmentList:[],
+ prohibitedlist:[],
}
},
mounted() {
@@ -347,10 +329,6 @@ export default {
this.zkhousePage()
}
- // comparedStat升降
- //todayStat今天
- //yesterdayStat环比
-
},
methods: {
//获取看片数据
@@ -396,9 +374,35 @@ export default {
}
});
},
+ //获取设备
+ findAllZkEquipment(){
+ this.equipmentList=[];
+ this.$api.http.findAllZkEquipment({
+ onLine:this.classatec,
+ houseId:this.houseId
+ }).then((res) => {
+ this.equipmentList=res.data;
+ })
+ },
+ findProhibitedRecord(){
+ this.prohibitedlist=[];
+ this.$api.http.findProhibitedRecord({
+ houseId:this.houseId,
+ dateType: this.TimetoAhoose,
+ statDateStart: this.statDateStart,
+ statDateEnd:this.statDateEnd
+ }).then((res) => {
+ this.prohibitedlist=res.data;
+ })
+ },
+
//切换楼盘
houseChange() {
-
+ this.TimetoAhoose=0;
+ this.statDateStart='';
+ this.statDateEnd='';
+ this.getgicd()
+ this.findProhibitedRecord()
},
//获取楼盘
zkhousePage() {
@@ -409,11 +413,14 @@ export default {
.then((res) => {
this.houseList = res.data;
this.houseId = res.data[0].id;
- this.getgicd()
+ this.getgicd();
+ this.findProhibitedRecord()
+ this.findAllZkEquipment()
});
},
tabclick(i){
this.classatec=i;
+ this.findAllZkEquipment()
},
tabtimetap(i){
this.statDateStart='';
@@ -421,13 +428,15 @@ export default {
this.customtime=[];
this.TimetoAhoose=i;
this.getgicd()
+ this.findProhibitedRecord()
},
- //切换世间
+ //切换时间
confirmtime() {
this.statDateStart=this.customtime[0];
this.statDateEnd=this.customtime[1];
this.TimetoAhoose=5;
this.getgicd()
+ this.findProhibitedRecord()
},
}
}
@@ -436,9 +445,10 @@ export default {