|
@@ -244,28 +244,34 @@
|
244
|
244
|
</el-dialog>
|
245
|
245
|
|
246
|
246
|
<div class="center-tab">
|
|
247
|
+ <!-- <h2>div move</h2>
|
|
248
|
+ <div ref="main" class="main" style="width: 300px;height: 300px;overflow: auto;">
|
|
249
|
+ <div style="width: 400px;height: 400px;padding-top: 100px;background-color: rgb(13, 255, 0);cursor: pointer;">
|
|
250
|
+ <div>1111111111111111111111</div>
|
|
251
|
+ </div>
|
|
252
|
+ </div> "calc(100% - 50px)"-->
|
|
253
|
+
|
247
|
254
|
<el-table
|
248
|
255
|
:row-style="{ color: '#303133' }"
|
249
|
256
|
:header-cell-style="{
|
250
|
257
|
backgroundColor: 'rgb(245, 247, 250)',
|
251
|
258
|
color: '#606266',
|
252
|
|
- // border: '1px solid aqua',
|
253
|
259
|
}"
|
254
|
260
|
:fit="true"
|
255
|
261
|
:data="scheduleZone"
|
256
|
262
|
:span-method="objectSpanMethod"
|
257
|
263
|
@cell-click="clickThis"
|
258
|
264
|
@cell-mouse-enter="hoverMouse"
|
|
265
|
+ :cell-style ='cellstyle'
|
259
|
266
|
:summary-method="getSummaries"
|
260
|
267
|
show-summary
|
261
|
268
|
:cell-class-name="cellClass"
|
262
|
|
-
|
263
|
269
|
sum-text="总数"
|
264
|
|
- :height="tableContainHeight"
|
|
270
|
+ height="600"
|
265
|
271
|
ref="table"
|
266
|
272
|
style="table-layout: fixed;"
|
267
|
273
|
>
|
268
|
|
-<!-- :cell-style ='cellstyle' -->
|
|
274
|
+ <!-- :height="tableContainHeight" -->
|
269
|
275
|
<el-table-column
|
270
|
276
|
prop="area"
|
271
|
277
|
label="分区"
|
|
@@ -286,9 +292,7 @@
|
286
|
292
|
:label="' 周一(' + weekTitle[0] + ')'"
|
287
|
293
|
v-if="isShowOne"
|
288
|
294
|
align="center"
|
289
|
|
-
|
290
|
295
|
>
|
291
|
|
- <!-- :width="flexColumnWidth('Mon_M',scheduleZone)" -->
|
292
|
296
|
<el-table-column prop="Mon_M" label="上" min-width="40" align="center" v-if="isShowShangWu" >
|
293
|
297
|
<schedule-item
|
294
|
298
|
slot-scope="scope"
|
|
@@ -521,7 +525,7 @@
|
521
|
525
|
:schedulFlag="value1"
|
522
|
526
|
:schedulMode="modename_value"
|
523
|
527
|
>
|
524
|
|
- <!-- -->
|
|
528
|
+
|
525
|
529
|
</schedule-item>
|
526
|
530
|
</el-table-column>
|
527
|
531
|
</el-table-column>
|
|
@@ -733,6 +737,7 @@
|
733
|
737
|
</template>
|
734
|
738
|
|
735
|
739
|
<script>
|
|
740
|
+import Drag from '@/utils/move.js';
|
736
|
741
|
import { uParseTime } from "@/utils/tools";
|
737
|
742
|
import print from 'print-js'
|
738
|
743
|
const moment = require('moment')
|
|
@@ -788,7 +793,7 @@ export default {
|
788
|
793
|
},
|
789
|
794
|
data() {
|
790
|
795
|
return {
|
791
|
|
- tableContainHeight:null,
|
|
796
|
+ // tableContainHeight:"calc(100% - 50px)",
|
792
|
797
|
value1:false,
|
793
|
798
|
modename_value:true,
|
794
|
799
|
weeks:weekOptions,
|
|
@@ -926,27 +931,27 @@ export default {
|
926
|
931
|
},
|
927
|
932
|
|
928
|
933
|
watch: {
|
929
|
|
- schedule_type:function (){
|
930
|
|
- this.isShowShangWu = false
|
931
|
|
- this.isShowXiaWu = false
|
932
|
|
- this.isShowWanShang = false
|
933
|
|
- if(this.schedule_type.length > 0) {
|
934
|
|
- for (let i = 0; i < this.schedule_type.length; i++) {
|
935
|
|
- if (this.schedule_type[i] == 1) {
|
936
|
|
- this.isShowShangWu = true
|
937
|
|
- } else if (this.schedule_type[i] == 2) {
|
938
|
|
- this.isShowXiaWu = true
|
939
|
|
- } else if (this.schedule_type[i] == 3) {
|
940
|
|
- this.isShowWanShang = true
|
941
|
|
- }
|
942
|
|
- }
|
943
|
|
- }else{
|
944
|
|
- this.isShowShangWu = true
|
945
|
|
- this.isShowXiaWu = true
|
946
|
|
- this.isShowWanShang = true
|
947
|
|
- }
|
|
934
|
+ // schedule_type:function (){
|
|
935
|
+ // this.isShowShangWu = false
|
|
936
|
+ // this.isShowXiaWu = false
|
|
937
|
+ // this.isShowWanShang = false
|
|
938
|
+ // if(this.schedule_type.length > 0) {
|
|
939
|
+ // for (let i = 0; i < this.schedule_type.length; i++) {
|
|
940
|
+ // if (this.schedule_type[i] == 1) {
|
|
941
|
+ // this.isShowShangWu = true
|
|
942
|
+ // } else if (this.schedule_type[i] == 2) {
|
|
943
|
+ // this.isShowXiaWu = true
|
|
944
|
+ // } else if (this.schedule_type[i] == 3) {
|
|
945
|
+ // this.isShowWanShang = true
|
|
946
|
+ // }
|
|
947
|
+ // }
|
|
948
|
+ // }else{
|
|
949
|
+ // this.isShowShangWu = true
|
|
950
|
+ // this.isShowXiaWu = true
|
|
951
|
+ // this.isShowWanShang = true
|
|
952
|
+ // }
|
948
|
953
|
|
949
|
|
- },
|
|
954
|
+ // },
|
950
|
955
|
week_type:function () {
|
951
|
956
|
// console.log(this.week_type)
|
952
|
957
|
// console.log(this.schedule_type)
|
|
@@ -1068,6 +1073,7 @@ export default {
|
1068
|
1073
|
// 班次选择
|
1069
|
1074
|
scheduleType_change(val){
|
1070
|
1075
|
console.log('vvvvvv',val);
|
|
1076
|
+ this.$emit('event2', val)
|
1071
|
1077
|
if(val==1){
|
1072
|
1078
|
this.isShowShangWu = true
|
1073
|
1079
|
this.isShowXiaWu = false
|
|
@@ -1095,6 +1101,7 @@ export default {
|
1095
|
1101
|
}else{
|
1096
|
1102
|
sessionStorage.setItem('value1',this.value1)
|
1097
|
1103
|
}
|
|
1104
|
+ this.$emit('guanliu_show',this.value1)
|
1098
|
1105
|
console.log('this.value1',this.value1);
|
1099
|
1106
|
console.log('flag',flag);
|
1100
|
1107
|
},
|
|
@@ -1409,9 +1416,9 @@ export default {
|
1409
|
1416
|
return "";
|
1410
|
1417
|
} else {
|
1411
|
1418
|
if (this.weekTime == "lastWeek") {
|
1412
|
|
- // if(column.label == '晚' ){
|
1413
|
|
- // return 'evening_border schedule-table-cell-disable'
|
1414
|
|
- // }
|
|
1419
|
+ if(column.label == '晚' ){
|
|
1420
|
+ return 'evening_border schedule-table-cell-disable'
|
|
1421
|
+ }
|
1415
|
1422
|
if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
|
1416
|
1423
|
return 'hover-td schedule-table-cell-disable'
|
1417
|
1424
|
}else {
|
|
@@ -1426,15 +1433,15 @@ export default {
|
1426
|
1433
|
if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover ){
|
1427
|
1434
|
return 'hover-td schedule-table-cell-disable'
|
1428
|
1435
|
}
|
1429
|
|
- // if(column.label == '晚'){
|
1430
|
|
- // return 'evening_border schedule-table-cell-disable'
|
1431
|
|
- // }
|
|
1436
|
+ if(column.label == '晚'){
|
|
1437
|
+ return 'evening_border schedule-table-cell-disable'
|
|
1438
|
+ }
|
1432
|
1439
|
return "schedule-table-cell-disable";
|
1433
|
1440
|
}else{
|
1434
|
1441
|
// 分日期
|
1435
|
|
- // if(column.label == '晚' ){
|
1436
|
|
- // return 'evening_border'
|
1437
|
|
- // }
|
|
1442
|
+ if(column.label == '晚' ){
|
|
1443
|
+ return 'evening_border'
|
|
1444
|
+ }
|
1438
|
1445
|
if(row[column.property].patient_id > 0 && row[column.property].patient_id == this.patient_id_hover){
|
1439
|
1446
|
return 'hover-td '
|
1440
|
1447
|
}else {
|
|
@@ -1449,17 +1456,17 @@ export default {
|
1449
|
1456
|
}
|
1450
|
1457
|
return "";
|
1451
|
1458
|
},
|
1452
|
|
- // cellstyle({ row, column, rowIndex, columnIndex }){
|
1453
|
|
- // // 分区蓝线
|
1454
|
|
- // for(let i=0;i<this.subzone.length;i++){
|
1455
|
|
- // const subslice=this.subzone[i].jihaos.slice(-1)
|
1456
|
|
- // console.log('这是row',subslice);
|
1457
|
|
- // if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
|
1458
|
|
- // // console.log('33333333333');
|
1459
|
|
- // return 'border-top: 1px solid aqua;'
|
1460
|
|
- // }
|
1461
|
|
- // }
|
1462
|
|
- // },
|
|
1459
|
+ cellstyle({ row, column, rowIndex, columnIndex }){
|
|
1460
|
+ // 分区蓝线
|
|
1461
|
+ // for(let i=0;i<this.subzone.length;i++){
|
|
1462
|
+ // const subslice=this.subzone[i].jihaos.slice(-1)
|
|
1463
|
+ // // console.log('这是row',subslice);
|
|
1464
|
+ // if(row.zone_id==subslice[0].zone_id && row.jihao_id == subslice[0].id ){
|
|
1465
|
+ // // console.log('33333333333',subslice);
|
|
1466
|
+ // return 'border-top: 1px solid red;'
|
|
1467
|
+ // }
|
|
1468
|
+ // }
|
|
1469
|
+ },
|
1463
|
1470
|
|
1464
|
1471
|
changeSearchContagion(id) {
|
1465
|
1472
|
this.patientQuery.contagion = id;
|
|
@@ -3363,6 +3370,7 @@ export default {
|
3363
|
3370
|
},
|
3364
|
3371
|
changeSchedule_type(val) {
|
3365
|
3372
|
this.$emit('event2', val)
|
|
3373
|
+ console.log('yyyyy',val);
|
3366
|
3374
|
this.schedule_type = val
|
3367
|
3375
|
this.getSchedules()
|
3368
|
3376
|
},
|
|
@@ -3374,7 +3382,7 @@ export default {
|
3374
|
3382
|
ScheduleItem
|
3375
|
3383
|
},
|
3376
|
3384
|
mounted() {
|
3377
|
|
-
|
|
3385
|
+ new Drag(this.$refs.main);
|
3378
|
3386
|
this.tableContainHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 120;
|
3379
|
3387
|
|
3380
|
3388
|
// var theType = this.weekType(this.weekTime);
|
|
@@ -3499,22 +3507,22 @@ textarea{
|
3499
|
3507
|
background-color: #409eff !important;
|
3500
|
3508
|
color: #fff;
|
3501
|
3509
|
}
|
3502
|
|
- .Infectious_disease{
|
3503
|
|
- background-color: red !important;
|
3504
|
|
- color: white;
|
3505
|
|
- border-left: 1px solid aqua;
|
3506
|
|
- border-right: 1px solid aqua;
|
3507
|
|
- }
|
3508
|
|
- .border_bott{
|
3509
|
|
- border-left: 1px solid aqua;
|
3510
|
|
- border-right: 1px solid aqua;
|
3511
|
|
- }
|
3512
|
|
- .border_left{
|
3513
|
|
- border-left: 1px solid aqua;
|
3514
|
|
- }
|
3515
|
|
- .evening_border{
|
3516
|
|
- border-right: 1px solid aqua;
|
3517
|
|
- }
|
|
3510
|
+ // .Infectious_disease{
|
|
3511
|
+ // background-color: red !important;
|
|
3512
|
+ // color: white;
|
|
3513
|
+ // border-left: 1px solid aqua;
|
|
3514
|
+ // border-right: 1px solid aqua;
|
|
3515
|
+ // }
|
|
3516
|
+ // .border_bott{
|
|
3517
|
+ // border-left: 1px solid aqua;
|
|
3518
|
+ // border-right: 1px solid aqua;
|
|
3519
|
+ // }
|
|
3520
|
+ // .border_left{
|
|
3521
|
+ // // border-left: 1px solid aqua;
|
|
3522
|
+ // }
|
|
3523
|
+ // .evening_border{
|
|
3524
|
+ // border-right: 1px solid rgb(236, 41, 41);
|
|
3525
|
+ // }
|
3518
|
3526
|
|
3519
|
3527
|
}
|
3520
|
3528
|
.backPurple{
|
|
@@ -3539,3 +3547,4 @@ textarea{
|
3539
|
3547
|
// padding: 0px 0px !important;
|
3540
|
3548
|
// }
|
3541
|
3549
|
</style>
|
|
3550
|
+
|