upperCloth.vue 22.7 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
<template>
	<div class="wms-ccs-container">
		<!-- 顶部区域:logo + 数控一体系统 + 运行/待机/故障状态灯 -->
		<div class="header">
			<div class="header-left">
				<img class="system-logo" src="@/assets/logo.png" />
				<div class="system-name">数控一体系统</div>
			</div>
			<div class="wms-title">机加库区</div>
			<div class="status-lights">
				<div class="light-item">
					<div class="light light-green"></div>
					<span class="light-text">运行</span>
				</div>
				<div class="light-item">
					<div class="light light-orange"></div>
					<span class="light-text">待机</span>
				</div>
				<div class="light-item">
					<div class="light light-red"></div>
					<span class="light-text">故障</span>
				</div>
			</div>
		</div>

		<!-- 状态栏区域:实时时间 + 三色状态灯 + 绿色库区切换按钮 -->
		<div class="status-bar">
			<div class="status-bar-left">
				<div class="status-item">
					<div class="status-title">当前时间</div>
					<div class="status-value big-value">{{ timeStr }}</div>
				</div>
				<!-- 设备状态项循环:核心修改-故障专属常驻提示框 -->
				<div class="status-item" v-for="(item, index) in deviceStatus" :key="index">
					<!-- 仅故障状态渲染提示框:手动触发+永久显示 -->

					<!-- 非故障状态:直接显示,无提示框(保持原样式) -->
					<div class="tooltip-trigger-content" v-if="item.equipmentStatusDescription != '故障'">
						<div class="status-title">{{ item.equipmentId }}</div>
						<div class="light-group">
							<div
								class="light light-green"
								:class="{
									'light-active': item.equipmentStatusDescription === '运行中',
									'light-fade': item.equipmentStatusDescription !== '运行中',
								}"
							></div>
							<div
								class="light light-orange"
								:class="{
									'light-active': item.equipmentStatusDescription === '空闲',
									'light-fade': item.equipmentStatusDescription !== '空闲',
								}"
							></div>
							<div
								class="light light-red"
								:class="{
									'light-active': item.equipmentStatusDescription === '故障',
									'light-fade': item.equipmentStatusDescription !== '故障',
								}"
							></div>
						</div>
					</div>

					<div class="tooltip-trigger-content" v-else @click.stop="device[`device${index}`] = !device[`device${index}`]">
						<div class="status-title">{{ item.equipmentId }}</div>
						<div class="light-group">
							<div
								class="light light-green"
								:class="{
									'light-active': item.equipmentStatusDescription === '运行中',
									'light-fade': item.equipmentStatusDescription !== '运行中',
								}"
							></div>
							<div
								class="light light-orange"
								:class="{
									'light-active': item.equipmentStatusDescription === '空闲',
									'light-fade': item.equipmentStatusDescription !== '空闲',
								}"
							></div>
							<div
								class="light light-red"
								:class="{
									'light-active': item.equipmentStatusDescription === '故障',
									'light-fade': item.equipmentStatusDescription !== '故障',
								}"
							></div>
						</div>
					</div>
					<el-popover v-if="item.equipmentStatusDescription === '故障'" placement="left" title="标题" effect="dark" content="Left Bottom 提示文字" trigger="manual" v-model="device[`device${index}`]"> </el-popover>
				</div>
			</div>
			<div class="status-item status-switch">
				<button class="search-btn green-btn">库区切换</button>
			</div>
		</div>

		<!-- 任务表格区域:保留所有原有样式(行高统一+两行省略) -->
		<div class="task-section">
			<div class="task-search">
				<div></div>
				<div class="search-btns">
					<button class="search-btn" :class="{ active: activeBtn === 'current' }" @click="handleSwitch">
						当前任务
					</button>
					<button class="search-btn" :class="{ active: activeBtn === 'history', gray: activeBtn !== 'history' }" @click="handleArea">
						历史任务
					</button>
				</div>
			</div>
			<div class="table-wrapper">
				<table class="task-table">
					<thead>
						<tr>
							<th>任务ID</th>
							<th>任务状态</th>
							<th>任务持续时间</th>
							<th>异常信息</th>
							<th>异常处理方案</th>
							<th>任务类型</th>
							<th>任务优先级</th>
							<th>巷道</th>
							<th>单据编码</th>
							<th>任务起始位置</th>
							<th>任务目标位置</th>
							<th>托盘编码</th>
							<th>任务执行顺序</th>
							<th>托盘当前位置</th>
							<th>执行设备ID</th>
							<th>设备状态</th>
							<th>设备运行模式</th>
							<th>设备当前位置</th>
							<th>任务阶段详情</th>
						</tr>
					</thead>
					<tbody>
						<tr
							v-for="(item, index) in taskList"
							:key="index"
							:class="{
								'green-text': item.taskDurationSeconds <= 10,
								'yellow-text': item.taskDurationSeconds > 10 && item.taskDurationSeconds < 60,
								'red-text': item.taskDurationSeconds >= 60,
							}"
							@click="drawer = true"
						>
							<td>{{ item.taskId }}</td>
							<td>{{ item.taskStatusDescription }}</td>
							<td>{{ item.taskDurationSecondsFormat }}</td>
							<td>{{ item.exceptionMessage }}</td>
							<td>{{ item.exceptionMessage }}</td>
							<td>{{ item.taskTypeDescription }}</td>
							<td>{{ item.taskPriority }}</td>
							<td>{{ item.roadway }}</td>
							<td>{{ item.orderCode }}</td>
							<td>{{ item.fromLocation }}</td>
							<td>{{ item.toLocation }}</td>
							<td>{{ item.containerCode }}</td>
							<td>{{ item.taskExecutionOrder }}</td>
							<td>{{ item.containerCurrentLocation }}</td>
							<td>{{ item.executionEquipmentId }}</td>
							<td>{{ item.equipmentStatusDescription }}</td>
							<td>{{ item.equipmentOperationMode }}</td>
							<td>{{ item.equipmentCurrentPosition }}</td>
							<td @click="drawer = true">操作</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>

		<!-- 底部摘要统计:保留所有原有功能 -->
		<div class="summary-section">
			<div class="summary-title">摘要统计</div>
			<div class="summary-content">
				<div class="summary-cards">
					<div class="summary-card">
						<div class="card-label">今日任务总量</div>
						<div class="card-value green-text">{{ summary.totalTask }}</div>
					</div>
					<div class="summary-card">
						<div class="card-label">进行中数</div>
						<div class="card-value green-text">{{ summary.uncompletedTask }}</div>
					</div>
					<div class="summary-card">
						<div class="card-label">完成数</div>
						<div class="card-value green-text">{{ summary.completedTask }}</div>
					</div>
					<div class="summary-card">
						<div class="card-label">平均耗时</div>
						<div class="card-value green-text">{{ summary.averageTaskDuration }}</div>
					</div>
					<div class="summary-card">
						<div class="card-label">异常数</div>
						<div class="card-value red-text">{{ summary.exceptionTask }}</div>
					</div>
				</div>
				<dv-decoration-2 :reverse="true" style="width:5px;height:150px;" />
				<div class="chart-wrapper">
					<div id="trendChart" class="chart-container"></div>
				</div>
			</div>
		</div>
		<el-drawer title="任务进度" :visible.sync="drawer" :direction="direction" :before-close="handleClose" size="15%" class="custom-black-drawer">
			<el-steps direction="vertical" finish-status="success" :active="2">
				<el-step title="WMS" description="wms任务下发完成"></el-step>
				<el-step title="WCS" description="wcs堆垛机取货完成"></el-step>
				<el-step title="AGV" description="AGV正在路上行走"></el-step>
			</el-steps>
		</el-drawer>
	</div>
