appCtorParamsJsonSchema.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema",
  3. "title": "主配置",
  4. "type": "object",
  5. "required": [ "UITemplateVersion", "ServerListenPort", "MaxPeriodNoSeeDispenserIncomingHttpRequest", "DispenserInfoConfigs" ],
  6. "format": "table",
  7. "properties": {
  8. "UITemplateVersion": {
  9. "type": "string",
  10. "readOnly": true,
  11. "default": "1.0",
  12. "format": "hidden",
  13. "options": {
  14. "compact": true
  15. }
  16. },
  17. "ServerListenPort": {
  18. "type": "integer",
  19. "title": "Http Server 侦听端口 ",
  20. "default": 7788,
  21. "maximum": 65535,
  22. "minimum": 1,
  23. "options": {
  24. "infoText": "FCC 将启动作为 TCP Server 端, 并于此端口侦听等待各油机的主动连入"
  25. }
  26. },
  27. "MaxPeriodNoSeeDispenserIncomingHttpRequest": {
  28. "type": "integer",
  29. "title": "最长未见油机主动发送消息时间(按秒)",
  30. "default": 10,
  31. "maximum": 65535,
  32. "minimum": 1,
  33. "options": {
  34. "infoText": "各油机应按一定时间间隔主动通过HTTP请求发送消息至FCC, 如果FCC超过此配置值的时间后,仍未见某油机消息进入,则认为该油机离线"
  35. }
  36. },
  37. "DispenserInfoConfigs": {
  38. "type": "array",
  39. "minItems": 1,
  40. "format": "tabs",
  41. "uniqueItems": true,
  42. "title": "所有油机信息",
  43. "items": {
  44. "type": "object",
  45. "title": "油机信息",
  46. "format": "grid",
  47. "headerTemplate": "{{ self.IpAddress }}",
  48. "required": [ "IpAddress", "Name" ],
  49. "properties": {
  50. "IpAddress": {
  51. "title": "油机 IP 地址",
  52. "default": "192.168.10.200",
  53. "type": "string",
  54. "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}",
  55. "options": {
  56. "infoText": "如此 IP 地址未主动连接至 FCC,将产生警报",
  57. "grid_columns": 3
  58. }
  59. },
  60. "Name": {
  61. "title": "油机名称",
  62. "default": "1#油机",
  63. "type": "string",
  64. "options": {
  65. "infoText": "给此 IP 地址所代表的加油机命名一个用户友好的名称, 警报正文消息中将包含此信息",
  66. "grid_columns": 3
  67. }
  68. },
  69. "Description": {
  70. "title": "描述",
  71. "default": "此油机上有油枪a,b,c,d",
  72. "type": "string",
  73. "options": {
  74. "infoText": "给此 IP 地址所代表的加油机添加用户友好的信息, 警报正文消息中将包含此信息",
  75. "grid_columns": 6
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }