Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 10 months ago
parent
commit
283697ff8e

+ 9 - 0
src/api/doctorSchedule.js View File

172
     params: params
172
     params: params
173
   })
173
   })
174
 }
174
 }
175
+
176
+export function DeleteStaffScheduleById(id,params){
177
+  
178
+  return request({
179
+    url:"/api/deletestaffschedulebyid?id="+id,
180
+    methods:"get",
181
+    params:params
182
+  })
183
+}

+ 46 - 24
src/xt_pages/dialysis/template/DialysisPrintOrderseventyone.vue View File

186
             灌流器
186
             灌流器
187
             <span class="under-line" style="display: inline-block;width: 50%;">
187
             <span class="under-line" style="display: inline-block;width: 50%;">
188
               {{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
188
               {{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
189
-            </span>L
189
+            </span>
190
           </div>
190
           </div>
191
           <div style="flex: 1;display: flex">
191
           <div style="flex: 1;display: flex">
192
             透析液:
192
             透析液:
243
         <table border="1" style="border-collapse: collapse;text-align: center;">
243
         <table border="1" style="border-collapse: collapse;text-align: center;">
244
           <tr>
244
           <tr>
245
             <td style="width: 60px;text-align: center;" rowspan="2" >时间</td>
245
             <td style="width: 60px;text-align: center;" rowspan="2" >时间</td>
246
-            <td colspan="4" style="text-align: center;">透析参数</td>
247
-            <td colspan="5" style="text-align: center;">生命体征</td>
246
+            <td colspan="6" style="text-align: center;">透析参数</td>
247
+            <td colspan="4" style="text-align: center;">生命体征</td>
248
             <td colspan="2" style="text-align: center;">治疗中病情变化</td>
248
             <td colspan="2" style="text-align: center;">治疗中病情变化</td>
249
           </tr>
249
           </tr>
250
           <tr>
250
           <tr>
252
               <p style="height: 20px; line-height: 20px">TMP</p>
252
               <p style="height: 20px; line-height: 20px">TMP</p>
253
               <p style="height: 20px; line-height: 20px">mmHg</p>
253
               <p style="height: 20px; line-height: 20px">mmHg</p>
254
             </th>
254
             </th>
255
+            <th style="width: 70px; font-weight: normal">
256
+              <p style="height: 20px; line-height: 20px">动脉压</p>
257
+              <p style="height: 20px; line-height: 20px">mmHg</p>
258
+            </th>
255
             <th style="width: 70px; font-weight: normal">
259
             <th style="width: 70px; font-weight: normal">
256
               <p style="height: 20px; line-height: 20px">静脉压</p>
260
               <p style="height: 20px; line-height: 20px">静脉压</p>
257
               <p style="height: 20px; line-height: 20px">mmHg</p>
261
               <p style="height: 20px; line-height: 20px">mmHg</p>
264
               <p style="height: 20px; line-height: 20px">脱水量</p>
268
               <p style="height: 20px; line-height: 20px">脱水量</p>
265
               <p style="height: 20px; line-height: 20px">ml</p>
269
               <p style="height: 20px; line-height: 20px">ml</p>
266
             </th>
270
             </th>
267
-            <th style="width: 80px; font-weight: normal">
268
-              <p style="height: 20px; line-height: 20px">T</p>
271
+            <th style="width: 120px; font-weight: normal">
272
+              <p style="height: 20px; line-height: 30px">透析液温度</p>
269
               <p style="height: 20px; line-height: 20px">℃</p>
273
               <p style="height: 20px; line-height: 20px">℃</p>
270
             </th>
274
             </th>
271
             <th style="width: 60px; font-weight: normal">
275
             <th style="width: 60px; font-weight: normal">
282
             </th>
286
             </th>
283
 
287
 
284
             <th style="width: 80px; font-weight: normal">
288
             <th style="width: 80px; font-weight: normal">
285
-              <p style="height: 20px; line-height: 20px">SpO₂</p>
286
-              <p style="height: 20px; line-height: 20px">%</p>
289
+              <p style="height: 20px; line-height: 20px">电导度</p>
290
+              <p style="height: 20px; line-height: 20px">mS/m</p>
287
             </th>
291
             </th>
288
-            <th style="width: 70px; font-weight: normal">
292
+            <!-- <th style="width: 70px; font-weight: normal">
289
               时间
293
               时间
290
-            </th>
294
+            </th> -->
291
             <th style="width: 333px; font-weight: normal">
295
             <th style="width: 333px; font-weight: normal">
292
               <p style="height: 20px; line-height: 20px">
296
               <p style="height: 20px; line-height: 20px">
293
                 记&nbsp;&nbsp;&nbsp;&nbsp;录
297
                 记&nbsp;&nbsp;&nbsp;&nbsp;录
298
             <td style="min-width: 60px; height: 30px">
302
             <td style="min-width: 60px; height: 30px">
299
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
303
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
300
             </td>
304
             </td>
305
+            
301
             <td>
306
             <td>
302
               <span v-if="getTime(monitor.operate_time) != ''">
307
               <span v-if="getTime(monitor.operate_time) != ''">
303
                 {{
308
                 {{
304
                   monitor.transmembrane_pressure
309
                   monitor.transmembrane_pressure
305
                     ? monitor.transmembrane_pressure
310
                     ? monitor.transmembrane_pressure
306
-                    : ""
311
+                    : "/"
307
                 }}
312
                 }}
308
               </span>
313
               </span>
309
             </td>
314
             </td>
315
+
316
+            <th style="width: 70px; font-weight: normal">
317
+              <span v-if="getTime(monitor.operate_time) != ''">
318
+                {{
319
+                  monitor.arterial_pressure
320
+                    ? monitor.arterial_pressure
321
+                    : "/"
322
+                }}
323
+              </span>
324
+            </th>
325
+            
310
             <td>
326
             <td>
311
               <span v-if="getTime(monitor.operate_time) != ''">
327
               <span v-if="getTime(monitor.operate_time) != ''">
312
-                &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "" }}
328
+                &nbsp;{{ monitor.venous_pressure ? monitor.venous_pressure : "/" }}
313
               </span>
329
               </span>
314
             </td>
330
             </td>
315
             <td>
331
             <td>
316
               <span v-if="getTime(monitor.operate_time) != ''">
332
               <span v-if="getTime(monitor.operate_time) != ''">
317
-                {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "" }}
333
+                {{ monitor.blood_flow_volume ? monitor.blood_flow_volume : "/" }}
318
               </span>
334
               </span>
319
             </td>
335
             </td>
320
             <td style="min-width: 45px">
336
             <td style="min-width: 45px">
324
                   {{
340
                   {{
325
                   monitor.ultrafiltration_volume
341
                   monitor.ultrafiltration_volume
326
                     ? monitor.ultrafiltration_volume
342
                     ? monitor.ultrafiltration_volume
327
-                    : " "
343
+                    : ""
328
                  }}
344
                  }}
329
                 </span>
345
                 </span>
330
               
346
               
334
             <!-- T -->
350
             <!-- T -->
335
             <td>
351
             <td>
336
               <span v-if="getTime(monitor.operate_time) != ''">
352
               <span v-if="getTime(monitor.operate_time) != ''">
337
-                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "" }}
353
+                {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "/" }}
338
               </span>