</template>

<script>
import * as echarts from 'echarts'

export default {
	name: 'WmsCcs',
	data() {
		return {
			baseUrlOff: 'http://127.0.0.1:6002/api/BulletinBoard/Mes/V1/ReadData2',
			baseUrlOnLine: window.appConfig.baseUrlintOne,
			baseUrlOffTwo: 'http://127.0.0.1:6002/api/BulletinBoard/Mes/V1/ReadData1',
			baseUrlOnLineTwo: window.appConfig.baseUrlintTwo,
			baseUrlOffThree: 'http://127.0.0.1:6002/api/BulletinBoard/Mes/V1/ReadData3',
			baseUrlOnLineThree: window.appConfig.baseUrlintThree,
			sysData: {},
			searchKeyword: '',
			timeStr: '',
			timer: null,
			chartTimer: null,
			activeBtn: 'current',
			deviceStatus: [],
			summary: {},
			taskList: [],
			chartInstance: null,
			drawer: false,
			direction: 'rtl',
			open: true,
			device: {},
		}
	},
	beforeUnmount() {
		if (this.timer) clearInterval(this.timer)
		if (this.chartTimer) clearInterval(this.chartTimer)
		if (this.chartInstance) {
			this.chartInstance.dispose()
			this.chartInstance = null
		}
		window.removeEventListener('resize', () => {})
	},
	methods: {
		getAGVDataOne() {
			const opt = {
				urlSuffix: window.baseOnLineOrOff ? this.baseUrlOnLine : this.baseUrlOff,
				logTitle: '设备状态',
				isUrlALL: true,
				headers: window.baseOnLineOrOff,
				header: window.baseOnLineOrOff,
				type: 'post',
			}
			const callBackFn = (res) => {
				if (!this.ajaxSuccessDataBefore(res, opt.logTitle)) return
				res.data.result.forEach((x, index) => {
					if (x.equipmentStatusDescription == '故障') {
						this.device[`device${index}`] = true
					}
				})

				this.deviceStatus = res.data.result
			}
			''.ajax(this, opt, callBackFn)
		},
		getAGVDataTwo(index) {
			const opt = {
				urlSuffix: window.baseOnLineOrOff ? this.baseUrlOnLineTwo : this.baseUrlOffTwo,
				logTitle: '任务列表',
				isUrlALL: true,
				headers: window.baseOnLineOrOff,
				header: window.baseOnLineOrOff,
				type: 'post',
			}
			const callBackFn = (res) => {
				if (!this.ajaxSuccessDataBefore(res, opt.logTitle)) return
				res.data.result.forEach((x) => {
					x.taskDurationSeconds = Number((x.taskDurationSeconds / 60).toFixed(2))
				})
				this.taskList = res.data.result
			}
			''.ajax(this, opt, callBackFn)
		},
		getAGVDataThree() {
			const opt = {
				urlSuffix: window.baseOnLineOrOff ? this.baseUrlOnLineThree : this.baseUrlOffThree,
				logTitle: '任务耗时',
				isUrlALL: true,
				headers: window.baseOnLineOrOff,
				header: window.baseOnLineOrOff,
				type: 'post',
			}
			const callBackFn = (res) => {
				if (!this.ajaxSuccessDataBefore(res, opt.logTitle)) return
				this.summary = res.data.result
			}
			''.ajax(this, opt, callBackFn)
		},
		ajaxSuccessDataBefore(res, title) {
			if (!res || !res.data || res.data.result == null || res.data.result.length === 0) {
				this.sysData = []
				''.Log(`${title}无数据`, 'getData')
				return false
			}
			return true
		},
		handleSwitch() {
			this.activeBtn = 'current'
			this.getAGVDataTwo(1)
		},
		handleArea() {
            this.activeBtn = 'history'
            this.getAGVDataTwo(2)
		},
		updateTime() {
			const now = new Date()
			const padZero = (num) => num.toString().padStart(2, '0')
			const year = now.getFullYear()
			const month = padZero(now.getMonth() + 1)
			const day = padZero(now.getDate())
			const hour = padZero(now.getHours())
			const minute = padZero(now.getMinutes())
			const second = padZero(now.getSeconds())
			this.timeStr = `${year}-${month}-${day} ${hour}:${minute}:${second}`
		},
		initChart() {
			const chartDom = document.getElementById('trendChart')
			if (!chartDom) return
			this.chartInstance = echarts.init(chartDom)
			const now = new Date()
			const hour = now.getHours()
			const minute = now.getMinutes()
			const currentX = hour + minute / 60
			const xAxisMax = currentX > Math.floor(currentX) ? hour + 1 : hour
			const labelMap = {}
			const tickMap = {}
			for (let i = 0; i <= xAxisMax; i++) {
				labelMap[i] = `${i}时`
				tickMap[i] = true
			}
			const option = {
				backgroundColor: 'transparent',
				tooltip: {
					trigger: 'axis',
					textStyle: { color: '#ffffff' },
					backgroundColor: 'rgba(0, 30, 66, 0.8)',
					borderColor: '#0077b6',
					borderWidth: 1,
					formatter: function(params) {
						const xValue = params[0].data[0]
						const h = Math.floor(xValue)
						const m = Math.round((xValue - h) * 60)
						const timeText = m === 0 ? `${h}时` : `${h}时${m}分`
						return `<br>任务结束时间:${timeText}<br>任务耗时:${params[0].data[1]}/小时`
					},
				},
				legend: {
					data: ['任务耗时', '异常数'],
					textStyle: { color: '#90e0ef' },
				},
				grid: {
					left: '3%',
					right: '4%',
					bottom: '3%',
					top: '15%',
					containLabel: true,
				},
				xAxis: {
					type: 'value',
					min: 0,
					max: xAxisMax,
					interval: 1,
					axisLine: { lineStyle: { color: '#0077b6' } },
					axisLabel: {
						color: '#90e0ef',
						formatter: function(value) {
							return labelMap[value] || ''
						},
					},
					splitLine: { show: false },
				},
				yAxis: {
					type: 'value',
					axisLine: { lineStyle: { color: '#0077b6' } },
					axisLabel: { color: '#90e0ef' },
					splitLine: { show: false },
				},
				series: [
					{
						name: '任务耗时',
						type: 'line',
						data: [
							[0.5, 120],
							[5.2, 132],
							[8.7, 101],
							[12.5, 134],
							[16.35, 90],
							[16.8, 230],
							[xAxisMax, 150],
						],
						lineStyle: { color: '#00ff9d', width: 2 },
						itemStyle: { color: '#00ff9d' },
						symbol: 'circle',
						symbolSize: 6,
						areaStyle: { color: 'rgba(0, 255, 157, 0.1)' },
					},
				],
			}
			this.chartInstance.setOption(option)
			window.addEventListener('resize', () => {
				if (this.chartInstance) this.chartInstance.resize()
			})
		},
		handleClose(done) {
			done()
		},
		intInterval: function() {
			''.intInterval(this, this.sysInitTimeNum, () => {
				this.getAGVDataOne()
				this.getAGVDataTwo()
				this.getAGVDataThere()
			})

			setInterval(() => {
				this.getAGVDataOne()
				this.getAGVDataTwo()
				this.getAGVDataThree()
				this.updateTime()
			}, 2000)
		},
	},
	mounted() {
		this.getAGVDataOne()
		this.getAGVDataTwo()
		this.getAGVDataThree()
		this.updateTime()
		this.initChart()
		//this.intInterval()
		this.chartTimer = setInterval(() => {
			this.initChart()
		}, 60 * 1000)
		window.addEventListener('resize', () => {
			if (this.chartInstance) {
				this.chartInstance.resize()
			}
		})
	},
}
</script>

