0925
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="operation-inspection">
|
||||
<!-- 顶部导航选项卡 -->
|
||||
<div class="navigation-tabs">
|
||||
<div class="nav-tab" @click="handleInspection1">待办事项</div>
|
||||
<div class="nav-tab" @click="handleInspection2">巡检管理</div>
|
||||
@ -11,6 +12,7 @@
|
||||
<div class="nav-tab" @click="handleInspection7">运维组织</div>
|
||||
</div>
|
||||
|
||||
<!-- 头部操作按钮 -->
|
||||
<div class="header-container">
|
||||
<div class="header-actions">
|
||||
<el-button type="primary" class="export-btn">筛选</el-button>
|
||||
@ -27,7 +29,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 4. 筛选和操作区域 -->
|
||||
<!-- 筛选和操作区域 -->
|
||||
<div class="filter-and-actions">
|
||||
<div class="filters">
|
||||
<el-select v-model="filterStatus" placeholder="巡检状态" clearable>
|
||||
@ -54,13 +56,13 @@
|
||||
class="date-picker"
|
||||
></el-date-picker>
|
||||
|
||||
<el-button type="primary" icon="Search" class="search-btn"> 搜索 </el-button>
|
||||
<el-button type="primary" class="search-btn"> 搜索 </el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 5. 主内容区 -->
|
||||
<!-- 主内容区 -->
|
||||
<div class="content-container">
|
||||
<!-- 5.3 巡检记录(根据图片调整) -->
|
||||
<!-- 试验记录 -->
|
||||
<div v-if="activeTab === 'record'" class="record-container">
|
||||
<h2 class="section-title">试验记录与报告</h2>
|
||||
<p class="section-subtitle">截止至 {{ currentDate }}</p>
|
||||
@ -87,96 +89,62 @@
|
||||
|
||||
<!-- 试验记录列表 -->
|
||||
<div class="test-records">
|
||||
<!-- 数据库性能巡检记录 -->
|
||||
<div class="test-record-card passed">
|
||||
<!-- 动态生成试验记录卡片 -->
|
||||
<div
|
||||
v-for="(record, recordIndex) in testRecords"
|
||||
:key="record.id"
|
||||
class="test-record-card"
|
||||
:class="{ 'passed': record.status === 'completed', 'failed': record.status === 'failed' }"
|
||||
>
|
||||
<div class="record-header">
|
||||
<h3 class="record-title">数据库性能巡检</h3>
|
||||
<h3 class="record-title">{{ record.taskName || '试验任务' }}</h3>
|
||||
<p class="record-date">
|
||||
{{ testRecords[0].date }} <span class="record-time">耗时: {{ testRecords[0].duration }}</span>
|
||||
开始时间
|
||||
{{ formatDate(record.beginTime) }}
|
||||
<span class="record-time">计划完成时间: {{ record.planFinishTime ? formatDate(record.planFinishTime) : '未知' }}</span>
|
||||
</p>
|
||||
<span class="status-tag status-passed">通过</span>
|
||||
<span class="status-tag" :class="getStatusClass(record.status)">
|
||||
{{ getStatusText(record.status) }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- 试验进度 -->
|
||||
<div class="test-progress">
|
||||
<div class="progress-step active">
|
||||
<div class="step-number">1</div>
|
||||
<div class="step-name">准备环境</div>
|
||||
</div>
|
||||
<div class="progress-line active"></div>
|
||||
<div class="progress-step active">
|
||||
<div class="step-number">2</div>
|
||||
<div class="step-name">50%负载</div>
|
||||
</div>
|
||||
<div class="progress-line active"></div>
|
||||
<div class="progress-step active">
|
||||
<div class="step-number">3</div>
|
||||
<div class="step-name">80%负载</div>
|
||||
</div>
|
||||
<div class="progress-line active"></div>
|
||||
<div class="progress-step active">
|
||||
<div class="step-number">4</div>
|
||||
<div class="step-name">100%负载</div>
|
||||
</div>
|
||||
<!-- 动态生成试验进度步骤条 -->
|
||||
<div class="test-progress" v-if="record.nodes && record.nodes.length">
|
||||
<template v-for="(node, index) in sortedNodes(record.nodes)" :key="node.id">
|
||||
<div class="progress-step" :class="getNodeStatusClass(node.status, record.status)">
|
||||
<div class="step-number">{{ node.code }}</div>
|
||||
<div class="step-name">步骤名称:{{ node.name }}</div>
|
||||
<div class="step-name">预期试验目的:{{ node.intendedPurpose }}</div>
|
||||
</div>
|
||||
|
||||
<!-- 进度线,最后一个节点没有线 -->
|
||||
<div
|
||||
v-if="index < sortedNodes(record.nodes).length - 1"
|
||||
class="progress-line"
|
||||
:class="getLineStatusClass(index, sortedNodes(record.nodes), record.status)"
|
||||
></div>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<!-- 试验结果 -->
|
||||
<div class="test-result">
|
||||
<h4 class="result-title">试验结果</h4>
|
||||
<p class="result-content">系统在100%负载下稳定运行1小时,CPU平均使用率92%,内存使用率88%,无崩溃或异常重启现象。</p>
|
||||
<p class="result-details">
|
||||
平均响应时间: {{ testRecords[0].responseTime }} | 错误率: {{ testRecords[0].errorRate }} | 温度值: {{ testRecords[0].temperature }}
|
||||
<div class="test-result" :class="{ 'failure-analysis': record.status === 'failed' }">
|
||||
<h4 class="result-title">
|
||||
{{ record.status === 'failed' ? '失败原因分析' : '试验结果' }}
|
||||
</h4>
|
||||
|
||||
<p class="result-content">
|
||||
{{ record.status === 'failed' ? record.failReason || '未提供失败原因' : record.testFinal || '试验完成,未提供详细结果' }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="record-actions">
|
||||
<button class="operate-btn view-btn">查看详情</button>
|
||||
<button class="operate-btn report-btn">生成报告</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 1000用户并发测试记录 -->
|
||||
<div class="test-record-card failed">
|
||||
<div class="record-header">
|
||||
<h3 class="record-title">1000用户并发测试</h3>
|
||||
<p class="record-date">
|
||||
{{ testRecords[1].date }} <span class="record-time">耗时: {{ testRecords[1].duration }}</span>
|
||||
<p class="result-details" v-if="record.status !== 'failed'">
|
||||
计划时间: {{ formatDate(record.planBeginTime) }} | 进度: {{ record.progress }}% | 负责人:
|
||||
{{ record.personInfo?.userName || '未知' }}
|
||||
</p>
|
||||
<span class="status-tag status-failed">失败</span>
|
||||
</div>
|
||||
|
||||
<!-- 试验进度 -->
|
||||
<div class="test-progress">
|
||||
<div class="progress-step active">
|
||||
<div class="step-number">1</div>
|
||||
<div class="step-name">准备环境</div>
|
||||
</div>
|
||||
<div class="progress-line active"></div>
|
||||
<div class="progress-step active">
|
||||
<div class="step-number">2</div>
|
||||
<div class="step-name">300用户</div>
|
||||
</div>
|
||||
<div class="progress-line active"></div>
|
||||
<div class="progress-step active">
|
||||
<div class="step-number">3</div>
|
||||
<div class="step-name">500用户</div>
|
||||
</div>
|
||||
<div class="progress-line failed"></div>
|
||||
<div class="progress-step failed">
|
||||
<div class="step-number">4</div>
|
||||
<div class="step-name">800用户</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 失败原因分析 -->
|
||||
<div class="test-result failure-analysis">
|
||||
<h4 class="result-title">失败原因分析</h4>
|
||||
<p class="result-content">当并发用户数达到780人时,数据库连接耗尽,新用户无法建立数据库连接,导致系统响应超时。</p>
|
||||
|
||||
<!-- 改进建议 -->
|
||||
<div class="improvement-suggestion">
|
||||
<!-- 改进建议(仅失败时显示) -->
|
||||
<div class="improvement-suggestion" v-if="record.status === 'failed' && record.faileTips">
|
||||
<i class="fas fa-lightbulb"></i>
|
||||
<p>建议: 增加数据库连接池最大连接数,优化长连接超时时间,增加连接复用机制分析评估。</p>
|
||||
<p>建议: {{ record.faileTips }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -185,10 +153,13 @@
|
||||
<button class="operate-btn report-btn">生成报告</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 无数据提示 -->
|
||||
<div v-if="!testRecords.length" class="no-records">暂无试验记录数据</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 5.1 巡检计划表格 -->
|
||||
<!-- 巡检计划表格 -->
|
||||
<div v-if="activeTab === 'plan'" class="table-container">
|
||||
<el-table :data="planTableData" border>
|
||||
<el-table-column prop="name" label="计划名称" width="220">
|
||||
@ -228,7 +199,7 @@
|
||||
</el-table>
|
||||
</div>
|
||||
|
||||
<!-- 5.2 巡检任务表格 -->
|
||||
<!-- 巡检任务表格 -->
|
||||
<div v-if="activeTab === 'task'" class="table-container">
|
||||
<el-table :data="taskTableData" border>
|
||||
<el-table-column prop="name" label="任务名称" width="220"></el-table-column>
|
||||
@ -257,7 +228,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 6. 分页 -->
|
||||
<!-- 分页 -->
|
||||
<div class="pagination" v-if="activeTab !== 'record'">
|
||||
<p class="total-records">显示1到{{ pageSize }}条,共{{ totalRecords }}条记录</p>
|
||||
<el-pagination
|
||||
@ -275,11 +246,12 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed } from 'vue';
|
||||
import { ref, computed, onMounted } from 'vue';
|
||||
import router from '@/router';
|
||||
import { syrenwulist, syrenwujilu, syrenwuDetail } from '@/api/zhinengxunjian/shiyan/renwu';
|
||||
|
||||
// 1. 选项卡状态管理
|
||||
const activeTab = ref('record'); // 默认显示"巡检记录"
|
||||
const activeTab = ref('record'); // 默认显示"试验记录"
|
||||
const showFilter = ref(false);
|
||||
|
||||
// 2. 筛选条件
|
||||
@ -287,6 +259,11 @@ const filterStatus = ref('all');
|
||||
const filterType = ref('all');
|
||||
const dateRange = ref([]);
|
||||
|
||||
// 3. 试验记录数据
|
||||
const testRecords = ref([]);
|
||||
const planTableData = ref([]);
|
||||
const taskTableData = ref([]);
|
||||
|
||||
// 4. 当前日期
|
||||
const currentDate = computed(() => {
|
||||
const date = new Date();
|
||||
@ -297,28 +274,178 @@ const currentDate = computed(() => {
|
||||
|
||||
// 5. 统计数据
|
||||
const statData = ref({
|
||||
completed: 12,
|
||||
passRate: 83,
|
||||
pendingAnalysis: 3,
|
||||
avgDuration: '42分钟'
|
||||
completed: 0,
|
||||
passRate: 0,
|
||||
pendingAnalysis: 0,
|
||||
avgDuration: '0分钟'
|
||||
});
|
||||
|
||||
// 6. 试验记录数据
|
||||
const testRecords = ref([
|
||||
{
|
||||
date: '2025-06-15',
|
||||
duration: '1小时45分钟',
|
||||
responseTime: '1.2s',
|
||||
errorRate: '0%',
|
||||
temperature: '72°C'
|
||||
},
|
||||
{
|
||||
date: '2025-06-12',
|
||||
duration: '2小时10分钟'
|
||||
}
|
||||
]);
|
||||
// 6. 分页相关
|
||||
const currentPage = ref(1);
|
||||
const pageSize = ref(20);
|
||||
const totalRecords = ref(0);
|
||||
|
||||
// 9. 方法:切换顶部导航
|
||||
// 7. 方法:获取试验记录数据
|
||||
const getTestRecords = async () => {
|
||||
try {
|
||||
const response = await syrenwulist({
|
||||
projectId: 1,
|
||||
page: currentPage.value,
|
||||
size: pageSize.value
|
||||
});
|
||||
console.log('syrenwulist API响应:', response);
|
||||
|
||||
if (response && response.code === 200 && response.rows) {
|
||||
testRecords.value = response.rows;
|
||||
totalRecords.value = response.total;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取试验记录失败:', error);
|
||||
}
|
||||
};
|
||||
|
||||
// 8. 方法:获取统计数据
|
||||
const getStatisticsData = async () => {
|
||||
try {
|
||||
const response = await syrenwujilu({ projectId: 1 });
|
||||
console.log('syrenwujilu API响应:', response);
|
||||
|
||||
if (response && response.data) {
|
||||
// 映射API返回的数据到statData
|
||||
const apiData = response.data;
|
||||
|
||||
statData.value.completed = parseInt(apiData.finishCount) || 0;
|
||||
statData.value.passRate = parseFloat(apiData.passValue) || 0;
|
||||
statData.value.pendingAnalysis = parseInt(apiData.failCount) || 0;
|
||||
|
||||
// 格式化平均试验时长
|
||||
const avgTime = parseInt(apiData.averageTestTime) || 0;
|
||||
statData.value.avgDuration = `${avgTime}分钟`;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('获取统计数据失败:', error);
|
||||
}
|
||||
};
|
||||
|
||||
// 9. 辅助方法:对节点按code排序
|
||||
const sortedNodes = (nodes) => {
|
||||
return [...nodes].sort((a, b) => a.code - b.code);
|
||||
};
|
||||
|
||||
// 10. 辅助方法:格式化日期
|
||||
const formatDate = (dateString) => {
|
||||
if (!dateString) return '未知日期';
|
||||
const date = new Date(dateString);
|
||||
return `${date.getFullYear()}-${String(date.getMonth() + 1).padStart(2, '0')}-${String(date.getDate()).padStart(2, '0')}`;
|
||||
};
|
||||
|
||||
// 11. 辅助方法:格式化时长(假设单位为分钟)
|
||||
const formatDuration = (minutes) => {
|
||||
if (minutes < 60) {
|
||||
return `${minutes}分钟`;
|
||||
} else {
|
||||
const hours = Math.floor(minutes / 60);
|
||||
const mins = minutes % 60;
|
||||
return `${hours}小时${mins}分钟`;
|
||||
}
|
||||
};
|
||||
|
||||
// 12. 辅助方法:获取节点状态类名
|
||||
const getNodeStatusClass = (nodeStatus, recordStatus) => {
|
||||
// 节点状态: 2-未完成, 其他假设为已完成
|
||||
// 记录状态: 'failed'-失败, 'completed'-完成, 其他为进行中
|
||||
if (recordStatus === 'failed') {
|
||||
// 如果记录失败,找到失败阶段的节点
|
||||
return nodeStatus === '2' ? 'failed' : 'active';
|
||||
} else if (recordStatus === 'completed') {
|
||||
return 'active';
|
||||
} else {
|
||||
// 进行中状态,已完成的节点标记为active
|
||||
return nodeStatus !== '2' ? 'active' : '';
|
||||
}
|
||||
};
|
||||
|
||||
// 13. 辅助方法:获取进度线状态类名
|
||||
const getLineStatusClass = (index, nodes, recordStatus) => {
|
||||
// 如果记录失败,找到第一个未完成的节点前的线为active
|
||||
if (recordStatus === 'failed') {
|
||||
return nodes[index].status !== '2' ? 'active' : 'failed';
|
||||
} else if (recordStatus === 'completed') {
|
||||
return 'active';
|
||||
} else {
|
||||
// 进行中状态,已完成节点之间的线为active
|
||||
return nodes[index].status !== '2' ? 'active' : '';
|
||||
}
|
||||
};
|
||||
|
||||
// 14. 辅助方法:获取进度颜色
|
||||
const getProgressColor = (status) => {
|
||||
const colorMap = {
|
||||
'drafted': '#e5e7eb',
|
||||
'in-progress': '#165dff',
|
||||
'completed': '#00b42a',
|
||||
'paused': '#86909c'
|
||||
};
|
||||
return colorMap[status] || '#e5e7eb';
|
||||
};
|
||||
|
||||
// 15. 辅助方法:获取状态文本
|
||||
const getStatusText = (status) => {
|
||||
const statusMap = {
|
||||
'1': '进行中',
|
||||
'completed': '通过',
|
||||
'failed': '失败',
|
||||
'paused': '已暂停',
|
||||
'drafted': '草稿',
|
||||
'in-progress': '进行中',
|
||||
'normal': '正常',
|
||||
'attention': '需关注',
|
||||
'problem': '有问题'
|
||||
};
|
||||
return statusMap[status] || '未知状态';
|
||||
};
|
||||
|
||||
// 16. 辅助方法:获取任务状态文本
|
||||
const getTaskStatusText = (status) => {
|
||||
const statusMap = {
|
||||
'pending': '待接受',
|
||||
'accepted': '进行中',
|
||||
'completed': '已完成',
|
||||
'rejected': '已拒绝'
|
||||
};
|
||||
return statusMap[status] || '未知状态';
|
||||
};
|
||||
|
||||
// 17. 辅助方法:获取状态类名
|
||||
const getStatusClass = (status) => {
|
||||
const classMap = {
|
||||
'1': 'status-in-progress',
|
||||
'completed': 'status-passed',
|
||||
'failed': 'status-failed',
|
||||
'paused': 'status-paused',
|
||||
'pending': 'status-pending',
|
||||
'accepted': 'status-accepted',
|
||||
'rejected': 'status-rejected',
|
||||
'normal': 'status-normal',
|
||||
'attention': 'status-attention',
|
||||
'problem': 'status-problem'
|
||||
};
|
||||
return classMap[status] || 'status-pending';
|
||||
};
|
||||
|
||||
// 18. 分页事件处理
|
||||
const handlePageChange = (page) => {
|
||||
currentPage.value = page;
|
||||
getTestRecords();
|
||||
};
|
||||
|
||||
const handleSizeChange = (size) => {
|
||||
pageSize.value = size;
|
||||
currentPage.value = 1;
|
||||
getTestRecords();
|
||||
};
|
||||
|
||||
// 19. 导航方法
|
||||
const handleInspection1 = () => {
|
||||
router.push('/rili/rili');
|
||||
};
|
||||
@ -341,17 +468,28 @@ const handleInspection7 = () => {
|
||||
router.push('/rili/renyuanzhuangtai');
|
||||
};
|
||||
const handleInspectionManagement1 = () => {
|
||||
activeTab.value = 'plan';
|
||||
router.push('/rili/shiyanguanli');
|
||||
};
|
||||
const handleInspectionManagement2 = () => {
|
||||
activeTab.value = 'task';
|
||||
router.push('/rili/shiyanrenwu');
|
||||
};
|
||||
const handleInspectionManagement3 = () => {
|
||||
activeTab.value = 'record';
|
||||
router.push('/rili/shiyanjilu');
|
||||
};
|
||||
|
||||
// 20. 组件挂载时获取数据
|
||||
onMounted(() => {
|
||||
getStatisticsData();
|
||||
getTestRecords();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@import url('./css/detail-dialog.css');
|
||||
@import url('./css/step-bars.css');
|
||||
/* 1. 基础容器样式 */
|
||||
.operation-inspection {
|
||||
padding: 20px;
|
||||
@ -359,44 +497,38 @@ const handleInspectionManagement3 = () => {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* 导航栏样式 */
|
||||
/* 2. 顶部导航选项卡 */
|
||||
.navigation-tabs {
|
||||
display: flex;
|
||||
margin-bottom: 20px;
|
||||
background-color: #fff;
|
||||
border-radius: 4px;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
|
||||
padding: 2px;
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.nav-tab {
|
||||
padding: 12px 24px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s;
|
||||
font-size: 14px;
|
||||
color: #606266;
|
||||
border-right: 1px solid #f0f0f0;
|
||||
color: #6b7280;
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
border-right: 1px solid #f0f0f0;
|
||||
}
|
||||
|
||||
.nav-tab:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.nav-tab:hover {
|
||||
color: #409eff;
|
||||
background-color: #ecf5ff;
|
||||
.nav-tab:hover:not(.active) {
|
||||
background-color: #f3f4f6;
|
||||
}
|
||||
|
||||
.nav-tab.active {
|
||||
background-color: #409eff;
|
||||
background-color: #165dff;
|
||||
color: #fff;
|
||||
box-shadow: 0 2px 4px rgba(64, 158, 255, 0.3);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 选项卡样式 */
|
||||
/* 3. 选项卡样式 */
|
||||
.tabs-wrapper {
|
||||
background-color: #fff;
|
||||
padding: 20px;
|
||||
@ -405,34 +537,20 @@ const handleInspectionManagement3 = () => {
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
/* 筛选栏样式 */
|
||||
.filter-bar {
|
||||
background-color: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
/* 4. 头部容器 */
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.filter-item {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.filter-bar .el-select,
|
||||
.filter-bar .el-date-picker {
|
||||
width: 150px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.filter-actions {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* 5. 筛选和操作区域 */
|
||||
.filter-and-actions {
|
||||
display: flex;
|
||||
@ -462,8 +580,8 @@ const handleInspectionManagement3 = () => {
|
||||
}
|
||||
.search-btn,
|
||||
.export-btn {
|
||||
height: 36px;
|
||||
border-radius: 4px;
|
||||
background-color: #165dff;
|
||||
border-color: #165dff;
|
||||
}
|
||||
.filter-btn {
|
||||
background-color: #f3f4f6;
|
||||
@ -662,17 +780,7 @@ const handleInspectionManagement3 = () => {
|
||||
margin: 0 0 20px 0;
|
||||
text-align: right;
|
||||
}
|
||||
/* 头部容器 - 替换了固定gap的flex布局 */
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
}
|
||||
/* 12. 统计卡片样式 */
|
||||
.stat-grid {
|
||||
display: grid;
|
||||
@ -811,36 +919,35 @@ const handleInspectionManagement3 = () => {
|
||||
|
||||
.progress-line {
|
||||
flex: 1;
|
||||
height: 0;
|
||||
border-top: 2px dashed #e5e7eb;
|
||||
margin: 10px 0;
|
||||
height: 2px;
|
||||
background-color: #e5e7eb;
|
||||
}
|
||||
|
||||
.progress-step.active .step-number {
|
||||
background-color: #10b981;
|
||||
background-color: #165dff;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.progress-step.active .step-name {
|
||||
color: #10b981;
|
||||
color: #165dff;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.progress-line.active {
|
||||
border-top-color: #10b981;
|
||||
background-color: #165dff;
|
||||
}
|
||||
|
||||
.progress-step.failed .step-number {
|
||||
background-color: red;
|
||||
background-color: #dc2626;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.progress-step.failed .step-name {
|
||||
color: red;
|
||||
color: #dc2626;
|
||||
}
|
||||
|
||||
.progress-line.failed {
|
||||
border-top-color: red;
|
||||
background-color: #dc2626;
|
||||
}
|
||||
|
||||
/* 15. 试验结果样式 */
|
||||
@ -906,7 +1013,17 @@ const handleInspectionManagement3 = () => {
|
||||
border-top: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
/* 17. 响应式适配 */
|
||||
/* 17. 无数据提示样式 */
|
||||
.no-records {
|
||||
text-align: center;
|
||||
padding: 40px 0;
|
||||
color: #6b7280;
|
||||
background-color: #fff;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
/* 18. 响应式适配 */
|
||||
@media (max-width: 1200px) {
|
||||
.stat-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
|
||||
Reference in New Issue
Block a user