-
- {{ subItem['roomName'] }}
-
-
-
{{ subItem['nurseNames'] }}
+
+
+ {{ subItem['roomName'] }}
+
{{ subItem['nurseNames'] }}
@@ -55,23 +49,23 @@ export default {
this.nurseCount = res['data']['nurseCount'];
this.schedulingList = [];
res['data']['nurseScheduleDetails'].forEach((item, index) => {
- if (this.schedulingList[Math.floor(index / 39)]) {
- this.schedulingList[Math.floor(index / 39)].push(item);
+ if (this.schedulingList[Math.floor(index / 45)]) {
+ this.schedulingList[Math.floor(index / 45)].push(item);
} else {
- this.schedulingList[Math.floor(index / 39)] = [item];
+ this.schedulingList[Math.floor(index / 45)] = [item];
}
});
} else {
if (this.$store.getters.isMock) {
this.schedulingList = [];
for (let index = 0; index < 100; index++) {
- if (this.schedulingList[Math.floor(index / 39)]) {
- this.schedulingList[Math.floor(index / 39)].push({
+ if (this.schedulingList[Math.floor(index / 45)]) {
+ this.schedulingList[Math.floor(index / 45)].push({
roomName: String(index + 1).padStart(3, '0'),
nurseNames: '陈宇、孙晨、邓一帆',
});
} else {
- this.schedulingList[Math.floor(index / 39)] = [
+ this.schedulingList[Math.floor(index / 45)] = [
{
roomName: String(index + 1).padStart(3, '0'),
nurseNames: '陈宇、孙晨、邓一帆',
@@ -102,34 +96,5 @@ export default {
diff --git a/src/views/waitList/index.vue b/src/views/waitList/index.vue
index d4a5cb2..14d2cc7 100644
--- a/src/views/waitList/index.vue
+++ b/src/views/waitList/index.vue
@@ -252,7 +252,7 @@ export default {
},
onFailed: function (frame) {
console.group("MQ Failed:")
- console.log(frame);
+ console.warn(frame);
console.groupEnd();
setTimeout(() => {
this.client = Stomp.client(MQTT_SERVICE);