【代码评审】IoT:物模型的管理

This commit is contained in:
YunaiV
2025-01-28 22:24:14 +08:00
parent fec0753d9b
commit 9581ecd7c7
12 changed files with 28 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
<!-- dataTypearray 数组类型 -->
<template>
<el-form-item label="元素类型" prop="property.dataSpecs.childDataType">
<el-radio-group v-model="dataSpecs.childDataType" @change="handleChange">

View File

@@ -1,3 +1,4 @@
<!-- dataTypeenum 数组类型 -->
<template>
<el-form-item
:rules="[{ required: true, validator: validateEnumList, trigger: 'change' }]"

View File

@@ -1,3 +1,4 @@
<!-- dataTypenumber 数组类型 -->
<template>
<el-form-item label="取值范围">
<div class="flex items-center justify-between">
@@ -43,7 +44,7 @@
:model-value="dataSpecs.unit ? dataSpecs.unitName + '-' + dataSpecs.unit : ''"
filterable
placeholder="请选择单位"
style="width: 240px"
class="w-1/1"
@change="unitChange"
>
<el-option

View File

@@ -1,3 +1,4 @@
<!-- dataTypestruct 数组类型 -->
<template>
<!-- struct 数据展示 -->
<el-form-item
@@ -89,6 +90,7 @@ const openStructForm = (val: any) => {
}
}
}
/** 删除 struct 项 */
const deleteStructItem = (index: number) => {
dataSpecsList.value.splice(index, 1)