设备型号配置产品ID

This commit is contained in:
墨大叔 2024-08-12 20:56:13 +08:00
parent e3b45d4d12
commit e35a1f8a72

View File

@ -125,16 +125,10 @@
<form-col :span="span" label="型号" prop="model">
<el-input v-model="form.model" placeholder="请输入型号"/>
</form-col>
<form-col :span="span" label="产品ID" prop="productId">
<el-input v-model="form.productId" placeholder="请输入OneNet产品ID"/>
</form-col>
<form-col :span="span * 2" label="型号功能" prop="tags">
<!-- <el-select v-model="form.tags" placeholder="请选择型号功能" style="width: 100%" multiple>-->
<!-- <el-option-->
<!-- v-for="option of dict.type.sm_model_tag"-->
<!-- :label="option.label"-->
<!-- :key="option.value"-->
<!-- :value="option.value"-->
<!-- />-->
<!-- </el-select>-->
<el-checkbox-group v-model="form.tags">
<el-checkbox v-for="option of dict.type.sm_model_tag" :label="option.value" :key="option.value">{{option.label}}</el-checkbox>
</el-checkbox-group>
@ -224,6 +218,9 @@ export default {
tags: [
{ required: true, message: "型号标签不能为空", trigger: "blur" },
{ min: 1, type: 'array', message: "型号标签不能为空", trigger: "blur" }
],
productId: [
{ required: true, message: "OneNet产品ID不能为空", trigger: "blur" }
]
}
};