设备信息配置流程图
![file](https://www.dgiotcloud.cn/wp-content/uploads/2022081106554191.png)
[小 迪 导读]:在设备信息了解过程中,经常会缺失自己所需了解的信息:
老式方案 |
amis配置 |
由平台本身决定无法被修改 |
可根据自己的需求配置自己所需要了解的信息,灵活性高 |
1.设备信息模板创建
1.进入平台 选择设备云-产品管理-查看(眼睛图标)
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081006350634.png)
2.点击进入产品详情后,选择可视化进行低代码模板的添加
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081006375087.png)
3.创建时,类型选择设备信息,语言:中文简体 标题:设备信息(可自定义)
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081006411145.png)
4.创建成功后可见到自己创建的这个设备信息的低代码模板,选择设计进行编辑
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081006430487.png)
2.设备信息amis模板配置
1.进入设计后,先选择左侧的代码块然后选择右上角的接口
![](https://www.dgiotcloud.cn/wp-content/uploads/202208100645119.png)
- 在右上角 接口下方 选择高级配置 发送方式选择 GET 接口地址为/iotapi/amis/Device/parse_objectid,
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081006483049.png)
3.在左侧代码块把 ,
"headers": {
"store": "localStorage",
"dgiotReplace": "parse_objectid"
}
该内容拷贝过去
4.点击左上角组件 和中间的内容区
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081006551074.png)
5.选择组件中的表单,然后配置表单控件,控件中提交字段名可在 parse 库中进行查找,显示名称为它的中文代表意义,配置完成后选择确定,随后进行保存
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081006581640.png)
![](https://www.dgiotcloud.cn/wp-content/uploads/2022081007014229.png)
3.设备信息查看
1.选择设备云-设备管理- 设备信息
![](https://www.dgiotcloud.cn/wp-content/uploads/202208100703029.png)
2.点击设备信息,可看到自己配置的设备基本信息的显示
![](https://www.dgiotcloud.cn/wp-content/uploads/202208100704018.png)
[小 迪 点评]
- dgiot平台低代码可自定义数据库中存在的字段进行展示,方便且灵活的应对不同的用户需求。
想了解更多 dgiot 的具体细节,欢迎大家在GitHub上查看相关源代码。