354
               </span>
339
             </td>
355
             </td>
340
             <!-- HR -->
356
             <!-- HR -->
341
             <td>
357
             <td>
342
               <span v-if="getTime(monitor.operate_time) != ''">
358
               <span v-if="getTime(monitor.operate_time) != ''">
343
-                {{ monitor.pulse_frequency ? monitor.pulse_frequency : "" }}
359
+                {{ monitor.pulse_frequency ? monitor.pulse_frequency : "/" }}
344
               </span>
360
               </span>
345
             </td>
361
             </td>
346
             <!-- R -->
362
             <!-- R -->
347
             <td>
363
             <td>
348
               <span v-if="getTime(monitor.operate_time) != ''">
364
               <span v-if="getTime(monitor.operate_time) != ''">
349
-                {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
365
+                {{ monitor.breathing_rate ? monitor.breathing_rate : "/" }}
350
               </span>
366
               </span>
351
             </td>
367
             </td>
352
             <!-- BP -->
368
             <!-- BP -->
355
                 {{
371
                 {{
356
                   monitor.systolic_blood_pressure
372
                   monitor.systolic_blood_pressure
357
                     ? monitor.systolic_blood_pressure
373
                     ? monitor.systolic_blood_pressure
358
-                    : ""
374
+                    : "/"
359
                 }}/{{
375
                 }}/{{
360
                   monitor.diastolic_blood_pressure
376
                   monitor.diastolic_blood_pressure
361
                     ? monitor.diastolic_blood_pressure
377
                     ? monitor.diastolic_blood_pressure
362
-                    : ""
378
+                    : "/"
363
                 }}
379
                 }}
364
               </span>
380
               </span>
365
             </td>
381
             </td>
367
             <td>
383
             <td>
368
               <span v-if="getTime(monitor.operate_time) != ''">
384
               <span v-if="getTime(monitor.operate_time) != ''">
369
                 {{
385
                 {{
370
-                  monitor.blood_oxygen_saturation
371
-                    ? monitor.blood_oxygen_saturation
372
-                    : ""
386
+                  monitor.conductivity
387
+                    ? monitor.conductivity
388
+                    : "/"
373
                 }}
389
                 }}
374
               </span>
390
               </span>
375
             </td>
391
             </td>
376
 
392
 
377
             <!-- 病情变化 -->
393
             <!-- 病情变化 -->
378
-            <td style="min-width: 60px; height: 30px">
394
+            <!-- <td style="min-width: 60px; height: 30px">
379
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
395
               {{ getTime(monitor.operate_time, "{h}:{i}") }}
380
-            </td>
396
+            </td> -->
381
             <td>
397
             <td>
382
               <template 
398
               <template 
383
               v-if=" (dialysisOrder && monitor.operate_time == dialysisOrder.start_time)&&(org_id!=10414) "
399
               v-if=" (dialysisOrder && monitor.operate_time == dialysisOrder.start_time)&&(org_id!=10414) "
415
                 <p style="height:15px;line-height:15px">上次透后体重</p>
431
                 <p style="height:15px;line-height:15px">上次透后体重</p>
416
               </td>
432
               </td>
417
               <td style="width:8%;">
433
               <td style="width:8%;">
418
-                {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
434
+                 <span v-if="assessmentafter.weight_after == 0">
435
+                  {{ afterdialysis.last_after_weight ? assessmentafter.last_after_weight : "0" }}kg
436
+                 </span>
437
+                 <span v-if="assessmentafter.weight_after>0">
438
+                  {{ assessmentafter.weight_after ? assessmentafter.weight_after : "0" }}kg
439
+                 </span>
440
+                  
419
               </td>
441
               </td>
420
             </tr>
442
             </tr>
421
 
443
 

+ 55 - 27
src/xt_pages/medicalScheduling/index.vue View File

42
             </div>
42
             </div>
43
             <div class="schedulingTable" style="display:flex;justify-content: space-between;">
43
             <div class="schedulingTable" style="display:flex;justify-content: space-between;">
44
                 <div style="width: 70%">
44
                 <div style="width: 70%">
45
-                    <el-table :data="tableData" border 
46
-                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}" 
45
+                    <el-table :data="tableData" border
46
+                    :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)', color: '#606266'}"
47
                     :row-style="{ color: '#303133' }"  @cell-click="clickThis" :cell-style="tableCellStyle"
