|
@@ -57,9 +57,9 @@
|
57
|
57
|
<td style="text-align: center;">{{ getZoneName(ite.partition_id) }}</td>
|
58
|
58
|
<td>
|
59
|
59
|
<div v-for="(it,index) in numberlist" style="display: inline-block;position: relative;" >
|
60
|
|
- <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" :style="{'height':hidder ? '30px': '110px','line-height':hidder ? '30px':''}" @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" draggable="true" @dragover="allowDrop">
|
|
60
|
+ <div v-if="ite.partition_id==it.zone_id" class="huanzhekuais" :style="{'height':hidder ? '30px': '110px','line-height':hidder ? '30px':''}" @dblclick="db_click($event,it)" @drop="drop($event,item,it.number)" @dragstart="curInfoDragStart($event,item)" draggable="true" @dragover="allowDrop">
|
61
|
61
|
<div class="huanzhekuai">
|
62
|
|
- <div v-for="(item2) in item.list" draggable="true" @dragstart.self="curInfoDragStart($event,item2)">
|
|
62
|
+ <div v-for="(item2) in item.list" draggable="true" >
|
63
|
63
|
<template >
|
64
|
64
|
<div v-if="it.id==item2.bed_id" style="display: inline-block;">
|
65
|
65
|
<div>
|
|
@@ -818,19 +818,26 @@ export default {
|
818
|
818
|
},
|
819
|
819
|
// 需要拖动的
|
820
|
820
|
curInfoDragStart(e,val){
|
821
|
|
- this.cur_drag_info={
|
822
|
|
- id:val.id,
|
823
|
|
- name:val.name,
|
824
|
|
- quhao:val.order.DeviceNumber.zone.name,
|
825
|
|
- chaung:val.order.DeviceNumber.number,
|
826
|
|
- patient_id:val.patient_id,
|
827
|
|
- bed_id:val.bed_id,
|
828
|
|
- mode_id:val.mode_id,
|
829
|
|
- partition_id:val.partition_id,
|
830
|
|
- schedule_date:this.date,
|
831
|
|
- schedule_type:this.classes,
|
832
|
|
- schedule_week: val.schedule_week,
|
|
821
|
+ const inntext2= e.target.innerText.split('(')[0]
|
|
822
|
+ for(let i=0;i<val.list.length;i++){
|
|
823
|
+ if(inntext2 == val.list[i].name){
|
|
824
|
+ this.cur_drag_info={
|
|
825
|
+ id:val.list[i].id,
|
|
826
|
+ name:val.list[i].name,
|
|
827
|
+ quhao:val.list[i].order.DeviceNumber.zone.name,
|
|
828
|
+ chaung:val.list[i].order.DeviceNumber.number,
|
|
829
|
+ patient_id:val.list[i].patient_id,
|
|
830
|
+ bed_id:val.list[i].bed_id,
|
|
831
|
+ mode_id:val.list[i].mode_id,
|
|
832
|
+ partition_id:val.list[i].partition_id,
|
|
833
|
+ schedule_date:this.date,
|
|
834
|
+ schedule_type:this.classes,
|
|
835
|
+ schedule_week: val.list[i].schedule_week,
|
|
836
|
+ }
|
|
837
|
+ }
|
833
|
838
|
}
|
|
839
|
+
|
|
840
|
+ console.log('bbbb',e.target.innerText);
|
834
|
841
|
console.log('4444',val);
|
835
|
842
|
console.log('5555',this.cur_drag_info);
|
836
|
843
|
},
|