Explorar el Código

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN hace 4 años
padre
commit
e34fc5dcba
Se han modificado 2 ficheros con 53 adiciones y 21 borrados
  1. 12 2
      src/xt_pages/sign/lineUp.vue
  2. 41 19
      src/xt_pages/sign/signIn.vue

+ 12 - 2
src/xt_pages/sign/lineUp.vue Ver fichero

@@ -53,7 +53,12 @@
53 53
                         </div>
54 54
                         <div class="lineUpList">
55 55
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
56
-                                <p style="width:12%">{{ item.queue_no }}</p>
56
+                                <p style="width:12%">
57
+                                    <span v-if="item.schedule_type == 1">上午</span>
58
+                                    <span v-if="item.schedule_type == 2">上午</span>
59
+                                    <span v-if="item.schedule_type == 3">上午</span>
60
+                                    {{ item.queue_no }}号
61
+                                </p>
57 62
                                 <p style="width:14%">{{ item.patient_name }}</p>
58 63
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
59 64
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>
@@ -132,7 +137,12 @@
132 137
                         </div>
133 138
                         <div class="lineUpList">
134 139
                             <div class="lineUpListOne" v-for="(item,index) in lineUpList" :key="index">
135
-                                <p style="width:12%">{{ item.queue_no }}</p>
140
+                                <p style="width:12%">
141
+                                    <span v-if="item.schedule_type == 1">上午</span>
142
+                                    <span v-if="item.schedule_type == 2">上午</span>
143
+                                    <span v-if="item.schedule_type == 3">上午</span>
144
+                                    {{ item.queue_no }}号
145
+                                </p>
136 146
                                 <p style="width:14%">{{ item.patient_name }}</p>
137 147
                                 <p style="width:14%">{{ item.dialysis_no }}</p>
138 148
                                 <p style="width:14%">{{ item.partition_name + item.bed_name }}</p>

+ 41 - 19
src/xt_pages/sign/signIn.vue Ver fichero

@@ -51,7 +51,12 @@
51 51
                             </div>
52 52
                             <div class="signInList">
53 53
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
54
-                                    <p>{{ item.queue_no }}</p>
54
+                                    <p>
55
+                                        <span v-if="item.schedule_type == 1">上午</span>
56
+                                        <span v-if="item.schedule_type == 2">上午</span>
57
+                                        <span v-if="item.schedule_type == 3">上午</span>
58
+                                        {{ item.queue_no }}号
59
+                                    </p>
55 60
                                     <p>{{ item.patient_name }}</p>
56 61
                                     <p>{{ item.dialysis_no }}</p>
57 62
                                     <p>{{ item.create_time }}</p>
@@ -89,7 +94,12 @@
89 94
                             </div>
90 95
                             <div class="signInList">
91 96
                                 <div class="signInListOne" v-for="(item,index) in signInList" :key="index">
92
-                                    <p>{{ item.queue_no }}</p>
97
+                                    <p>
98
+                                        <span v-if="item.schedule_type == 1">上午</span>
99
+                                        <span v-if="item.schedule_type == 2">上午</span>
100
+                                        <span v-if="item.schedule_type == 3">上午</span>
101
+                                        {{ item.queue_no }}号
102
+                                    </p>
93 103
                                     <p>{{ item.patient_name }}</p>
94 104
                                     <p>{{ item.dialysis_no }}</p>
95 105
                                     <p>{{ item.create_time }}</p>
@@ -155,23 +165,25 @@ export default {
155 165
         this.websocketMess();
156 166
     },
157 167
     mounted(){
158
-        if(this.page < Math.ceil(this.count / 10)){
159
-            console.log('执行')
160
-            this.page++
161
-            let obj = {
162
-                cmd: "queue/queuelist",
163
-                data: {page:this.page,size:10,sort:1}
164
-            };
165
-            this.websocketSend(obj)
166
-        }else{
167
-            console.log('执行2222')
168
-            this.page = 1
169
-            let newobj = {
170
-                cmd: "queue/queuelist",
171
-                data: {page:this.page,size:10,sort:1}
172
-            };
173
-            this.websocketSend(newobj)
174
-        }
168
+        this.timer = setInterval(() => {
169
+            if(this.page < Math.ceil(this.count / 10)){
170
+                console.log('执行')
171
+                this.page++
172
+                let obj = {
173
+                    cmd: "queue/queuelist",
174
+                    data: {page:this.page,size:10,sort:1}
175
+                };
176
+                this.websocketSend(obj)
177
+            }else{
178
+                console.log('执行2222')
179
+                this.page = 1
180
+                let newobj = {
181
+                    cmd: "queue/queuelist",
182
+                    data: {page:this.page,size:10,sort:1}
183
+                };
184
+                this.websocketSend(newobj)
185
+            }
186
+        }, 5000);
175 187
         
176 188
         this.timerID = setInterval(() => {
177 189
             this.updateTime()
@@ -179,6 +191,7 @@ export default {
179 191
         // this.updateTime();
180 192
     },
181 193
     beforeDestroy(){
194
+        clearInterval(this.timer);  // 清除定时器
182 195
         clearInterval(this.timerID);  // 清除定时器
183 196
         let obj = {
184 197
             cmd: "queue/unjoin",
@@ -318,6 +331,15 @@ export default {
318 331
     .signInList{
319 332
         font-size: 36px;
320 333
         font-weight: 600;
334
+        >div:nth-child(1){
335
+            font-size: 50px;
336
+        }
337
+        >div:nth-child(2){
338
+            font-size: 50px;
339
+        }
340
+        >div:nth-child(3){
341
+            font-size: 50px;
342
+        }
321 343
         >div:nth-child(odd){
322 344
             background: #F9FDFF;
323 345
         }