47
                     :row-style="{ color: '#303133' }"  @cell-click="clickThis" :cell-style="tableCellStyle"
48
                     @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse">
48
                     @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse">
49
                     <!-- @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse" -->
49
                     <!-- @cell-mouse-enter="hoverMouse" @cell-mouse-leave="leavemouse" -->
56
                             <template slot-scope="scope">
56
                             <template slot-scope="scope">
57
                                 <div v-if="name==scope.row.user_name&&column_lie =='周一' ? true:false">
57
                                 <div v-if="name==scope.row.user_name&&column_lie =='周一' ? true:false">
58
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true" >
58
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true" >
59
-                                    <el-button type="danger" size="mini" icon="el-icon-close" 
60
-                                      circle @click.stop=""   
59
+                                    <el-button type="danger" size="mini" icon="el-icon-close"
60
+                                      circle @click.stop=""
61
                                     ></el-button>
61
                                     ></el-button>
62
                                   </div>
62
                                   </div>
63
+                                <div class="del_table_btn" v-show="scope.row.user_name=='合计'? false : true">
64
+                                  <el-button type="danger" size="mini" icon="el-icon-close" circle @click.stop="toClick(scope.row,scope.$index)"></el-button>
63
                                 </div>
65
                                 </div>
64
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
66
                                 <div @click="hangdleClick(scope.row,scope.$index,0)">
