taskModel_host.vue
30.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
<template>
<div class="app-container">
<div class="app-container-father">
<div class="dv-container-left">
<div class="dv-container-left-component">
<div class="component-left">任务号:</div>
<div class="component-right">
<el-input v-model="queryConfig.taskNumber" />
</div>
</div>
<div class="dv-container-left-component">
<div class="component-left">远程任务号:</div>
<div class="component-right">
<el-input v-model="queryConfig.remoteTask" />
</div>
</div>
<div class="dv-container-left-component">
<div class="component-left">容器号:</div>
<div class="component-right">
<el-input v-model="queryConfig.barcode" />
</div>
</div>
<div class="dv-container-left-component">
<div class="component-left">起点:</div>
<div class="component-right">
<el-input v-model="queryConfig.from" />
</div>
</div>
<div class="dv-container-left-component">
<div class="component-left">终点:</div>
<div class="component-right">
<el-input v-model="queryConfig.to" />
</div>
</div>
<div class="dv-container-left-component">
<div class="component-left">任务状态:</div>
<div class="component-right">
<el-select v-model="value" placeholder="请选择">
<el-option
v-for="item in options"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
</div>
<div class="dv-container-left-component">
<div class="component-left">开始时间:</div>
<div class="component-right">
<el-date-picker
v-model="form.startTime"
type="datetime"
placeholder="选择日期时间"
/>
</div>
</div>
<div class="dv-container-left-component">
<div class="component-left">结束时间:</div>
<div class="component-right">
<el-date-picker
v-model="form.endTime"
type="datetime"
placeholder="选择日期时间"
/>
</div>
</div>
<!-- button -->
<div class="button-container">
<el-button class="T1" @click="btnAction()">查询</el-button>
<el-button class="T1" @click="btnAdd()">新增</el-button>
<el-button class="T1" @click="deleteData()">删除</el-button>
</div>
<div class="button-container">
<el-button class="T1" @click="issued()">下发</el-button>
<el-button class="T1" @click="ExportList()">导出</el-button>
</div>
<div class="button-containerTwo">
<el-button class="T1" type="danger" @click="forceComplete()"
>强制完成</el-button
>
<el-button class="T1" type="warning" @click="maintenance()"
>维护</el-button
>
</div>
</div>
<div class="dv-container-right">
<el-table
v-loading="listLoading"
:data="sysTable"
element-loading-text="Loading"
border
fit
height="700"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" align="center" width="55">
</el-table-column>
<el-table-column align="center" label="内部ID">
<template slot-scope="scope">
{{ scope.row.id }}
</template>
</el-table-column>
<el-table-column label="远程任务号" width="100">
<template slot-scope="scope">
{{ scope.row.remoteTask }}
</template>
</el-table-column>
<el-table-column label="远程前置任务号" width="120">
<template slot-scope="scope">
{{ scope.row.preRemoteTask }}
</template>
</el-table-column>
<el-table-column label="容器号">
<template slot-scope="scope">
{{ scope.row.barcode }}
</template>
</el-table-column>
<el-table-column label="任务类型">
<template slot-scope="scope">
{{ scope.row.type }}
</template>
</el-table-column>
<el-table-column label="任务状态">
<template slot-scope="scope">
{{ scope.row.status }}
</template>
</el-table-column>
<el-table-column label="起点">
<template slot-scope="scope">
{{ scope.row.from }}
</template>
</el-table-column>
<el-table-column label="终点">
<template slot-scope="scope">
{{ scope.row.to }}
</template>
</el-table-column>
<el-table-column label="途径点">
<template slot-scope="scope">
{{ scope.row.approachPoint }}
</template>
</el-table-column>
<el-table-column label="当前节点">
<template slot-scope="scope">
{{ scope.row.current }}
</template>
</el-table-column>
<el-table-column label="优先级">
<template slot-scope="scope">
{{ scope.row.priority }}
</template>
</el-table-column>
<el-table-column label="阶段">
<template slot-scope="scope">
{{ scope.row.mStage }}
</template>
</el-table-column>
<el-table-column label="任务回传">
<template slot-scope="scope">
{{ scope.row.commit }}
</template>
</el-table-column>
<el-table-column label="长">
<template slot-scope="scope">
{{ scope.row.length }}
</template>
</el-table-column>
<el-table-column label="宽">
<template slot-scope="scope">
{{ scope.row.width }}
</template>
</el-table-column>
<el-table-column label="高">
<template slot-scope="scope">
{{ scope.row.height }}
</template>
</el-table-column>
<el-table-column label="重">
<template slot-scope="scope">
{{ scope.row.weight }}
</template>
</el-table-column>
<el-table-column label="货物类型">
<template slot-scope="scope">
{{ scope.row.goodsType }}
</template>
</el-table-column>
<el-table-column label="仓库">
<template slot-scope="scope">
{{ scope.row.warehouseCode }}
</template>
</el-table-column>
</el-table>
<!-- 分页 -->
<div class="pagination-container">
<el-pagination
background
layout="prev, pager, next"
:current-page="queryConfig.currentPage"
:page-size="queryConfig.pageSize"
:total="total"
@current-change="handleCurrentChange"
>
</el-pagination>
</div>
</div>
<!-- 新增弹框 -->
<el-dialog title="主任务新增" :visible.sync="dialogFormVisible">
<div class="container">
<div class="box">
<div class="inner-left">任务类型:</div>
<div class="inner-right">
<el-select v-model="elAddDialog.task" placeholder="请选择">
<el-option
v-for="item in optionsAdd"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</div>
</div>
<div class="box">
<div class="inner-left">优先级:</div>
<div class="inner-right">
<el-input v-model="elAddDialog.priority" />
</div>
</div>
<div class="box">
<div class="inner-left">容器号:</div>
<div class="inner-right">
<el-input v-model="elAddDialog.barcode" />
</div>
</div>
<div class="box">
<div class="inner-left">起点:</div>
<div class="inner-right">
<el-input v-model="elAddDialog.from" />
</div>
</div>
<div class="box">
<div class="inner-left">途径点:</div>
<div class="inner-right">
<el-input v-model="elAddDialog.approachPoint" />
</div>
</div>
<div class="box">
<div class="inner-left">终点:</div>
<div class="inner-right">
<el-input v-model="elAddDialog.to" />
</div>
</div>
<div class="box">
<div class="inner-left">仓库:</div>
<div class="inner-right">
<el-input v-model="elAddDialog.warehouseCode" :disabled="true" />
</div>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="taskAdd()">创 建</el-button>
<el-button @click="dialogFormVisible = false">取 消</el-button>
</div>
</el-dialog>
<el-dialog title="主任务维护" :visible.sync="dialogFormVisibleTwo">
<div class="containerTwo">
<div class="box1">
<div class="dv-title" style="margin-left: 10px">
当前任务号:{{ maintenanceID
}}<el-button class="T1" style="margin-left: 10px"
>重置所有</el-button
>
</div>
<div></div>
</div>
<div class="box2">
<div class="small-box">
<div class="dv-title">远程任务维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">远程任务号:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
<div class="inner-inner-box2">
<div class="dv-maintenance-text">前置远程任务号:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
<div class="small-box">
<div class="dv-title">位置维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">起点:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
<div class="inner-inner-box2">
<div class="dv-maintenance-text">终点:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
<div class="small-box">
<div class="dv-title">阶段维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">任务执行阶段:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
<div class="inner-inner-box2"></div>
</div>
</div>
<div class="small-box">
<div class="dv-title">途径点维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">途径点:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
<div class="inner-inner-box2">
<div class="dv-maintenance-text">添加途径点:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
<div class="small-box">
<div class="dv-title">状态维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">任务状态:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
<div class="small-box">
<div class="dv-title">优先级维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">优先级:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
<div class="small-box">
<div class="dv-title">当前设备维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">当前设备:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
<div class="small-box">
<div class="dv-title">回传维护</div>
<div class="inner-box2">
<div class="inner-inner-box1">
<div class="dv-maintenance-text">任务回传:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.taskNumber" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
</div>
<div class="box3">
<div class="dv-title">货物类别维护</div>
<div class="dv-maintenance2">
<div class="dv-maintenance2-left">
<div class="dv-maintenance-text">长:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.to" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
<div class="dv-maintenance2-right">
<div class="dv-maintenance-text">宽:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.to" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
<div class="dv-maintenance3">
<div class="dv-maintenance3-left">
<div class="dv-maintenance-text">高:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.to" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
<div class="dv-maintenance3-right">
<div class="dv-maintenance-text">重:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.to" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
<div class="dv-maintenance4">
<div class="dv-maintenance-text">货物类型:</div>
<div class="dv-maintenance-text2">
<el-input v-model="queryConfig.to" />
</div>
<div class="dv-maintenance-text3">
<el-button class="T1">修改</el-button>
</div>
</div>
</div>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="dialogFormVisibleTwo = false"
>创 建</el-button
>
<el-button @click="dialogFormVisibleTwo = false">取 消</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
<script>
import {
getHostType,
getTableList,
AddMTask,
DeleteTaskByIds,
SendTaskToWCS,
CompleteTask,
ExportMTask,
} from "@/api/table";
export default {
data() {
return {
sysTable: [],
// 查询条件
queryConfig: {
currentPage: 1,
pageSize: 10,
taskNumber: "",
remoteTask: "",
barcode: "",
from: "",
to: "",
},
//新增参数
elAddDialog: {
remoteTask: "",
preRemoteTask: "",
type: 0,
from: "",
to: "",
approachPoint: "",
barcode: "",
priority: 0,
warehouseCode: "CS0001",
platform: "WCS",
},
//弹出框参数
elMaintenance: {
remoteTask: "",
preRemoteTask: "",
from: "",
to: "",
mStage: "",
status: "",
priority: "",
current: "",
commit: "",
},
total: 0,
listLoading: false,
dialogFormVisible: false,
dialogFormVisibleTwo: false,
name: "",
options: [
{
value: "",
label: "全部",
},
],
optionsAdd: [],
value: "",
form: {
startTime: this.$moment()
.subtract(7, "days")
.format("YYYY-MM-DD 00:00:00"),
endTime: this.$moment().add(1, "days").format("YYYY-MM-DD 23:59:59"),
},
multipleSelection: [],
maintenanceID: null,
};
},
created() {
this.fetchData("Status");
this.getTableList();
},
methods: {
btnAction() {
this.getTableList();
},
//新增按钮
btnAdd() {
this.fetchData("Type");
this.dialogFormVisible = true;
},
//新增创建按钮
taskAdd() {
const params = this.elAddDialog;
this.listLoading = true;
AddMTask(params).then((response) => {
if (response.code == "Success") {
this.getTableList();
this.$message({
message: "恭喜你,这是一条成功消息",
type: "success",
});
}
});
},
//删除按钮
deleteData() {
if (this.multipleSelection.length == 0) {
this.$alert("请选择最少一条数据!", "标题名称", {
confirmButtonText: "确定",
});
} else {
let prams = [];
this.multipleSelection.forEach((x) => {
prams.push(x.id);
});
DeleteTaskByIds(prams).then((response) => {
if (response.code == "Success") {
this.getTableList();
this.$message({
message: response.msg,
type: "success",
});
}
});
}
},
//下发按钮
issued() {
if (this.multipleSelection.length == 0) {
this.$alert("请选择最少一条数据!", "标题名称", {
confirmButtonText: "确定",
});
} else {
let prams = [];
this.multipleSelection.forEach((x) => {
prams.push(x.id);
});
SendTaskToWCS(prams).then((response) => {
if (response.code == "Success") {
this.getTableList();
this.$message({
message: response.msg,
type: "success",
});
}
});
}
},
//导出按钮
ExportList() {
const params = {
pageNumber: this.queryConfig.currentPage,
perPageCount: this.queryConfig.pageSize,
queryConfig: {
taskNo: "",
remoteTask: "",
barcode: "",
from: "",
to: "",
taskStatus: "",
begin: this.form.startTime,
end: this.form.endTime,
},
};
this.listLoading = true;
ExportMTask(params).then((response) => {
this.listLoading = false;
});
},
//获取表格行数据
handleSelectionChange(val) {
this.multipleSelection = val;
},
// 状态数据
fetchData(data) {
let params = {};
if (data == "Type") {
params = {
Code: "MTaskType",
};
} else {
params = {
Code: "MTaskStatus",
};
}
getHostType(params).then((response) => {
response.data.dictDetails.forEach((x) => {
if (data == "Type") {
this.optionsAdd.push({ value: x.code, label: x.name });
if (this.optionsAdd.length > 0) {
this.elAddDialog.task = this.optionsAdd[0].value;
}
} else {
this.options.push({ value: x.code, label: x.name });
}
});
});
},
// 表格数据
getTableList() {
const params = {
pageNumber: this.queryConfig.currentPage,
perPageCount: this.queryConfig.pageSize,
queryConfig: {
taskNo: "",
remoteTask: "",
barcode: "",
from: "",
to: "",
taskStatus: "",
begin: this.form.startTime,
end: this.form.endTime,
},
};
this.listLoading = true;
getTableList(params).then((response) => {
// console.log(response.data.totalCount, "response.data.totalCount");
this.total = response.data.totalCount;
this.sysTable = response.data.data;
this.listLoading = false;
});
},
// 强制完成按钮
forceComplete() {
if (this.multipleSelection.length == 1) {
let prams = {
id: this.multipleSelection[0].id,
};
CompleteTask(prams).then((response) => {
if (response.code == "Success") {
this.getTableList();
this.$message({
message: response.msg,
type: "success",
});
}
});
} else {
this.elAlert();
}
},
// 维护按钮
maintenance() {
if (this.multipleSelection.length == 1) {
this.maintenanceID = this.multipleSelection[0].id;
this.dialogFormVisibleTwo = true;
} else {
this.elAlert();
}
},
handleCurrentChange(page) {
this.queryConfig.currentPage = page;
this.getTableList();
},
elAlert() {
this.$alert("请选择一条数据!", "标题名称", {
confirmButtonText: "确定",
});
},
},
};
</script>
<style scoped lang="scss">
.app-container-father {
width: 100%;
height: 100%;
margin: 0px;
padding: 0px;
display: flex;
.dv-container-left {
width: 20%;
background-color: #eeeeee;
height: 85vh;
// border-radius: 7px;
box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
overflow: auto;
.dv-container-left-component {
width: 100%;
display: flex;
.component-left {
width: 40%;
height: 60px;
display: flex;
justify-content: flex-end;
align-items: center;
}
.component-right {
width: 57%;
height: 60px;
display: flex;
justify-content: center;
align-items: center;
}
}
.button-container {
width: 90%;
margin: auto;
display: flex;
justify-content: center;
align-items: center;
.T1 {
width: 88px;
margin-top: 10px;
border: 1px solid #b3d8ff;
}
}
.button-containerTwo {
width: 90%;
margin: 20px auto;
display: flex;
justify-content: center;
align-items: center;
.T1 {
width: 50%;
font-size: 16px;
margin-top: 10px;
}
}
}
.dv-container-right {
width: 79%;
height: 88vh;
margin-left: 1%;
.pagination-container {
text-align: center; /* 使分页组件靠右 */
margin-top: 20px; /* 添加顶部间距 */
}
}
.container {
width: 100%; /* 大 div 宽度 */
display: flex; /* 使用 Flexbox 布局 */
flex-wrap: wrap; /* 允许换行 */
padding: 10px; /* 内边距 */
box-sizing: border-box; /* 包含内边距在内 */
}
.box {
width: 50%; /* 小 div 宽度为 50% */
height: 50px; /* 小 div 高度 */
margin: 5px 0; /* 上下外边距 */
display: flex; /* 嵌套使用 Flexbox */
}
.inner-left {
width: 40%; /* 内部左侧 div 宽度为 50% */
height: 100%; /* 高度为 100% */
display: flex; /* 使用 Flexbox */
justify-content: flex-end; /* 内容靠右 */
align-items: center; /* 垂直居中 */
padding-right: 5px; /* 右侧内边距 */
}
.inner-right {
width: 50%; /* 内部右侧 div 宽度为 50% */
height: 100%; /* 高度为 100% */
display: flex; /* 使用 Flexbox */
justify-content: flex-start; /* 内容靠左 */
align-items: center; /* 垂直居中 */
padding-left: 5px; /* 左侧内边距 */
}
.containerTwo {
width: 100%;
border: 1px solid #ccc; /* 大 div 的边框 */
overflow: auto;
margin-top: -30px;
.T1 {
width: 88px;
// margin-top: 10px;
border: 1px solid #b3d8ff;
}
.dv-title {
height: 30px; /* 第一个子 div 的高度 */
display: flex; /* 使用 Flexbox */
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
font-weight: 700;
}
.dv-maintenance-text {
width: 35%;
height: 100%;
display: flex;
justify-content: flex-end; /* 内容靠右 */
align-items: center; /* 垂直居中 */
}
.dv-maintenance-text2 {
width: 35%;
height: 100%;
display: flex;
justify-content: center; /* 内容靠右 */
align-items: center; /* 垂直居中 */
}
.dv-maintenance-text3 {
width: 30%;
height: 100%;
display: flex;
justify-content: center; /* 内容靠右 */
align-items: center; /* 垂直居中 */
}
}
.box1 {
width: 100%;
height: 50px; /* 修改后的高度 */
display: flex; /* 使用 Flexbox */
flex-wrap: wrap; /* 超出换行 */
align-items: center; /* 垂直居中对齐 */
}
.box2 {
width: 100%;
display: flex; /* 使用 Flexbox */
flex-wrap: wrap; /* 超出换行 */
align-items: center; /* 垂直居中对齐 */
.small-box {
width: 50%; /* 每个小 div 的宽度 */
box-sizing: border-box; /* 包含边框和内边距 */
border: 1px solid #ccc; /* 大 div 的边框 */
}
.inner-box2 {
height: 100px; /* 第二个子 div 的高度 */
display: flex; /* 使用 Flexbox */
flex-direction: column; /* 垂直排列子 div */
}
.inner-inner-box1 {
height: 45%; /* 第一个内层子 div 的高度 */
display: flex; /* 使用 Flexbox */
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
}
.inner-inner-box2 {
height: 50%; /* 第二个内层子 div 的高度 */
display: flex; /* 使用 Flexbox */
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
}
.inner-inner-box3 {
height: 100%; /* 第三个内层子 div 的高度 */
display: flex; /* 使用 Flexbox */
}
}
.box3 {
width: 70%;
height: 100px;
margin: auto;
.dv-maintenance1 {
width: 100%;
height: 30px;
display: flex;
justify-content: center; /* 水平居中 */
align-items: center; /* 垂直居中 */
border: 1px solid #ccc; /* 大 div 的边框 */
}
.dv-maintenance2 {
width: 100%;
height: 50px;
display: flex;
border: 1px solid #ccc; /* 大 div 的边框 */
.dv-maintenance2-left {
width: 50%;
height: 100%;
display: flex;
}
.dv-maintenance2-right {
width: 50%;
height: 100%;
display: flex;
}
}
.dv-maintenance3 {
width: 100%;
height: 50px;
display: flex;
border: 1px solid #ccc; /* 大 div 的边框 */
.dv-maintenance3-left {
width: 50%;
height: 100%;
display: flex;
}
.dv-maintenance3-right {
width: 50%;
height: 100%;
display: flex;
}
}
.dv-maintenance4 {
width: 50%;
height: 50px;
margin: auto;
display: flex; /* 使用 Flexbox */
justify-content: center; /* 内容靠左 */
align-items: center; /* 垂直居中对齐 */
border: 1px solid #ccc; /* 大 div 的边框 */
}
}
}
</style>