data.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. import { FormSchema } from '/@/components/Form/index';
  2. export interface ListItem {
  3. key: string;
  4. title: string;
  5. description: string;
  6. extra?: string;
  7. avatar?: string;
  8. color?: string;
  9. }
  10. // tab的list
  11. export const settingList = [
  12. {
  13. key: '1',
  14. name: '基本设置',
  15. component: 'BaseSetting',
  16. },
  17. {
  18. key: '2',
  19. name: '安全设置',
  20. component: 'SecureSetting',
  21. },
  22. {
  23. key: '3',
  24. name: '账号绑定',
  25. component: 'AccountBind',
  26. },
  27. {
  28. key: '4',
  29. name: '新消息通知',
  30. component: 'MsgNotify',
  31. },
  32. ];
  33. // 基础设置 form
  34. export const baseSetschemas: FormSchema[] = [
  35. {
  36. field: 'email',
  37. component: 'Input',
  38. label: '邮箱',
  39. colProps: { span: 18 },
  40. },
  41. {
  42. field: 'name',
  43. component: 'Input',
  44. label: '昵称',
  45. colProps: { span: 18 },
  46. },
  47. {
  48. field: 'introduction',
  49. component: 'InputTextArea',
  50. label: '个人简介',
  51. colProps: { span: 18 },
  52. },
  53. {
  54. field: 'phone',
  55. component: 'Input',
  56. label: '联系电话',
  57. colProps: { span: 18 },
  58. },
  59. {
  60. field: 'address',
  61. component: 'Input',
  62. label: '所在地区',
  63. colProps: { span: 18 },
  64. },
  65. ];
  66. // 安全设置 list
  67. export const secureSettingList: ListItem[] = [
  68. {
  69. key: '1',
  70. title: '账户密码',
  71. description: '当前密码强度::强',
  72. extra: '修改',
  73. },
  74. {
  75. key: '2',
  76. title: '密保手机',
  77. description: '已绑定手机::138****8293',
  78. extra: '修改',
  79. },
  80. {
  81. key: '3',
  82. title: '密保问题',
  83. description: '未设置密保问题,密保问题可有效保护账户安全',
  84. extra: '修改',
  85. },
  86. {
  87. key: '4',
  88. title: '备用邮箱',
  89. description: '已绑定邮箱::ant***sign.com',
  90. extra: '修改',
  91. },
  92. {
  93. key: '5',
  94. title: 'MFA 设备',
  95. description: '未绑定 MFA 设备,绑定后,可以进行二次确认',
  96. extra: '修改',
  97. },
  98. ];
  99. // 账号绑定 list
  100. export const accountBindList: ListItem[] = [
  101. {
  102. key: '1',
  103. title: '绑定淘宝',
  104. description: '当前未绑定淘宝账号',
  105. extra: '绑定',
  106. avatar: 'ri:taobao-fill',
  107. color: '#ff4000',
  108. },
  109. {
  110. key: '2',
  111. title: '绑定支付宝',
  112. description: '当前未绑定支付宝账号',
  113. extra: '绑定',
  114. avatar: 'fa-brands:alipay',
  115. color: '#2eabff',
  116. },
  117. {
  118. key: '3',
  119. title: '绑定钉钉',
  120. description: '当前未绑定钉钉账号',
  121. extra: '绑定',
  122. avatar: 'ri:dingding-fill',
  123. color: '#2eabff',
  124. },
  125. ];
  126. // 新消息通知 list
  127. export const msgNotifyList: ListItem[] = [
  128. {
  129. key: '1',
  130. title: '账户密码',
  131. description: '其他用户的消息将以站内信的形式通知',
  132. },
  133. {
  134. key: '2',
  135. title: '系统消息',
  136. description: '系统消息将以站内信的形式通知',
  137. },
  138. {
  139. key: '3',
  140. title: '待办任务',
  141. description: '待办任务将以站内信的形式通知',
  142. },
  143. ];