<style scoped>
/* 全局基础样式:保留所有原有样式 */
html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.wms-ccs-container {
	background-color: #000814;
	color: #e2e8f0;
	font-family: '微软雅黑', sans-serif;
	height: 100vh;
	width: 100vw;
	display: flex;
	flex-direction: column;
	padding: 10px;
	box-sizing: border-box;
	background-image: linear-gradient(145deg, #00122e 0%, #000814 100%);
}
.wms-ccs-container * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* 顶部区域样式:保留所有原有样式 */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	flex-shrink: 0;
	border-bottom: 1px solid #00509d;
	padding-bottom: 8px;
}
.header-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}
.system-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	background-color: transparent;
}
.system-name {
	font-size: 18px;
	font-weight: bold;
	color: #00b4d8;
}
.wms-title {
	font-size: 2.7vw;
	font-weight: bold;
	color: #ffffff;
	text-shadow: 0 0 8px rgba(0, 196, 255, 0.5);
}
.status-lights {
	display: flex;
	gap: 15px;
	align-items: center;
}
.light-item {
	display: flex;
	align-items: center;
	gap: 5px;
}
.light {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	margin: 0 4px;
	transition: all 0.2s ease;
	display: inline-block;
}
.light-green {
	background-color: #00ff9d;
}
.light-orange {
	background-color: #ffc107;
}
.light-red {
	background-color: #ff2d55;
}
.light-active {
	opacity: 1;
	box-shadow: 0 0 8px currentColor;
	color: inherit;
	transform: scale(1.3);
	border: 1px solid #fff;
}
.light-fade {
	opacity: 0.5;
}
.light-text {
	font-size: 14px;
	color: #ffffff;
	white-space: nowrap;
}

