ctorParamsJsonSchema.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema",
  3. "title": "逆变器连接参数的配置",
  4. "type": "object",
  5. "required": [
  6. "UITemplateVersion",
  7. "DeviceConfigs"
  8. ],
  9. "format": "grid",
  10. "properties": {
  11. "UITemplateVersion": {
  12. "type": "string",
  13. "readOnly": true,
  14. "default": "1.0",
  15. "format": "hidden",
  16. "options": {
  17. "compact": true,
  18. "grid_columns": 12
  19. }
  20. },
  21. "DeviceConfigs": {
  22. "type": "array",
  23. "minItems": 1,
  24. "format": "grid",
  25. "uniqueItems": true,
  26. "title": "多个逆变器",
  27. "items": {
  28. "type": "object",
  29. "title": "逆变器",
  30. "format": "grid",
  31. "headerTemplate": "{{ self.DeviceName }} 的通讯地址: {{ self.SlaveAddress }}",
  32. "required": [ "DeviceName", "SlaveAddress" ],
  33. "properties": {
  34. "DeviceName": {
  35. "type": "string",
  36. "title": "设备名称",
  37. "options": {
  38. "infoText": "请给此设备一个易理解的名称(如: 厂房A中的1号XXX品牌逆变器),而之后系统中将以此名称来表示此设备",
  39. "grid_columns": 8
  40. }
  41. },
  42. "SlaveAddress": {
  43. "title": "通讯地址",
  44. "type": "integer",
  45. "minimum": 1,
  46. "maximum": 255,
  47. "options": {
  48. "infoText": "每条通讯链路上的设备必须分配唯一的通讯地址, 请于 设备端 进行设置,再填写地址值至此",
  49. "grid_columns": 4
  50. }
  51. },
  52. "Description": {
  53. "title": "描述",
  54. "type": "string",
  55. "options": {
  56. "infoText": "对于此设备的补充说明",
  57. "grid_columns": 12
  58. }
  59. }
  60. }
  61. }
  62. }
  63. }
  64. }