|
|
@@ -56,7 +56,13 @@
|
|
|
//设施状态概览
|
|
|
dashboardsFacilitiesStatusOverview(){
|
|
|
let self = this;
|
|
|
- dashboardsFacilitiesStatusOverview().then(res => {
|
|
|
+ let text = window.location.href
|
|
|
+ let urlList = text.split('?')[1].split('&')
|
|
|
+ let codeData = {}
|
|
|
+ urlList.forEach((item) => {
|
|
|
+ codeData[item.split('=')[0]] = item.split('=')[1]
|
|
|
+ })
|
|
|
+ dashboardsFacilitiesStatusOverview({floorid:codeData.floorId}).then(res => {
|
|
|
for(let i=0;i<res.data.types.length;i++){
|
|
|
if( res.data.types[i].type == '空闲'){
|
|
|
self.$set(self,'data1',res.data.types[i].count);
|