65
                                     <el-dropdown trigger="click" @command="changeSchedule" >
67
                                     <el-dropdown trigger="click" @command="changeSchedule" >
80
                              <template slot-scope="scope">
82
                              <template slot-scope="scope">
81
                               <div v-if="name==scope.row.user_name&&column_lie =='周二' ? true:false">
83
                               <div v-if="name==scope.row.user_name&&column_lie =='周二' ? true:false">
82
                                 <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
84
                                 <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
83
-                                  <el-button type="danger" size="mini" icon="el-icon-close" 
84
-                                    circle @click.stop=""   
85
+                                  <el-button type="danger" size="mini" icon="el-icon-close"
86
+                                    circle @click.stop=""
85
                                   ></el-button>
87
                                   ></el-button>
86
                                 </div>
88
                                 </div>
87
                               </div>
89
                               </div>
88
-                                
90
+
89
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
91
                                 <div @click="hangdleClick(scope.row,scope.$index,1)">
90
                                     <el-dropdown trigger="click" @command="changeSchedule">
92
                                     <el-dropdown trigger="click" @command="changeSchedule">
91
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
93
                                         <span class="el-dropdown-link" v-if='getClassAttributes(scope.row.user_name,2) == 2' style="color:red">
105
                              <template slot-scope="scope">
107
                              <template slot-scope="scope">
106
                                 <div v-if="name==scope.row.user_name&&column_lie =='周三' ? true:false">
108
                                 <div v-if="name==scope.row.user_name&&column_lie =='周三' ? true:false">
107
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
109
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
108
-                                    <el-button type="danger" size="mini" icon="el-icon-close" 
109
-                                      circle @click.stop=""   
110
+                                    <el-button type="danger" size="mini" icon="el-icon-close"
111
+                                      circle @click.stop=""
110
                                     ></el-button>
112
                                     ></el-button>
111
                                   </div>
113
                                   </div>
112
                                 </div>
114
                                 </div>
129
                              <template slot-scope="scope">
131
                              <template slot-scope="scope">
130
                                 <div v-if="name==scope.row.user_name&&column_lie =='周四' ? true:false">
132
                                 <div v-if="name==scope.row.user_name&&column_lie =='周四' ? true:false">
131
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
133
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
132
-                                    <el-button type="danger" size="mini" icon="el-icon-close" 
133
-                                      circle @click.stop=""   
134
+                                    <el-button type="danger" size="mini" icon="el-icon-close"
135
+                                      circle @click.stop=""
134
                                     ></el-button>
136
                                     ></el-button>
135
                                   </div>
137
                                   </div>
136
                                 </div>
138
                                 </div>
153
                              <template slot-scope="scope">
155
                              <template slot-scope="scope">
154
                                 <div v-if="name==scope.row.user_name&&column_lie =='周五' ? true:false">
156
                                 <div v-if="name==scope.row.user_name&&column_lie =='周五' ? true:false">
155
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
157
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
156
-                                    <el-button type="danger" size="mini" icon="el-icon-close" 
157
-                                      circle @click.stop=""   
158
+                                    <el-button type="danger" size="mini" icon="el-icon-close"
159
+                                      circle @click.stop=""
158
                                     ></el-button>
160
                                     ></el-button>
159
                                   </div>
161
                                   </div>
160
                                 </div>
162
                                 </div>
177
                              <template slot-scope="scope">
179
                              <template slot-scope="scope">
