0918
This commit is contained in:
@ -62,37 +62,37 @@
|
||||
<!-- 5.1 巡检计划表格(与试验系统表格结构一致) -->
|
||||
<div v-if="activeTab === 'plan'" class="table-container">
|
||||
<el-table :data="planTableData" border>
|
||||
<el-table-column prop="name" label="计划名称" width="220">
|
||||
<el-table-column align="center" prop="name" label="计划名称" width="220">
|
||||
<template #default="scope">
|
||||
<div class="plan-name">{{ scope.row.name }}</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="type" label="巡检类型" width="120"></el-table-column>
|
||||
<el-table-column prop="cycle" label="巡检周期" width="120"></el-table-column>
|
||||
<el-table-column prop="dateRange" label="执行时间范围"></el-table-column>
|
||||
<el-table-column prop="progress" label="完成进度" width="120">
|
||||
<el-table-column align="center" prop="type" label="巡检类型" width="120"></el-table-column>
|
||||
<el-table-column align="center" prop="cycle" label="巡检周期" width="120"></el-table-column>
|
||||
<el-table-column align="center" prop="dateRange" label="执行时间范围"></el-table-column>
|
||||
<el-table-column align="center" prop="progress" label="完成进度" width="120">
|
||||
<template #default="scope">
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" :style="{ width: scope.row.progress + '%', backgroundColor: getProgressColor(scope.row.status) }"></div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" width="100">
|
||||
<el-table-column align="center" prop="status" label="状态" width="100">
|
||||
<template #default="scope">
|
||||
<span :class="['status-tag', `status-${scope.row.status}`]">
|
||||
{{ getStatusText(scope.row.status) }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="responsible" label="负责人" width="120"></el-table-column>
|
||||
<el-table-column label="操作" width="220">
|
||||
<el-table-column align="center" prop="responsible" label="负责人" width="120"></el-table-column>
|
||||
<el-table-column align="center" label="操作" width="220">
|
||||
<template #default="scope">
|
||||
<div class="operation-buttons">
|
||||
<button class="operate-btn edit-btn" v-if="['drafted', 'paused'].includes(scope.row.status)">编辑</button>
|
||||
<button class="operate-btn execute-btn" v-if="scope.row.status === 'drafted'">执行</button>
|
||||
<button class="operate-btn pause-btn" v-if="scope.row.status === 'in-progress'">暂停</button>
|
||||
<button class="operate-btn resume-btn" v-if="scope.row.status === 'paused'">恢复</button>
|
||||
<button class="operate-btn view-btn">查看详情</button>
|
||||
<el-button type="text" class="operate-btn edit-btn" v-if="['drafted', 'paused'].includes(scope.row.status)">编辑</el-button>
|
||||
<el-button type="text" class="operate-btn execute-btn" v-if="scope.row.status === 'drafted'">执行</el-button>
|
||||
<el-button type="text" class="operate-btn pause-btn" v-if="scope.row.status === 'in-progress'">暂停</el-button>
|
||||
<el-button type="text" class="operate-btn resume-btn" v-if="scope.row.status === 'paused'">恢复</el-button>
|
||||
<el-button type="text" class="operate-btn view-btn">查看详情</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -118,9 +118,9 @@
|
||||
<el-table-column label="操作" width="180">
|
||||
<template #default="scope">
|
||||
<div class="operation-buttons">
|
||||
<button class="operate-btn accept-btn" v-if="scope.row.status === 'pending'">接受</button>
|
||||
<button class="operate-btn complete-btn" v-if="scope.row.status === 'accepted'">完成</button>
|
||||
<button class="operate-btn view-btn">查看详情</button>
|
||||
<el-button type="text" class="operate-btn accept-btn" v-if="scope.row.status === 'pending'">接受</el-button>
|
||||
<el-button type="text" class="operate-btn complete-btn" v-if="scope.row.status === 'accepted'">完成</el-button>
|
||||
<el-button type="text" class="operate-btn view-btn">查看详情</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -990,6 +990,7 @@ const addEquipment = () => {
|
||||
/* 9. 操作按钮样式(扩展试验系统) */
|
||||
.operation-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user