/* 状态栏区域样式:新增故障提示框专属样式,其余保留 */
.status-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding: 10px 0;
	border-bottom: 1px solid #00509d;
	width: 100%;
	flex-shrink: 0;
}
.status-bar-left {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex: 1;
	gap: 20px;
}
.status-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: center;
}
.tooltip-trigger-content {
	display: flex;
	flex-direction: column;
	gap: 5px;
	align-items: center;
}
.status-title {
	font-size: 16px;
	color: #90e0ef;
	text-align: center;
}
.status-value {
	font-size: 16px;
	color: #ffffff;
	font-weight: 500;
}
.big-value {
	font-size: 23px;
	font-weight: bold;
	color: #00ffd5;
	min-width: 180px;
	text-align: center;
}
.light-group {
	display: flex;
	gap: 8px;
}
.status-switch {
	margin-left: 20px;
}
.search-btn {
	background-color: #003554;
	border: 1px solid #00b4d8;
	color: #fff;
	padding: 6px 15px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}
.search-btn:hover {
	box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}
.search-btn.active {
	background-color: #00b4d8;
	border-color: #00e5ff;
	box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}
.search-btn.active:hover {
	background-color: #0096c7;
	box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
.search-btn.gray {
	background-color: #003554;
	border-color: #0077b6;
}
.search-btn.green-btn {
	background-color: #00b42a;
	border-color: #00ff47;
}
.search-btn.green-btn:hover {
	background-color: #009a22;
	box-shadow: 0 0 8px rgba(0, 255, 71, 0.4);
}

/* 核心:故障提示框样式 - 红色边框+醒目文字+常驻不消失 */
.fault-tooltip .el-tooltip__popper {
	background-color: rgba(0, 0, 0, 0.95) !important; /* 更深的黑色,提升醒目度 */
	border: 2px solid #ff2d55 !important; /* 故障红色边框,与状态灯呼应 */
	color: #ff2d55 !important; /* 红色文字,突出故障提醒 */
	font-weight: bold !important;
	padding: 8px 12px !important;
	box-shadow: 0 0 10px rgba(255, 45, 85, 0.5) !important; /* 红色光晕,强化警示 */
	pointer-events: none !important; /* 禁止点击关闭,确保常驻 */
}
/* 隐藏提示框小箭头(可选,故障提示框无需箭头,更简洁) */
.fault-tooltip .el-tooltip__popper .el-tooltip__arrow {
	display: none !important;
}

/* 任务表格区域:保留所有原有样式(行高统一+两行省略) */
.task-section {
	background-color: rgba(0, 20, 46, 0.8);
	border: 1px solid #00509d;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.task-search {
	display: flex;
	justify-content: space-between;
	margin-bottom: 15px;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}
.table-wrapper {
	flex: 1;
	overflow-y: auto;
	overflow-x: auto;
}
.task-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1800px;
	background-color: rgba(0, 15, 38, 0.9);
	table-layout: fixed;
}
.task-table th {
	padding: 10px 5px;
	text-align: center;
	font-size: 13px;
	border: 1px solid #00509d;
	background-color: #003554;
	color: #00e5ff;
	font-weight: bold;
	position: sticky;
	top: 0;
	z-index: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 50px;
	line-height: 50px;
}
.task-table td {
	padding: 8px 5px;
	text-align: center;
	font-size: 13px;
	border: 1px solid #004080;
	white-space: normal;
	word-wrap: break-word;
	word-break: break-all;
	height: 50px;
	line-height: 1.6;
	max-height: 50px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: table-cell;
	vertical-align: middle;
}
.task-table th:nth-child(1),
.task-table th:nth-child(2),
.task-table th:nth-child(3),
.task-table th:nth-child(6),
.task-table th:nth-child(7),
.task-table th:nth-child(8),
.task-table th:nth-child(9),
.task-table th:nth-child(10),
.task-table th:nth-child(11),
.task-table th:nth-child(12),
.task-table th:nth-child(13),
.task-table th:nth-child(14),
.task-table th:nth-child(15),
.task-table th:nth-child(16),
.task-table th:nth-child(17),
.task-table th:nth-child(18),
.task-table th:nth-child(19),
.task-table td:nth-child(1),
.task-table td:nth-child(2),
.task-table td:nth-child(3),
.task-table td:nth-child(6),
.task-table td:nth-child(7),
.task-table td:nth-child(8),
.task-table td:nth-child(9),
.task-table td:nth-child(10),
.task-table td:nth-child(11),
.task-table td:nth-child(12),
.task-table td:nth-child(13),
.task-table td:nth-child(14),
.task-table td:nth-child(15),
.task-table td:nth-child(16),
.task-table td:nth-child(17),
.task-table td:nth-child(18),
.task-table td:nth-child(19) {
	width: 100px;
}
.task-table th:nth-child(4),
.task-table td:nth-child(4),
.task-table th:nth-child(5),
.task-table td:nth-child(5) {
	width: 200px;
}
.task-table tr:hover {
	background-color: rgba(0, 80, 157, 0.3);
}