178
                                 <div v-if="name==scope.row.user_name&&column_lie =='周六' ? true:false">
180
                                 <div v-if="name==scope.row.user_name&&column_lie =='周六' ? true:false">
179
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
181
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
180
-                                    <el-button type="danger" size="mini" icon="el-icon-close" 
181
-                                      circle @click.stop=""   
182
+                                    <el-button type="danger" size="mini" icon="el-icon-close"
183
+                                      circle @click.stop=""
182
                                     ></el-button>
184
                                     ></el-button>
183
                                   </div>
185
                                   </div>
184
                                 </div>
186
                                 </div>
201
                              <template slot-scope="scope">
203
                              <template slot-scope="scope">
202
                                 <div v-if="name==scope.row.user_name&&column_lie =='周日' ? true:false">
204
                                 <div v-if="name==scope.row.user_name&&column_lie =='周日' ? true:false">
203
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
205
                                   <div class="del_table_btns" v-show="scope.row.user_name=='合计'? false : true">
204
-                                    <el-button type="danger" size="mini" icon="el-icon-close" 
205
-                                      circle @click.stop=""   
206
+                                    <el-button type="danger" size="mini" icon="el-icon-close"
207
+                                      circle @click.stop=""
206
                                     ></el-button>
208
                                     ></el-button>
207
                                   </div>
209
                                   </div>
208
                                 </div>
210
                                 </div>
400
 <script>
402
 <script>
401
 const moment = require('moment')
403
 const moment = require('moment')
402
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
404
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
403
-import { getDoctorList,getScheduleList,addSchedule,getStaffScheduleList,getNextWeekList,getScheduleByDoctorId,toSearchScheduleList,DeleteStaffSchedule,copyStaffSchedule,UpdateContinusSchedule,SaveNurseSort,SaveIsSchedule } from '@/api/doctorSchedule'
405
+import { getDoctorList,getScheduleList,addSchedule,getStaffScheduleList,getNextWeekList,getScheduleByDoctorId,toSearchScheduleList,DeleteStaffSchedule,copyStaffSchedule,UpdateContinusSchedule,SaveNurseSort,SaveIsSchedule,DeleteStaffScheduleById } from '@/api/doctorSchedule'
404
 import { constants } from 'crypto'
406
 import { constants } from 'crypto'
405
 export default {
407
 export default {
406
     components:{
408
     components:{
499
                     this.getStaffScheduleList()
501
                     this.getStaffScheduleList()
500
 
502
 
501
                     var doctorlist =  response.data.data.doctorlist
503
                     var doctorlist =  response.data.data.doctorlist
502
-                  
504
+
503
                     for(let i=0;i<doctorlist.length;i++){
505
                     for(let i=0;i<doctorlist.length;i++){
504
                         if(doctorlist[i].sort == 0){
506
                         if(doctorlist[i].sort == 0){
505
                           doctorlist[i].sort = ""
507
                           doctorlist[i].sort = ""
747
                         })
749
                         })
748
                         sevenStr = zeroStr
750
                         sevenStr = zeroStr
749
                     }
751
                     }
750
-                    
752
+
751
                     if(staffList[i].schedule_week == 1){
753
                     if(staffList[i].schedule_week == 1){
752
                         staffList[i].class_index = 1
754
                         staffList[i].class_index = 1
753
                         var arr = []
755
                         var arr = []
859
                         fourStr = strFour
861
                         fourStr = strFour
860
                     }
862
                     }
861
 
863
 
862
-                    
864
+
863
                     if(staffList[i].schedule_week == 5){
865
                     if(staffList[i].schedule_week == 5){
864
                         staffList[i].class_index = 5
866
                         staffList[i].class_index = 5
865
 
867
 
917
                         sixStr = strSix
919
                         sixStr = strSix
918
                      }
920
                      }
919
                     }
921
                     }
922
+
920
                     let tempArr = [], newArr = []
923
                     let tempArr = [], newArr = []
