CMVR-BID/src/views/evaluate/il/touch/index.vue

72 lines
1.5 KiB
Vue

<template>
<div class="evaluation-metrics">
<div class="left">
<Indicator />
</div>
<div class="right">
<div class="title">
<h2>指标配置</h2>
<el-button type="primary">
<el-icon><Plus /></el-icon>
添加二级指标
</el-button>
</div>
<div class="secondaryIndicator-container">
<SecondaryIndicator v-for="value in listData" :key="value.id" :title="value.title" :weight="value.weight" />
</div>
</div>
</div>
</template>
<script setup>
import Indicator from './indicator.vue';
import SecondaryIndicator from './secondaryIndicator.vue';
const listData = ref([
{ id: 1, title: '无噪声唤醒', weight: 30 },
{ id: 2, title: '有噪声唤醒', weight: 40 },
{ id: 3, title: '免唤醒', weight: 50 },
{ id: 4, title: '误唤醒', weight: 30 }
])
</script>
<style lang="scss" scoped>
.evaluation-metrics {
width: 100%;
display: flex;
gap: 12px;
.left {
background-color: #fff;
padding: 20px;
width: 320px;
border: 1px solid #dbdbdb;
border-radius: 5px;
}
.right {
flex: 1;
height: 100%;
background-color: #fff;
border: 1px solid #dbdbdb;
border-radius: 5px;
overflow: hidden;
.title {
display: flex;
padding: 0 20px;
align-items: center;
justify-content: space-between;
}
.secondaryIndicator-container {
height: calc(100% - 72px);
overflow: auto;
padding: 0 20px;
}
}
}
</style>