/* 文字颜色样式:保留 */
.red-text {
	color: #ff2d55 !important;
}
.green-text {
	color: #00ff9d !important;
}
.yellow-text {
	color: #ffc107 !important;
}

/* 底部摘要统计:保留所有原有样式 */
.summary-section {
	background-color: rgba(0, 20, 46, 0.8);
	border: 1px solid #00509d;
	border-radius: 8px;
	padding: 15px;
	flex-shrink: 0;
}
.summary-title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 15px;
	color: #00e5ff;
	text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}
.summary-content {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 100%;
}
.summary-cards {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex: 6;
	flex-wrap: wrap;
	gap: 20px;
}
.summary-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	min-width: 80px;
}
.card-label {
	font-size: 14px;
	color: #90e0ef;
	text-align: center;
}
.card-value {
	font-size: 24px;
	font-weight: bold;
	text-align: center;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.chart-wrapper {
	flex: 4;
	height: 180px;
}
.chart-container {
	width: 100%;
	height: 100%;
}

/* 滚动条样式:保留 */
.table-wrapper::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
.table-wrapper::-webkit-scrollbar-thumb {
	background-color: #0077b6;
	border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-track {
	background-color: #001e3c;
}

/* 响应式适配:保留所有原有样式 */
@media (max-width: 1200px) {
	.system-logo {
		width: 40px;
		height: 40px;
	}
	.status-bar-left {
		gap: 15px;
	}
	.big-value {
		font-size: 14px;
		min-width: 160px;
	}
	.summary-content {
		gap: 15px;
	}
	.summary-cards {
		gap: 15px;
	}
	.card-value {
		font-size: 20px;
	}
	.chart-wrapper {
		height: 160px;
	}
}
@media (max-width: 768px) {
	.system-logo {
		width: 32px;
		height: 32px;
	}
	.status-bar {
		flex-wrap: wrap;
	}
	.status-bar-left {
		width: 100%;
		margin-bottom: 10px;
		gap: 10px;
	}
	.big-value {
		font-size: 12px;
		min-width: 140px;
	}
	.status-switch {
		width: 100%;
		text-align: right;
	}
	.summary-content {
		flex-direction: column;
	}
	.summary-cards {
		width: 100%;
	}
	.chart-wrapper {
		width: 100%;
		height: 140px;
	}
	.summary-card {
		min-width: 60px;
	}
	.card-value {
		font-size: 18px;
	}
}
</style>