2023-06-28 19:25:11 +08:00
|
|
|
<template>
|
|
|
|
<div class="qc-flags">
|
2023-08-15 18:23:22 +08:00
|
|
|
<div class="qc-flags-item" v-for="(item, index) in items" :key="item">
|
|
|
|
<span :class="data[index]"></span>
|
|
|
|
{{ item }}
|
2023-06-28 19:25:11 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
// 配置
|
2023-08-15 18:23:22 +08:00
|
|
|
const items = ['Collection Time', 'Acq Time', 'Decay Time', 'SampVol', 'Be7-FWHM', 'Ba140-MDC', 'Xe133-MDC']
|
2023-06-28 19:25:11 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
data: {
|
2023-08-15 18:23:22 +08:00
|
|
|
type: Array,
|
|
|
|
default: () => []
|
2023-06-28 19:25:11 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
created() {
|
2023-08-15 18:23:22 +08:00
|
|
|
this.items = items
|
2023-06-28 19:25:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
.qc-flags {
|
|
|
|
display: flex;
|
|
|
|
&-item {
|
|
|
|
background-color: #46738e;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
width: 150px;
|
|
|
|
height: 30px;
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
margin-left: 20px;
|
|
|
|
margin-right: 5px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
border-radius: 50%;
|
|
|
|
|
2023-08-15 18:23:22 +08:00
|
|
|
&.GRAY {
|
|
|
|
background: radial-gradient(circle, #979797 0, #777a7c 100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.GREEN {
|
2023-06-28 19:25:11 +08:00
|
|
|
background: radial-gradient(circle, #00fe7f 0, #00d56a 100%);
|
|
|
|
}
|
2023-08-15 18:23:22 +08:00
|
|
|
|
|
|
|
&.RED {
|
|
|
|
background: radial-gradient(circle, #fe0015 0, #d50000 100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.BLUE {
|
2023-08-17 19:11:42 +08:00
|
|
|
background: radial-gradient(circle, #00E57D 0, #00E57D 100%);
|
2023-08-15 18:23:22 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.YELLOW {
|
|
|
|
background: radial-gradient(circle, #feed00 0, #d5d100 100%);
|
|
|
|
}
|
2023-06-28 19:25:11 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|