文档
测试

编辑表单

GET
{{host}}/api/ynl-unit/device-setting/{slug}/{id}/edit

接口描述

示例:{{host}}/api/ynl-unit/device-setting/coldchain-warehouse/591/edit,该页面需要定制化,开关打开后,才能填写更新对应的报警,在options里面有template标识

说明 / 示例

![image.png](1) { "action": "http://jjcoldchain.test/api/ynl-unit/device-setting/coldchain-warehouse/591", "method": "put", "rules": [ { "type": "radio", "field": "open_temperature_warning", "title": "是否开启温度报警", "value": "1", "props": [], "options": [ { "label": "开启", "value": "1" }, { "label": "关闭", "value": "0" } ], "validate": [], "col": [], "info": "", "extends": [] }, { "type": "input", "field": "temp_min", "title": "温度最小值", "value": "0", "props": { "type": "text", "placeholder": "请输入温度最小值" }, "validate": [], "col": [], "extends": { "tip": "填写数字,无需单位", "unit": "℃" } }, { "type": "input", "field": "temp_max", "title": "温度最大值", "value": "8", "props": { "type": "text", "placeholder": "请输入温度最大值" }, "validate": [], "col": [], "extends": { "tip": "填写数字,无需单位", "unit": "℃" } }, { "type": "select", "field": "open_humidity_warning", "title": "是否开启湿度报警", "value": 0, "props": { "multiple": false, "placeholder": "请选择是否开启湿度报警" }, "options": [ { "label": "开启", "value": "1" }, { "label": "关闭", "value": "0" } ], "validate": [], "col": [] }, { "type": "input", "field": "humi_min", "title": "湿度最小值", "value": "", "props": { "type": "text", "placeholder": "请输入湿度最小值" }, "validate": [], "col": [], "extends": { "tip": "填写数字,无需单位", "unit": "%" } }, { "type": "input", "field": "humi_max", "title": "湿度最大值", "value": "", "props": { "type": "text", "placeholder": "请输入湿度最大值" }, "validate": [], "col": [], "extends": { "tip": "填写数字,无需单位", "unit": "%" } }, { "type": "hidden", "field": "_token", "value": "x14rd66x8w7BSQohAFUB6z1NkhOpbHfxb8yR9qXh" } ], "option": { "template": "warning_setting" }, "title": "编辑报警设置" }