921
                     for (let i = 0; i < staffList.length; i++) {
924
                     for (let i = 0; i < staffList.length; i++) {
922
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
925
                         if (tempArr.indexOf(staffList[i].user_name) == -1) {
923
                             newArr.push({
926
                             newArr.push({
927
+                                id:staffList[i].id,
924
                                 user_name: staffList[i].user_name,
928
                                 user_name: staffList[i].user_name,
925
                                 admin_user_id:staffList[i].admin_user_id,
929
                                 admin_user_id:staffList[i].admin_user_id,
926
                                 user_type:staffList[i].doctor_type,
930
                                 user_type:staffList[i].doctor_type,
938
                             }
942
                             }
939
                         }
943
                         }
940
                     }
944
                     }
941
-                    
945
+
942
                     let arrTen = [...newArr]
946
                     let arrTen = [...newArr]
943
                     console.log("newArr22o2o2o2o2wo",arrTen)
947
                     console.log("newArr22o2o2o2o2wo",arrTen)
944
                     let newNurse = []
948
                     let newNurse = []
970
                         }
974
                         }
971
                     })
975
                     })
972
                     newNurse.sort(this.compare('sort'))
976
                     newNurse.sort(this.compare('sort'))
973
-                  
977
+
974
                     // //医生
978
                     // //医生
975
                     newDoctor.sort(this.compare('admin_user_id'))
979
                     newDoctor.sort(this.compare('admin_user_id'))
976
                     let newDoctorTableData = []
980
                     let newDoctorTableData = []
991
 
995
 
992
 
996
 
993
                     let arr2 = []
997
                     let arr2 = []
994
-                    
998
+
995
                     arr2.push({class_name:oneStr,schedule_week:1})
999
                     arr2.push({class_name:oneStr,schedule_week:1})
996
                     arr2.push({class_name:twoStr,schedule_week:2})
1000
                     arr2.push({class_name:twoStr,schedule_week:2})
997
                     arr2.push({class_name:threeStr,schedule_week:3})
1001
                     arr2.push({class_name:threeStr,schedule_week:3})
1007
                     arr.push(obj)
1011
                     arr.push(obj)
1008
 
1012
 
1009
                     let data = []
1013
                     let data = []
1010
-                  
1014
+
1011
                     data.push(...newNurse)
1015
                     data.push(...newNurse)
1012
                     data.push(...newDoctor)
1016
                     data.push(...newDoctor)
1013
                     data.push(obj)
1017
                     data.push(obj)
1014
                     console.log("data2o2oo2o2o2o22o",data)
1018
                     console.log("data2o2oo2o2o2o22o",data)
1015
-                    
1019
+
1016
                     // this.tableData = this.distinct(data)
1020
                     // this.tableData = this.distinct(data)
1017
                     this.tableData = data
1021
                     this.tableData = data
1018
 
1022
 
2050
         return jsonData.map(v => filterVal.map(j => v[j]))
2054
         return jsonData.map(v => filterVal.map(j => v[j]))
2051
        },
2055
        },
2052
 
2056
 
2057
+       toClick(row,index){
2058
+          this.$confirm(
2059
+            '是否要清除当前排班? <br>清除后,信息将无法恢复',
2060
+            '删除提示',
2061
+            {
2062
+                dangerouslyUseHTMLString: true,
2063
+                confirmButtonText: '确定',
2064
+                cancelButtonText: '取消',
2065
+                type: 'warning'
2066
+            }
2067
+            ).then(()=>{
2068
+
2069
+            DeleteStaffScheduleById(row.id).then(response=>{
2070
+                if(response.data.state == 1){
2071
+                    var msg =  response.data.data.msg
2072
+                    this.$message.success("清除成功")
2073
+                    this.getStaffScheduleList()
2074
+
2075
+                }
2076
+            })
2077
+         })
2078
+       }
2079
+
2080
+
2053
        hoverMouse(row,column, cell, event){
2081
        hoverMouse(row,column, cell, event){
2054
         this.name=row.user_name
2082
         this.name=row.user_name
2055
         this.column_lie= column.label.split('\n')[0]
2083
         this.column_lie= column.label.split('\n')[0]
2056
-        
2084
+
2057
        },
2085
        },
2058
        leavemouse(row, column, cell, event){
2086
        leavemouse(row, column, cell, event){
2059
         this.name=''
2087
         this.name=''