File size: 39,122 Bytes
9284c20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>实验室管理系统 - 实验协同规划设计</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#1E40AF',
                        secondary: '#3B82F6',
                        accent: '#93C5FD',
                        light: '#EFF6FF',
                        dark: '#1E293B',
                        success: '#22C55E',
                        warning: '#F59E0B',
                        danger: '#EF4444'
                    }
                }
            }
        }
    </script>
    <style>
        .task-node {
            transition: all 0.3s ease;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .task-node:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }
        .vertical-divider {
            height: 20px;
            border-left: 2px dotted #cbd5e1;
            margin: 0 15px;
        }
        .scrollable-table {
            max-height: 300px;
            overflow-y: auto;
        }
        .scrollable-table thead {
            position: sticky;
            top: 0;
            background-color: white;
            z-index: 10;
        }
        .grid-dot-bg {
            background-size: 30px 30px;
            background-image: radial-gradient(circle, #cbd5e1 1px, rgba(0, 0, 0, 0) 1px);
        }
    </style>
</head>
<body class="h-screen flex flex-col bg-gray-100">
    <!-- 顶部页头 -->
    <header class="bg-primary text-white py-4 px-6 flex items-center justify-between shadow-md">
        <div class="flex items-center">
            <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='11' r='3'/%3E%3Cpath d='M17.7 16.4a9 9 0 1 0-11.4 0'/%3E%3C/svg%3E" 
                 class="w-8 h-8 mr-3"> 
            <h1 class="text-xl font-bold">实验室管理系统</h1>
        </div>
        <h2 class="text-lg font-semibold">实验协同规划设计</h2>
        <div class="relative" id="userDropdown">
            <div class="flex items-center cursor-pointer">
                <img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4.42 0-8 3.58-8 8h16c0-4.42-3.58-8-8-8z'/%3E%3C/svg%3E" 
                     class="w-8 h-8 rounded-full bg-secondary">
                <span class="ml-2">admin</span>
                <i class="fas fa-chevron-down ml-2 text-sm"></i>
            </div>
            <div class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 text-dark hidden z-50" id="dropdownMenu">
                <a href="#" class="block px-4 py-2 hover:bg-gray-100"><i class="fas fa-user mr-2"></i>个人中心</a>
                <a href="#" class="block px-4 py-2 hover:bg-gray-100"><i class="fas fa-cog mr-2"></i>系统设置</a>
                <a href="#" class="block px-4 py-2 text-red-500 hover:bg-red-50"><i class="fas fa-sign-out-alt mr-2"></i>退出登录</a>
            </div>
        </div>
    </header>

    <!-- 主内容区域 -->
    <div class="flex flex-1 overflow-hidden">
        <!-- 左侧导航栏 -->
        <aside class="w-64 bg-gray-800 text-white flex-shrink-0 overflow-y-auto">
            <nav class="py-4">
                <ul>
                    <li>
                        <a href="#" class="block py-3 px-6 hover:bg-gray-700"><i class="fas fa-calendar-alt mr-2"></i>实验计划管理</a>
                    </li>
                    <li>
                        <a href="#" class="block py-3 px-6 hover:bg-gray-700"><i class="fas fa-tasks mr-2"></i>实验任务管理</a>
                    </li>
                    <li class="bg-primary">
                        <a href="#" class="block py-3 px-6"><i class="fas fa-project-diagram mr-2"></i>实验协同规划设计</a>
                    </li>
                    <li>
                        <a href="#" class="block py-3 px-6 hover:bg-gray-700"><i class="fas fa-flask mr-2"></i>实验设备管理</a>
                    </li>
                    <li>
                        <a href="#" class="block py-3 px-6 hover:bg-gray-700"><i class="fas fa-map-marked-alt mr-2"></i>实验场地管理</a>
                    </li>
                    <li class="mt-6">
                        <a href="#" class="block py-3 px-6 hover:bg-gray-700"><i class="fas fa-cog mr-2"></i>系统设置</a>
                    </li>
                </ul>
            </nav>
        </aside>

        <!-- 右侧主内容区 -->
        <main class="flex-1 overflow-y-auto p-6 bg-gray-50">
            <!-- 顶部信息卡 -->
            <div class="bg-white rounded-lg shadow-md p-5 mb-6 border-l-4 border-success">
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                    <div>
                        <p class="text-gray-600"><i class="fas fa-hashtag mr-2"></i>实验任务编号</p>
                        <p class="font-semibold">TASK-20250701-001</p>
                    </div>
                    <div>
                        <p class="text-gray-600"><i class="fas fa-flask mr-2"></i>实验名称</p>
                        <p class="font-semibold">高温应力测试任务</p>
                    </div>
                    <div>
                        <p class="text-gray-600"><i class="fas fa-cube mr-2"></i>所属型号</p>
                        <p class="font-semibold">XJ-78</p>
                    </div>
                    <div>
                        <p class="text-gray-600"><i class="fas fa-tag mr-2"></i>实验类别</p>
                        <p class="font-semibold">环境</p>
                    </div>
                    <div>
                        <p class="text-gray-600"><i class="fas fa-calendar-day mr-2"></i>实验时间</p>
                        <p class="font-semibold">2025-07-01 至 2025-07-20</p>
                    </div>
                    <div>
                        <p class="text-gray-600"><i class="fas fa-circle mr-2"></i>状态</p>
                        <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-semibold bg-green-100 text-green-800">
                            <span class="w-2 h-2 rounded-full bg-green-500 mr-2"></span>进行中
                        </span>
                    </div>
                </div>
            </div>

            <!-- 任务结构设计模块 -->
            <div class="bg-white rounded-lg shadow-md p-5 mb-6">
                <div class="flex justify-between items-center mb-4">
                    <h3 class="text-lg font-bold text-primary"><i class="fas fa-sitemap mr-2"></i>实验任务结构设计</h3>
                    <div class="space-x-2">
                        <button class="btn-template px-3 py-1.5 bg-secondary text-white rounded-md hover:bg-blue-600">
                            <i class="fas fa-save mr-1"></i>保存为模板
                        </button>
                        <button class="btn-template px-3 py-1.5 bg-accent text-primary rounded-md hover:bg-blue-200">
                            <i class="fas fa-file-import mr-1"></i>从模板导入
                        </button>
                    </div>
                </div>
                <div class="grid-dot-bg rounded-lg p-4">
                    <div class="flex">
                        <div class="relative">
                            <!-- 任务节点 -->
                            <div class="task-node bg-white rounded-lg border border-primary shadow p-4 w-60 text-center cursor-pointer">
                                <div class="font-bold">高温应力测试</div>
                                <div class="text-sm text-gray-500">负责人: 李明</div>
                                <div class="text-xs mt-1 text-cyan-600">2025-07-01 至 2025-07-20</div>
                            </div>
                            <!-- 连接线 -->
                            <div class="absolute top-full left-1/2 transform -translate-x-1/2 w-0.5 h-4 bg-primary"></div>
                        </div>
                    </div>
                    
                    <!-- 子任务行 -->
                    <div class="flex justify-center mt-4">
                        <div class="flex">
                            <div class="relative">
                                <div class="absolute top-0 left-1/2 transform -translate-x-1/2 w-0.5 h-4 bg-primary"></div>
                                <div class="task-node bg-white rounded-lg border border-blue-300 shadow p-4 w-56 text-center cursor-pointer">
                                    <div class="font-bold">前期准备</div>
                                    <div class="text-sm text-gray-500">负责人: 张伟</div>
                                    <div class="text-xs mt-1 text-cyan-600">2025-07-01 至 2025-07-05</div>
                                </div>
                                <div class="absolute top-full left-1/2 transform -translate-x-1/2 w-0.5 h-4 bg-primary"></div>
                            </div>
                        </div>
                        <div class="vertical-divider"></div>
                        <div class="relative">
                            <div class="task-node bg-white rounded-lg border border-blue-300 shadow p-4 w-56 text-center cursor-pointer">
                                <div class="font-bold">设备调试</div>
                                <div class="text-sm text-gray-500">负责人: 王磊</div>
                                <div class="text-xs mt-1 text-cyan-600">2025-07-03 至 2025-07-07</div>
                            </div>
                            <div class="absolute top-full left-1/2 transform -translate-x-1/2 w-0.5 h-4 bg-primary"></div>
                        </div>
                        <div class="vertical-divider"></div>
                        <div class="relative">
                            <div class="task-node bg-white rounded-lg border border-blue-300 shadow p-4 w-56 text-center cursor-pointer">
                                <div class="font-bold">测试执行</div>
                                <div class="text-sm text-gray-500">负责人: 赵敏</div>
                                <div class="text-xs mt-1 text-cyan-600">2025-07-08 至 2025-07-15</div>
                            </div>
                            <div class="absolute top-full left-1/2 transform -translate-x-1/2 w-0.5 h-4 bg-primary"></div>
                        </div>
                        <div class="vertical-divider"></div>
                        <div class="relative">
                            <div class="task-node bg-white rounded-lg border border-blue-300 shadow p-4 w-56 text-center cursor-pointer">
                                <div class="font-bold">数据分析</div>
                                <div class="text-sm text-gray-500">负责人: 孙芳</div>
                                <div class="text-xs mt-1 text-cyan-600">2025-07-16 至 2025-07-20</div>
                            </div>
                            <div class="absolute top-full left-1/2 transform -translate-x-1/2 w-0.5 h-4 bg-primary"></div>
                        </div>
                    </div>

                    <!-- 第三级子任务 -->
                    <div class="flex justify-center mt-4 mb-4">
                        <div class="flex space-x-8">
                            <div class="task-node bg-white rounded-lg shadow p-3 w-40 text-center cursor-pointer">
                                <div>设备采购</div>
                                <div class="text-xs text-gray-500">预计: 3天</div>
                            </div>
                            <div class="task-node bg-white rounded-lg shadow p-3 w-40 text-center cursor-pointer">
                                <div>场地布置</div>
                                <div class="text-xs text-gray-500">预计: 2天</div>
                            </div>
                            <div class="task-node bg-white rounded-lg shadow p-3 w-40 text-center cursor-pointer">
                                <div>材料准备</div>
                                <div class="text-xs text-gray-500">预计: 3天</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 任务操作按钮组 -->
                <div class="flex justify-center mt-8 gap-2">
                    <button class="px-3 py-1.5 bg-green-100 text-green-700 rounded-md hover:bg-green-200">
                        <i class="fas fa-plus mr-1"></i>新增子任务
                    </button>
                    <button class="px-3 py-1.5 bg-blue-100 text-blue-700 rounded-md hover:bg-blue-200">
                        <i class="fas fa-link mr-1"></i>前置任务
                    </button>
                    <button class="px-3 py-1.5 bg-indigo-100 text-indigo-700 rounded-md hover:bg-indigo-200">
                        <i class="fas fa-link mr-1"></i>后置任务
                    </button>
                    <button class="px-3 py-1.5 bg-yellow-100 text-yellow-700 rounded-md hover:bg-yellow-200">
                        <i class="fas fa-arrow-up mr-1"></i>升级
                    </button>
                    <button class="px-3 py-1.5 bg-orange-100 text-orange-700 rounded-md hover:bg-orange-200">
                        <i class="fas fa-arrow-down mr-1"></i>降级
                    </button>
                    <button class="px-3 py-1.5 bg-red-100 text-red-700 rounded-md hover:bg-red-200">
                        <i class="fas fa-trash mr-1"></i>删除
                    </button>
                </div>
            </div>

            <!-- 可折叠的网格布局 -->
            <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
                <!-- 实验人员规划模块 -->
                <div class="bg-white rounded-lg shadow-md p-5 col-span-1">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-bold text-primary"><i class="fas fa-users mr-2"></i>实验人员规划</h3>
                        <button class="btn-template px-3 py-1.5 bg-success text-white rounded-md hover:bg-green-600">
                            <i class="fas fa-user-plus mr-1"></i>添加人员
                        </button>
                    </div>
                    <div class="scrollable-table">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead class="bg-blue-50">
                                <tr>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">姓名</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">角色</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">所属部门</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">李明</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-purple-100 text-purple-800">负责人</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">材料实验室</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <select class="px-2 py-1 rounded-md border border-gray-300">
                                            <option>全权限</option>
                                            <option selected>可编辑</option>
                                            <option>只读</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">张伟</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">实验员</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">测试部</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <select class="px-2 py-1 rounded-md border border-gray-300">
                                            <option>全权限</option>
                                            <option selected>可编辑</option>
                                            <option>只读</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">王磊</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">观察员</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">质量部</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <select class="px-2 py-1 rounded-md border border-gray-300">
                                            <option>全权限</option>
                                            <option>可编辑</option>
                                            <option selected>只读</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">赵敏</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-blue-100 text-blue-800">实验员</span>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">测试部</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <select class="px-2 py-1 rounded-md border border-gray-300">
                                            <option>全权限</option>
                                            <option selected>可编辑</option>
                                            <option>只读</option>
                                        </select>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- 实验件选择模块 -->
                <div class="bg-white rounded-lg shadow-md p-5 col-span-1">
                    <div class="flex justify-between items-center mb-4">
                        <h3 class="text-lg font-bold text-primary"><i class="fas fa-box-open mr-2"></i>实验件选择</h3>
                        <div>
                            <input type="text" placeholder="搜索实验件..." class="px-3 py-1.5 border rounded-md mr-2">
                            <button class="btn-template px-3 py-1.5 bg-primary text-white rounded-md hover:bg-blue-700">
                                <i class="fas fa-check mr-1"></i>确认选择
                            </button>
                        </div>
                    </div>
                    <div class="scrollable-table">
                        <table class="min-w-full divide-y divide-gray-200">
                            <thead class="bg-blue-50">
                                <tr>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                        <input type="checkbox" class="rounded">
                                    </th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">实验件编号</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">名称</th>
                                    <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                </tr>
                            </thead>
                            <tbody class="bg-white divide-y divide-gray-200">
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <input type="checkbox" class="rounded">
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">SP-2025-078</td>
                                    <td class="px-4 py-3 whitespace-nowrap">高温传感器</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">可用</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <input type="checkbox" class="rounded" checked>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">SP-2025-101</td>
                                    <td class="px-4 py-3 whitespace-nowrap">受力测试板</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">可用</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <input type="checkbox" class="rounded">
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">SP-2025-045</td>
                                    <td class="px-4 py-3 whitespace-nowrap">高温保护罩</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">借出</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <input type="checkbox" class="rounded" checked>
                                    </td>
                                    <td class="px-4 py-3 whitespace-nowrap">SP-2025-112</td>
                                    <td class="px-4 py-3 whitespace-nowrap">应力检测装置</td>
                                    <td class="px-4 py-3 whitespace-nowrap">
                                        <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">可用</span>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- 实验资源配置模块 -->
                <div class="bg-white rounded-lg shadow-md p-5 col-span-1">
                    <h3 class="text-lg font-bold text-primary mb-4"><i class="fas fa-server mr-2"></i>实验资源配置</h3>
                    
                    <div class="mb-6">
                        <h4 class="font-semibold text-gray-700 mb-3"><i class="fas fa-microchip mr-2"></i>可用设备</h4>
                        <div class="scrollable-table">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-blue-50">
                                    <tr>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">设备名称</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">编号</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">校验有效期</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">高温试验箱</td>
                                        <td class="px-4 py-3 whitespace-nowrap">DEV-202</td>
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">正常</span>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">2026-05-31</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">应力测试仪</td>
                                        <td class="px-4 py-3 whitespace-nowrap">DEV-309</td>
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">待校准</span>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap text-amber-600">2025-08-15</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">数据采集器</td>
                                        <td class="px-4 py-3 whitespace-nowrap">DEV-456</td>
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">正常</span>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">2026-03-10</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">热成像仪</td>
                                        <td class="px-4 py-3 whitespace-nowrap">DEV-521</td>
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">维护中</span>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap text-gray-400">2025-11-20</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="font-semibold text-gray-700 mb-3"><i class="fas fa-map-pin mr-2"></i>可用场地</h4>
                        <div class="scrollable-table">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-blue-50">
                                    <tr>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">场地名称</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">容量</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">支持类型</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">高温实验室 A</td>
                                        <td class="px-4 py-3 whitespace-nowrap">4 人</td>
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">空闲</span>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">高温、应力</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">环境测试大厅</td>
                                        <td class="px-4 py-3 whitespace-nowrap">10 人</td>
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">空闲</span>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">综合环境</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap">安全实验区 B</td>
                                        <td class="px-4 py-3 whitespace-nowrap">6 人</td>
                                        <td class="px-4 py-3 whitespace-nowrap">
                                            <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">使用中</span>
                                        </td>
                                        <td class="px-4 py-3 whitespace-nowrap">安全实验</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <!-- 执行时间与交付物设计模块 -->
                <div class="bg-white rounded-lg shadow-md p-5 col-span-1">
                    <h3 class="text-lg font-bold text-primary mb-4"><i class="fas fa-clipboard-list mr-2"></i>执行时间与交付物设计</h3>
                    
                    <div class="mb-6">
                        <h4 class="font-semibold text-gray-700 mb-3"><i class="fas fa-clock mr-2"></i>任务时间安排</h4>
                        <div class="space-y-3">
                            <div class="flex items-center">
                                <div class="w-1/5 font-medium">前期准备</div>
                                <div class="w-4/5 flex items-center">
                                    <input type="date" class="p-1.5 border rounded mr-2" value="2025-07-01">
                                    <span class="mx-1"></span>
                                    <input type="date" class="p-1.5 border rounded ml-2" value="2025-07-05">
                                    <span class="mx-2 text-gray-500">(5天)</span>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <div class="w-1/5 font-medium">设备调试</div>
                                <div class="w-4/5 flex items-center">
                                    <input type="date" class="p-1.5 border rounded mr-2" value="2025-07-03">
                                    <span class="mx-1"></span>
                                    <input type="date" class="p-1.5 border rounded ml-2" value="2025-07-07">
                                    <span class="mx-2 text-gray-500">(5天)</span>
                                </div>
                            </div>
                            <div class="flex items-center">
                                <div class="w-1/5 font-medium">测试执行</div>
                                <div class="w-4/5 flex items-center">
                                    <input type="date" class="p-1.5 border rounded mr-2" value="2025-07-08">
                                    <span class="mx-1"></span>
                                    <input type="date" class="p-1.5 border rounded ml-2" value="2025-07-15">
                                    <span class="mx-2 text-gray-500">(8天)</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div>
                        <h4 class="font-semibold text-gray-700 mb-3"><i class="fas fa-file-alt mr-2"></i>交付物配置</h4>
                        <div class="space-y-3">
                            <div class="flex items-start bg-blue-50 p-3 rounded-md">
                                <div class="flex-1">
                                    <div class="font-medium">高温应力测试报告</div>
                                    <div class="text-sm text-gray-600">详细记录测试结果与分析</div>
                                </div>
                                <div class="text-right">
                                    <div class="font-medium">负责人: 孙芳</div>
                                    <div class="text-sm text-gray-600">截止: 2025-07-22</div>
                                </div>
                            </div>
                            <div class="flex items-start bg-blue-50 p-3 rounded-md">
                                <div class="flex-1">
                                    <div class="font-medium">测试原始数据包</div>
                                    <div class="text-sm text-gray-600">原始测试数据及处理过程</div>
                                </div>
                                <div class="text-right">
                                    <div class="font-medium">负责人: 王磊</div>
                                    <div class="text-sm text-gray-600">截止: 2025-07-18</div>
                                </div>
                            </div>
                        </div>
                        <button class="mt-3 px-3 py-1.5 bg-primary text-white rounded-md hover:bg-blue-700">
                            <i class="fas fa-plus mr-1"></i>添加交付物
                        </button>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <!-- 底部操作栏 -->
    <footer class="py-4 px-6 bg-white border-t flex justify-between">
        <button class="px-5 py-2 bg-gray-200 text-gray-700 rounded-md hover:bg-gray-300">
            <i class="fas fa-arrow-left mr-2"></i>返回任务总览
        </button>
        <button class="px-6 py-2 bg-primary text-white rounded-md font-medium hover:bg-blue-700">
            <i class="fas fa-save mr-2"></i>保存协同规划
        </button>
    </footer>

    <script>
        // 用户下拉菜单
        const dropdownToggle = document.getElementById('userDropdown');
        const dropdownMenu = document.getElementById('dropdownMenu');
        
        dropdownToggle.addEventListener('click', function() {
            dropdownMenu.classList.toggle('hidden');
        });
        
        // 关闭下拉菜单(点击其他地方时)
        window.addEventListener('click', function(event) {
            if (!dropdownToggle.contains(event.target) && 
                !dropdownMenu.contains(event.target) && 
                !dropdownMenu.classList.contains('hidden')) {
                dropdownMenu.classList.add('hidden');
            }
        });
        
        // 任务节点点击效果
        document.querySelectorAll('.task-node').forEach(node => {
            node.addEventListener('click', function() {
                // 移除现有选中状态
                document.querySelectorAll('.task-node').forEach(n => {
                    n.classList.remove('border-2', 'border-primary');
                });
                // 添加选中状态
                this.classList.add('border-2', 'border-primary');
                
                // 在实际应用中,这里会打开设置窗口
                console.log('打开任务节点设置');
            });
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=maomaobj/lab3" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>