| | |
| | | <div> |
| | | <div> |
| | | <el-space> |
| | | <el-text type="primary">数据切片</el-text> |
| | | <el-text type="info">数据切片</el-text> |
| | | <el-checkbox-group |
| | | :model-value="dataSlice" |
| | | @update:model-value="(e) => emits('update:data-slice', e)" |
| | |
| | | </div> |
| | | <div> |
| | | <el-space> |
| | | <el-text type="primary">监测因子</el-text> |
| | | <el-text type="info">监测因子</el-text> |
| | | <el-checkbox-group |
| | | :model-value="factorType" |
| | | @update:model-value="(e) => emits('update:factor-type', e)" |
| | | size="default" |
| | | :min="1" |
| | | > |
| | | <el-space> |
| | | <el-checkbox |
| | | v-for="item in factorOptions" |
| | | :value="item.value" |
| | | :key="item.label" |
| | | > |
| | | {{ item.label }} |
| | | </el-checkbox> |
| | | </el-space> |
| | | <!-- <el-space> --> |
| | | <el-checkbox |
| | | v-for="item in factorOptions" |
| | | :value="item.value" |
| | | :key="item.label" |
| | | > |
| | | {{ item.label }} |
| | | </el-checkbox> |
| | | <!-- </el-space> --> |
| | | </el-checkbox-group> |
| | | </el-space> |
| | | </div> |
| | | <div> |
| | | <el-space> |
| | | <el-text type="primary">场景类型</el-text> |
| | | <el-text type="info">场景类型</el-text> |
| | | <el-checkbox-group |
| | | :model-value="sceneType" |
| | | @update:model-value="(e) => emits('update:scene-type', e)" |
| | |
| | | import { ref } from 'vue'; |
| | | |
| | | const props = defineProps({ |
| | | // 数据切片,线索、提示、溯源 |
| | | /** |
| | | * 包含追踪信息的数据切片,包括线索、提示和溯源数据 |
| | | * @type {Array} |
| | | */ |
| | | dataSlice: Array, |
| | | // 监测因子 |
| | | /** |
| | | * 监测因子类型数组 |
| | | * @type {Array} |
| | | */ |
| | | factorType: Array, |
| | | /** |
| | | * 监测因子的可用选项 |
| | | * @type {Array<{value: string, label: string}>} |
| | | */ |
| | | factorOptions: Array, |
| | | // 场景类型 |
| | | /** |
| | | * 用于过滤的场景类型数组 |
| | | * @type {Array} |
| | | */ |
| | | sceneType: Array, |
| | | /** |
| | | * 场景选择的可用选项 |
| | | * @type {Array<{value: string, label: string}>} |
| | | */ |
| | | sceneOptions: Array |
| | | }); |
| | | |