添加项目文件。
This commit is contained in:
@@ -0,0 +1,178 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import AppStage from '@/components/AppStage.vue'
|
||||
import PageHeader from '@/components/PageHeader.vue'
|
||||
import ScanVisual from '@/components/ScanVisual.vue'
|
||||
import ProgressStrip from '@/components/ProgressStrip.vue'
|
||||
import StatusFooter from '@/components/StatusFooter.vue'
|
||||
import { useTimedProgress } from '@/composables/useTimedProgress'
|
||||
|
||||
const router = useRouter()
|
||||
|
||||
const { progress } = useTimedProgress(15000, () => {
|
||||
void router.replace({ name: 'spectrum' })
|
||||
})
|
||||
|
||||
const progressLabel = computed(() => `点位扫描 ${Math.round(progress.value)}%`)
|
||||
|
||||
function abortProcess() {
|
||||
void router.replace({ name: 'home' })
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AppStage>
|
||||
<PageHeader title="样品轮廓识别与激光点位规划" variant="process">
|
||||
<template #left>
|
||||
<button class="header-button header-button--warn" type="button" @click="abortProcess">
|
||||
中止流程
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<template #right>
|
||||
<button class="icon-close" type="button" aria-label="关闭并返回首页" @click="abortProcess">
|
||||
<svg viewBox="0 0 24 24" aria-hidden="true">
|
||||
<path d="m6 6 12 12M18 6 6 18" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" />
|
||||
</svg>
|
||||
</button>
|
||||
</template>
|
||||
</PageHeader>
|
||||
|
||||
<main class="scan-main">
|
||||
<ScanVisual class="scan-card" />
|
||||
|
||||
<aside class="params-card">
|
||||
<header class="params-card__header">
|
||||
<h2>采样点</h2>
|
||||
</header>
|
||||
|
||||
<div class="params-card__body">
|
||||
<div class="param-field">
|
||||
<span class="param-field__label">采样点数</span>
|
||||
<div class="param-field__value">5</div>
|
||||
</div>
|
||||
|
||||
<div class="param-field">
|
||||
<span class="param-field__label">脉冲能量</span>
|
||||
<div class="param-field__value">120 <small>mJ</small></div>
|
||||
</div>
|
||||
|
||||
<div class="param-field">
|
||||
<span class="param-field__label">积分时间</span>
|
||||
<div class="param-field__value">10 <small>ms</small></div>
|
||||
</div>
|
||||
|
||||
<div class="param-field">
|
||||
<span class="param-field__label">预扫描</span>
|
||||
<div class="param-field__value">3 <small>次</small></div>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
</main>
|
||||
|
||||
<div class="scan-progress">
|
||||
<ProgressStrip :progress="progress" :label="progressLabel" note="已规划 5 个采样点" />
|
||||
</div>
|
||||
|
||||
<StatusFooter
|
||||
icon="info"
|
||||
:items="['轮廓提取完成', '点位校验通过', '等待采集光谱']"
|
||||
/>
|
||||
</AppStage>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.scan-main {
|
||||
position: absolute;
|
||||
top: 142px;
|
||||
right: 44px;
|
||||
left: 44px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 342px;
|
||||
gap: 20px;
|
||||
height: 730px;
|
||||
}
|
||||
|
||||
.scan-card {
|
||||
width: 1120px;
|
||||
max-width: 100%;
|
||||
height: 100%;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.params-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d9e0e8;
|
||||
border-radius: 10px;
|
||||
background: #fff;
|
||||
box-shadow: 0 8px 24px rgba(33, 53, 84, 0.05);
|
||||
}
|
||||
|
||||
.params-card__header {
|
||||
display: flex;
|
||||
flex: none;
|
||||
align-items: center;
|
||||
height: 64px;
|
||||
padding: 0 22px;
|
||||
border-bottom: 1px solid #e4e8ee;
|
||||
background: #f3f4f6;
|
||||
}
|
||||
|
||||
.params-card__header h2 {
|
||||
color: #333b46;
|
||||
font-size: 23px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.params-card__body {
|
||||
padding: 26px 22px;
|
||||
}
|
||||
|
||||
.param-field {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.param-field:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.param-field__label {
|
||||
display: block;
|
||||
margin-bottom: 10px;
|
||||
color: #46505e;
|
||||
font-size: 22px;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.param-field__value {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 62px;
|
||||
padding: 0 18px;
|
||||
border: 1px solid #d8dde6;
|
||||
border-radius: 7px;
|
||||
background: #fff;
|
||||
color: #2e3641;
|
||||
font-size: 24px;
|
||||
box-shadow: inset 0 1px 2px rgba(30, 45, 66, 0.03);
|
||||
}
|
||||
|
||||
.param-field__value small {
|
||||
margin-left: 8px;
|
||||
color: #8d97a4;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.scan-progress {
|
||||
position: absolute;
|
||||
top: 900px;
|
||||
right: 44px;
|
||||
left: 44px;
|
||||
height: 54px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user