data.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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: 'password',
  37. component: 'StrengthMeter',
  38. label: '旧密码',
  39. labelWidth: 60,
  40. required: true,
  41. colProps: { span: 24 },
  42. },
  43. {
  44. field: 'newPassword',
  45. component: 'StrengthMeter',
  46. label: '新密码',
  47. labelWidth: 60,
  48. required: true,
  49. colProps: { span: 24 },
  50. },
  51. // {
  52. // field: 'email',
  53. // component: 'Input',
  54. // label: '邮箱',
  55. // colProps: { span: 18 },
  56. // },
  57. // {
  58. // field: 'name',
  59. // component: 'Input',
  60. // label: '昵称',
  61. // colProps: { span: 18 },
  62. // },
  63. // {
  64. // field: 'introduction',
  65. // component: 'InputTextArea',
  66. // label: '个人简介',
  67. // colProps: { span: 18 },
  68. // },
  69. // {
  70. // field: 'phone',
  71. // component: 'Input',
  72. // label: '联系电话',
  73. // colProps: { span: 18 },
  74. // },
  75. // {
  76. // field: 'address',
  77. // component: 'Input',
  78. // label: '所在地区',
  79. // colProps: { span: 18 },
  80. // },
  81. ];
  82. // 安全设置 list
  83. export const secureSettingList: ListItem[] = [
  84. {
  85. key: '1',
  86. title: '账户密码',
  87. description: '当前密码强度::强',
  88. extra: '修改',
  89. },
  90. {
  91. key: '2',
  92. title: '密保手机',
  93. description: '已绑定手机::138****8293',
  94. extra: '修改',
  95. },
  96. {
  97. key: '3',
  98. title: '密保问题',
  99. description: '未设置密保问题,密保问题可有效保护账户安全',
  100. extra: '修改',
  101. },
  102. {
  103. key: '4',
  104. title: '备用邮箱',
  105. description: '已绑定邮箱::ant***sign.com',
  106. extra: '修改',
  107. },
  108. {
  109. key: '5',
  110. title: 'MFA 设备',
  111. description: '未绑定 MFA 设备,绑定后,可以进行二次确认',
  112. extra: '修改',
  113. },
  114. ];
  115. // 账号绑定 list
  116. export const accountBindList: ListItem[] = [
  117. {
  118. key: '1',
  119. title: '绑定淘宝',
  120. description: '当前未绑定淘宝账号',
  121. extra: '绑定',
  122. avatar: 'ri:taobao-fill',
  123. color: '#ff4000',
  124. },
  125. {
  126. key: '2',
  127. title: '绑定支付宝',
  128. description: '当前未绑定支付宝账号',
  129. extra: '绑定',
  130. avatar: 'fa-brands:alipay',
  131. color: '#2eabff',
  132. },
  133. {
  134. key: '3',
  135. title: '绑定钉钉',
  136. description: '当前未绑定钉钉账号',
  137. extra: '绑定',
  138. avatar: 'ri:dingding-fill',
  139. color: '#2eabff',
  140. },
  141. ];
  142. // 新消息通知 list
  143. export const msgNotifyList: ListItem[] = [
  144. {
  145. key: '1',
  146. title: '账户密码',
  147. description: '其他用户的消息将以站内信的形式通知',
  148. },
  149. {
  150. key: '2',
  151. title: '系统消息',
  152. description: '系统消息将以站内信的形式通知',
  153. },
  154. {
  155. key: '3',
  156. title: '待办任务',
  157. description: '待办任务将以站内信的形式通知',
  158. },
  159. ];