a broker system for Supercredit
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

168 lines
5.2KB

  1. var dashboard = {
  2. "type": "wide",
  3. "css": "dashboard",
  4. "rows": [
  5. { "view": "toolbar", "css": "webix_dark", "padding": { "right": 10, "left": 10 },
  6. "elements": [
  7. { "view": "menu", "id": "menu", "subMenuPos": "bottom", "submenuConfig": { "autowidth": true },
  8. "data": [
  9. {
  10. "value": "SFM",
  11. "icon": "wxi-dots",
  12. "submenu": [
  13. { "value": "Summary", "icon": "wxi-calendar" },
  14. { "value": "Pending Jobs", "icon": "mdi mdi-notebook-check" },
  15. { "value": "Mass Mailing", "icon": "mdi mdi-email" },
  16. { "$template": "Separator" },
  17. { "value": "Logout", "icon": "mdi mdi-exit-run" }
  18. ]
  19. },
  20. {
  21. "value": "Loans",
  22. "autowidth": true,
  23. "icon": "mdi mdi-bank-transfer",
  24. "submenu": {
  25. "data": [
  26. { "value": "Add", "icon": "mdi mdi-table-column-plus-before" },
  27. { "$template": "Separator" },
  28. { "value": "Export", "icon": "mdi mdi-file-export" },
  29. { "value": "Import", "icon": "mdi mdi-file-upload" },
  30. { "$template": "Separator" },
  31. { "value": "New", "icon": "mdi mdi-file-export", "badge": "20" },
  32. { "value": "Submitted", "icon": "mdi mdi-file-upload", "badge": "50" },
  33. { "value": "Approved", "icon": "mdi mdi-file-upload", "badge": "35" },
  34. { "value": "Rejected", "icon": "mdi mdi-file-upload", "badge": "10" },
  35. { "value": "Settled", "icon": "mdi mdi-file-upload", "badge": "99" }
  36. ]
  37. }
  38. },
  39. {
  40. "value": "Clients",
  41. "icon": "mdi mdi-account-supervisor-circle",
  42. "submenu": [
  43. { "value": "Add", "icon": "mdi mdi-account-plus" },
  44. { "value": "Search", "icon": "mdi mdi-account-search" },
  45. { "value": "Broadcast", "icon": "mdi mdi-account-off" }
  46. ]
  47. },
  48. {
  49. "value": "Broker",
  50. "icon": "mdi mdi-account-details",
  51. "submenu": [
  52. { "value": "Add", "icon": "mdi mdi-account-plus" },
  53. { "value": "Search", "icon": "mdi mdi-account-search" },
  54. { "$template": "Separator" },
  55. { "value": "Broadcast", "icon": "mdi mdi-account-off" },
  56. { "$template": "Separator" },
  57. { "value": "Unpaid", "icon": "mdi mdi-file-upload" }
  58. ]
  59. }
  60. ],
  61. "type": { "subsign": true },
  62. "height": 0
  63. },
  64. { "view": "label", "label": "SuperCredit ", "align": "right", "height": 0 }
  65. ]
  66. },
  67. {
  68. "cols": [
  69. {
  70. "rows": [
  71. { "label": "Staff and Brokers", "view": "label", "height": 38 },
  72. {
  73. "view": "list",
  74. "height": 0,
  75. "template" :"#value#",
  76. "url" : "data/staff.json"
  77. },
  78. { "label": "Performance Summary", "view": "label", "height": 38 },
  79. {
  80. "url": "data/chart.json",
  81. "type": "pie3D",
  82. "xAxis": "#value#",
  83. "yAxis": {},
  84. "view": "chart",
  85. "height": 229
  86. }
  87. ],
  88. "width": 248
  89. },
  90. {
  91. "width":0 ,
  92. "rows" : [
  93. {
  94. "view": "datatable",
  95. "columns": [
  96. { "id": "funder", "header": "Funder", "fillspace": true, "sort": "string" },
  97. { "id": "customer", "header": "Customers", "sort": "string", "width": 200 },
  98. { "id": "settlement", "header": "Settlement date", "sort": "string" },
  99. { "id": "loanamount", "header": "Loan Amount", "sort": "string" },
  100. {
  101. "id": "commission",
  102. "header": "Commission Margin",
  103. "sort": "string",
  104. "width": 200,
  105. "fillspace": false,
  106. "hidden": false,
  107. "css": "{'text-align':'center'}"
  108. },
  109. {
  110. "id": "net",
  111. "header": "Net Amount",
  112. "sort": "string",
  113. "width": 150,
  114. "fillspace": false,
  115. "hidden": false
  116. },
  117. { "id": "gst", "header": "GST", "fillspace": false, "hidden": false },
  118. { "id": "gross", "header": "Gross Amount", "fillspace": false, "hidden": false },
  119. { "id": "pay2broker", "header": "Pay to Broker", "width": 200, "fillspace": false, "hidden": false }
  120. ],
  121. "select": true,
  122. "scrollX": false,
  123. "url" : "data/loan.json",
  124. "width": 0
  125. },
  126. {
  127. "view": "datatable",
  128. "sort": false,
  129. "scroll" : false,
  130. "columns": [
  131. { "id": "funder", "header": "", "fillspace": true, "sort": "string" },
  132. { "id": "customer", "header": "", "sort": "string", "width": 200 },
  133. { "id": "settlement", "header": " ", "sort": "string" },
  134. { "id": "loanamount", "header": " ", "sort": "string" },
  135. {
  136. "id": "commission",
  137. "header": " ",
  138. "sort": "string",
  139. "width": 200,
  140. "fillspace": false,
  141. "hidden": false,
  142. "css": "{'text-align':'center'}"
  143. },
  144. {
  145. "id": "net",
  146. "header": " ",
  147. "sort": "string",
  148. "width": 100,
  149. "fillspace": false,
  150. "hidden": false
  151. },
  152. { "id": "gst", "header": "", "fillspace": false, "hidden": false },
  153. { "id": "gross", "header": "", "fillspace": false, "hidden": false },
  154. { "id": "pay2broker", "header": "Total", "width": 200, "fillspace": false, "hidden": false }
  155. ],
  156. "height": 100,
  157. "url" : "data/loan_total.json"
  158. }
  159. ]
  160. },
  161. ]
  162. }
  163. ]
  164. };
  165. webix.ui(dashboard);