|
|
@@ -18,8 +18,8 @@ |
|
|
|
<s-form-item label="摄像头名称" prop="sensorName"> |
|
|
|
<s-input v-model="orgProps.record.sensorName"></s-input> |
|
|
|
</s-form-item> |
|
|
|
<s-form-item label="所属学校" prop="fieldName"> |
|
|
|
<org-selector v-model:org-value="orgProps.record.fieldName" :org-tree-api="bizOrgApi.tree" :show-all="false" /> |
|
|
|
<s-form-item label="所属学校" prop="fieldNames"> |
|
|
|
<org-selector v-model:org-value="orgProps.record.fieldNames" :org-tree-api="bizOrgApi.tree" :show-all="false" /> |
|
|
|
</s-form-item> |
|
|
|
<s-form-item label="设备IP" prop="directUrlIp"> |
|
|
|
<s-input v-model="orgProps.record.directUrlIp" clearable></s-input> |
|
|
@@ -62,7 +62,7 @@ const orgProps = reactive<FormProps.Base<any>>({ |
|
|
|
// 表单验证规则 |
|
|
|
const rules = reactive({ |
|
|
|
sensorName: [required("请输入摄像头名称")], |
|
|
|
fieldName: [required("请选择所属学校")], |
|
|
|
fieldNames: [required("请选择所属学校")], |
|
|
|
directUrlIp: [required("请选择设备IP")], |
|
|
|
resWidth: [required("请输入分辨率(width)")], |
|
|
|
resHeight: [required("请输入分辨率(height)")] |
|
|
|