|
|
|
@ -113,6 +113,8 @@ export default {
|
|
|
|
|
queryCondition: [],
|
|
|
|
|
logoUrl: "",
|
|
|
|
|
logoUrlBackup: "",
|
|
|
|
|
groupIndex: -1,
|
|
|
|
|
roomNameList: [],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
@ -134,7 +136,18 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
this.patientList = [];
|
|
|
|
|
console.log(res['Data']['Data']);
|
|
|
|
|
|
|
|
|
|
if (res['Data']['Data']['length']) {
|
|
|
|
|
if (this.groupIndex >= 0) {
|
|
|
|
|
if (this.roomNameList[this.groupIndex]) {
|
|
|
|
|
res['Data']['Data'] = res['Data']['Data'].filter(item => {
|
|
|
|
|
return this.roomNameList[this.groupIndex].includes(item['RoomName'])
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
res['Data']['Data'] = [];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (let index = 0; index < res['Data']['Data']['length']; index++) {
|
|
|
|
|
const element = res['Data']['Data'][index];
|
|
|
|
|
const groupIndex = parseInt(index / this.showItemNum);
|
|
|
|
@ -196,8 +209,10 @@ export default {
|
|
|
|
|
if (item['Key'] == "CorporateLogo") {
|
|
|
|
|
this.logoUrlBackup = item['Value']
|
|
|
|
|
}
|
|
|
|
|
if (item['Key'] == "RoomName") {
|
|
|
|
|
this.roomNameList = JSON.parse(item['Value'])
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -259,6 +274,16 @@ export default {
|
|
|
|
|
return this.currentDateTime.split(' ')[1];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
'$route.params.groupIndex'(newVal) {
|
|
|
|
|
if (newVal) {
|
|
|
|
|
this.groupIndex = newVal;
|
|
|
|
|
} else {
|
|
|
|
|
this.groupIndex = -1;
|
|
|
|
|
}
|
|
|
|
|
this.onGetPageData();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
// 清除定时器
|
|
|
|
|
clearInterval(this.dateTimer);
|
|
|
|
|