config.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. export const columns = [
  2. {
  3. title: window.$t("flowPool.poolNumber"),
  4. dataIndex: "id",
  5. align: "center",
  6. ellipsis: true,
  7. width: 50,
  8. },
  9. {
  10. title: window.$t("flowPool.label"),
  11. dataIndex: "label",
  12. align: "center",
  13. width: 200,
  14. tooltip: true,
  15. ellipsis: true,
  16. },
  17. {
  18. title: window.$t("flowPool.trafficPoolStatus"),
  19. slotName: "status",
  20. align: "center",
  21. width: 200,
  22. tooltip: true,
  23. ellipsis: true,
  24. },
  25. {
  26. title: window.$t("flowPool.source"),
  27. dataIndex: "sourceName",
  28. align: "center",
  29. width: 200,
  30. tooltip: true,
  31. ellipsis: true,
  32. },
  33. {
  34. title: window.$t("flowPool.tariffName"),
  35. dataIndex: "simTariffName",
  36. align: "center",
  37. width: 200,
  38. tooltip: true,
  39. ellipsis: true,
  40. },
  41. {
  42. title: window.$t("flowPool.ActivatedName"),
  43. dataIndex: "Activated",
  44. align: "center",
  45. width: 200,
  46. tooltip: true,
  47. ellipsis: true,
  48. },
  49. {
  50. title: window.$t("flowPool.HaveBeenUsedName"),
  51. dataIndex: "HaveBeenUsed",
  52. align: "center",
  53. width: 200,
  54. tooltip: true,
  55. ellipsis: true,
  56. },
  57. {
  58. title: window.$t("flowPool.updated_at"),
  59. dataIndex: "updatedAt",
  60. align: "center",
  61. width: 200,
  62. tooltip: true,
  63. ellipsis: true,
  64. },
  65. {
  66. title: window.$t("global.common.operations"),
  67. slotName: "id",
  68. align: "center",
  69. width: 250,
  70. fixed: "right",
  71. },
  72. ];
  73. export const columnsAfter = [
  74. {
  75. title: window.$t("flowPool.poolNumber"),
  76. dataIndex: "id",
  77. align: "center",
  78. ellipsis: true,
  79. width: 50,
  80. },
  81. {
  82. title: window.$t("flowPool.label"),
  83. dataIndex: "label",
  84. align: "center",
  85. width: 200,
  86. tooltip: true,
  87. ellipsis: true,
  88. },
  89. {
  90. title: window.$t("flowPool.trafficPoolStatus"),
  91. slotName: "status",
  92. align: "center",
  93. width: 200,
  94. tooltip: true,
  95. ellipsis: true,
  96. },
  97. {
  98. title: window.$t("flowPool.source"),
  99. dataIndex: "sourceName",
  100. align: "center",
  101. width: 200,
  102. tooltip: true,
  103. ellipsis: true,
  104. },
  105. {
  106. title: window.$t("flowPool.tariffName"),
  107. dataIndex: "simTariffName",
  108. align: "center",
  109. width: 200,
  110. tooltip: true,
  111. ellipsis: true,
  112. },
  113. {
  114. title: "池大小",
  115. dataIndex: "size",
  116. align: "center",
  117. width: 200,
  118. tooltip: true,
  119. ellipsis: true,
  120. },
  121. {
  122. title: window.$t("flowPool.ActivatedName"),
  123. dataIndex: "Activated",
  124. align: "center",
  125. width: 200,
  126. tooltip: true,
  127. ellipsis: true,
  128. },
  129. {
  130. title: window.$t("flowPool.HaveBeenUsedName"),
  131. dataIndex: "HaveBeenUsed",
  132. align: "center",
  133. width: 200,
  134. tooltip: true,
  135. ellipsis: true,
  136. },
  137. {
  138. title: window.$t("flowPool.updated_at"),
  139. dataIndex: "updatedAt",
  140. align: "center",
  141. width: 200,
  142. tooltip: true,
  143. ellipsis: true,
  144. },
  145. {
  146. title: window.$t("global.common.operations"),
  147. slotName: "id",
  148. align: "center",
  149. width: 250,
  150. fixed: "right",
  151. },
  152. ];
  153. export const SearchFormList = [
  154. {
  155. type: "input",
  156. label: "流量池名称",
  157. field: "label",
  158. value: "", // 双向绑定的值
  159. },
  160. {
  161. type: "select",
  162. label: "流量池状态",
  163. field: "status",
  164. options: [], // 默认空,后面会通过字典加载
  165. dict: "trafficPacketStatus",
  166. value: "", // 双向绑定的值
  167. width: "200",
  168. },
  169. {
  170. type: "select",
  171. label: "运营商名称",
  172. field: "source",
  173. options: [], // 默认空,后面会通过字典加载
  174. dict: "source",
  175. value: "", // 双向绑定的值
  176. width: "200",
  177. },
  178. {
  179. type: "input",
  180. label: "资费名称",
  181. field: "tariffName",
  182. value: "", // 双向绑定的值
  183. },
  184. {
  185. type: "range-picker",
  186. label: "更新日期",
  187. field: "updatedAt",
  188. value: [], // 双向绑定的值
  189. width: "240",
  190. },
  191. ];