|
|
@@ -1,41 +1,46 @@
|
|
|
<template>
|
|
|
- <el-card shadow="hover">
|
|
|
- <div class="plan-header">
|
|
|
- <div class="plan-secret-tag" :style="secretTagStyle">
|
|
|
- {{ plan.secretLevel }}
|
|
|
+ <el-card shadow="hover" class="virtual-card">
|
|
|
+ <!-- 头部插槽 -->
|
|
|
+ <template #header>
|
|
|
+ <div class="plan-header">
|
|
|
+ <div class="plan-secret-tag" :style="secretTagStyle">
|
|
|
+ {{ plan.secretLevel }}
|
|
|
+ </div>
|
|
|
+ <el-tooltip
|
|
|
+ :content="plan.planName + '-' + plan.simulationParticipantTasks"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isPlanNameOverflow"
|
|
|
+ >
|
|
|
+ <h3 ref="planNameRef" class="plan-name" style="color: #e0e6ed">
|
|
|
+ {{ plan.planName + "-" + plan.simulationParticipantTasks }}
|
|
|
+ </h3>
|
|
|
+ </el-tooltip>
|
|
|
+ <!-- 状态标签(保留注释以便后续恢复) -->
|
|
|
+ <!-- <el-tag
|
|
|
+ :type="statusTagType"
|
|
|
+ size="small"
|
|
|
+ class="plan-status"
|
|
|
+ effect="dark"
|
|
|
+ >
|
|
|
+ {{ plan.status }}
|
|
|
+ </el-tag> -->
|
|
|
+ <span></span>
|
|
|
</div>
|
|
|
- <el-tooltip
|
|
|
- :content="plan.planName + '-' + plan.simulationParticipantTasks"
|
|
|
- placement="top"
|
|
|
- :disabled="!isPlanNameOverflow"
|
|
|
- >
|
|
|
- <h3 ref="planNameRef" class="plan-name" style="color: #e0e6ed">
|
|
|
- {{ plan.planName + "-" + plan.simulationParticipantTasks }}
|
|
|
- </h3>
|
|
|
- </el-tooltip>
|
|
|
- <!-- <el-tag
|
|
|
- :type="statusTagType"
|
|
|
- size="small"
|
|
|
- class="plan-status"
|
|
|
- effect="dark"
|
|
|
- >
|
|
|
- {{ plan.status }}
|
|
|
- </el-tag>-->
|
|
|
- <span></span>
|
|
|
- </div>
|
|
|
+ </template>
|
|
|
|
|
|
+ <!-- 卡片内容区域 -->
|
|
|
<div class="plan-content">
|
|
|
<div class="plan-main-info">
|
|
|
<div class="info-row">
|
|
|
<span class="info-label dark-label">仿真推演任务名称:</span>
|
|
|
<el-tooltip
|
|
|
- :content="plan.simulationTaskName"
|
|
|
- placement="top"
|
|
|
- :disabled="!isSimulationTaskNameOverflow"
|
|
|
+ :content="plan.simulationTaskName"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isSimulationTaskNameOverflow"
|
|
|
>
|
|
|
<span
|
|
|
- ref="simulationTaskNameRef"
|
|
|
- class="info-value dark-value text-ellipsis"
|
|
|
+ ref="simulationTaskNameRef"
|
|
|
+ class="info-value dark-value text-ellipsis"
|
|
|
>
|
|
|
{{ plan.simulationTaskName || "-" }}
|
|
|
</span>
|
|
|
@@ -44,13 +49,13 @@
|
|
|
<div class="info-row">
|
|
|
<span class="info-label dark-label">仿真推演开始时间:</span>
|
|
|
<el-tooltip
|
|
|
- :content="plan.simulationStartTime"
|
|
|
- placement="top"
|
|
|
- :disabled="!isSimulationStartTimeOverflow"
|
|
|
+ :content="plan.simulationStartTime"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isSimulationStartTimeOverflow"
|
|
|
>
|
|
|
<span
|
|
|
- ref="simulationStartTimeRef"
|
|
|
- class="info-value dark-value text-ellipsis"
|
|
|
+ ref="simulationStartTimeRef"
|
|
|
+ class="info-value dark-value text-ellipsis"
|
|
|
>
|
|
|
{{ plan.simulationStartTime || "-" }}
|
|
|
</span>
|
|
|
@@ -59,13 +64,13 @@
|
|
|
<div class="info-row">
|
|
|
<span class="info-label dark-label">仿真推演结束时间:</span>
|
|
|
<el-tooltip
|
|
|
- :content="plan.simulationEndTime"
|
|
|
- placement="top"
|
|
|
- :disabled="!isSimulationEndTimeOverflow"
|
|
|
+ :content="plan.simulationEndTime"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isSimulationEndTimeOverflow"
|
|
|
>
|
|
|
<span
|
|
|
- ref="simulationEndTimeRef"
|
|
|
- class="info-value dark-value text-ellipsis"
|
|
|
+ ref="simulationEndTimeRef"
|
|
|
+ class="info-value dark-value text-ellipsis"
|
|
|
>
|
|
|
{{ plan.simulationEndTime || "-" }}
|
|
|
</span>
|
|
|
@@ -74,13 +79,13 @@
|
|
|
<div class="info-row">
|
|
|
<span class="info-label dark-label">仿真推演次数:</span>
|
|
|
<el-tooltip
|
|
|
- :content="plan.simulationCount"
|
|
|
- placement="top"
|
|
|
- :disabled="!isSimulationCountOverflow"
|
|
|
+ :content="plan.simulationCount"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isSimulationCountOverflow"
|
|
|
>
|
|
|
<span
|
|
|
- ref="simulationCountRef"
|
|
|
- class="info-value dark-value text-ellipsis"
|
|
|
+ ref="simulationCountRef"
|
|
|
+ class="info-value dark-value text-ellipsis"
|
|
|
>
|
|
|
{{ plan.simulationCount || "-" }}
|
|
|
</span>
|
|
|
@@ -92,13 +97,13 @@
|
|
|
<div class="info-row">
|
|
|
<span class="info-label dark-label">仿真推演参试任务:</span>
|
|
|
<el-tooltip
|
|
|
- :content="plan.simulationParticipantTasks"
|
|
|
- placement="top"
|
|
|
- :disabled="!isSimulationParticipantTasksOverflow"
|
|
|
+ :content="plan.simulationParticipantTasks"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isSimulationParticipantTasksOverflow"
|
|
|
>
|
|
|
<span
|
|
|
- ref="simulationParticipantTasksRef"
|
|
|
- class="info-value dark-value text-ellipsis"
|
|
|
+ ref="simulationParticipantTasksRef"
|
|
|
+ class="info-value dark-value text-ellipsis"
|
|
|
>
|
|
|
{{ plan.simulationParticipantTasks || "-" }}
|
|
|
</span>
|
|
|
@@ -110,9 +115,9 @@
|
|
|
<div class="info-row">
|
|
|
<span class="info-label dark-label">创建人:</span>
|
|
|
<el-tooltip
|
|
|
- :content="plan.username"
|
|
|
- placement="top"
|
|
|
- :disabled="!isUsernameOverflow"
|
|
|
+ :content="plan.username"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isUsernameOverflow"
|
|
|
>
|
|
|
<span ref="usernameRef" class="info-value dark-value text-ellipsis">
|
|
|
{{ plan.username || "-" }}
|
|
|
@@ -122,13 +127,13 @@
|
|
|
<div class="info-row">
|
|
|
<span class="info-label dark-label">创建时间:</span>
|
|
|
<el-tooltip
|
|
|
- :content="plan.createTime"
|
|
|
- placement="top"
|
|
|
- :disabled="!isCreateTimeOverflow"
|
|
|
+ :content="plan.createTime"
|
|
|
+ placement="top"
|
|
|
+ :disabled="!isCreateTimeOverflow"
|
|
|
>
|
|
|
<span
|
|
|
- ref="createTimeRef"
|
|
|
- class="info-value dark-value text-ellipsis"
|
|
|
+ ref="createTimeRef"
|
|
|
+ class="info-value dark-value text-ellipsis"
|
|
|
>
|
|
|
{{ plan.createTime || "-" }}
|
|
|
</span>
|
|
|
@@ -137,11 +142,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
+ <!-- 操作按钮区域 -->
|
|
|
<div class="plan-actions">
|
|
|
- <el-button size="mini" type="info" @click="editPlan">想定编辑</el-button>
|
|
|
- <el-button size="mini" @click="viewDetail">仿真推演</el-button>
|
|
|
+ <el-button type="info" icon="el-icon-edit" @click="editPlan">想定编辑</el-button>
|
|
|
+ <el-button icon="el-icon-monitor" class="blue-btn" @click="viewDetail">仿真推演</el-button>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
@@ -257,6 +264,19 @@
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+.blue-btn:hover{
|
|
|
+ background: #004466;
|
|
|
+ border: 2px solid #1e3a5f;
|
|
|
+ border-color: #4085ac;
|
|
|
+ color: #fff;
|
|
|
+}
|
|
|
+.virtual-card {
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+
|
|
|
+::v-deep .el-card__header {
|
|
|
+ background-color: #123e7f;
|
|
|
+}
|
|
|
.target-plan-card {
|
|
|
margin-bottom: 15px;
|
|
|
transition: all 0.3s ease;
|
|
|
@@ -273,25 +293,26 @@
|
|
|
.plan-header {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- margin-bottom: 12px;
|
|
|
+ //margin-bottom: 12px;
|
|
|
}
|
|
|
|
|
|
.plan-secret-tag {
|
|
|
padding: 2px 8px;
|
|
|
border-radius: 4px;
|
|
|
color: white;
|
|
|
- font-size: 12px;
|
|
|
+ font-size: 14px;
|
|
|
margin-right: 8px;
|
|
|
}
|
|
|
|
|
|
.plan-name {
|
|
|
flex: 1;
|
|
|
margin: 0;
|
|
|
- font-size: 16px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|
|
|
white-space: nowrap;
|
|
|
- max-width: 180px;
|
|
|
+ //max-width: 180px;
|
|
|
}
|
|
|
|
|
|
.plan-status {
|
|
|
@@ -299,7 +320,8 @@
|
|
|
}
|
|
|
|
|
|
.plan-content {
|
|
|
- margin-bottom: 12px;
|
|
|
+ padding: 14px 16px;
|
|
|
+ //margin-bottom: 12px;
|
|
|
flex: 1;
|
|
|
}
|
|
|
|
|
|
@@ -321,7 +343,7 @@
|
|
|
|
|
|
.dark-label {
|
|
|
color: #8796ad;
|
|
|
- width: 70px;
|
|
|
+ width: 120px;
|
|
|
display: inline-block;
|
|
|
flex-shrink: 0;
|
|
|
}
|
|
|
@@ -342,6 +364,8 @@
|
|
|
.plan-actions {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
+ padding: 14px 16px;
|
|
|
+ border-top: 1px solid #425163;
|
|
|
}
|
|
|
|
|
|
.dark-button {
|