Rows.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. function fromBase64(text){
  2. try{
  3. return atob(text)
  4. }catch(_e){
  5. return text
  6. }
  7. }
  8. export const Encabezados = [
  9. {
  10. name: 'id',
  11. numeric: true,
  12. label: 'ID',
  13. options:{
  14. display:false
  15. }
  16. },
  17. {
  18. name: 'name',
  19. numeric: false,
  20. disablePadding: true,
  21. label: 'Nombre',
  22. },
  23. {
  24. name: 'activacion',
  25. numeric: false,
  26. disablePadding: true,
  27. label: 'Fecha Activación',
  28. },
  29. {
  30. name: 'dead',
  31. numeric: false,
  32. disablePadding: true,
  33. label: 'Fecha vencimiento',
  34. },
  35. // {
  36. // name: 'op',
  37. // numeric: false,
  38. // disablePadding: true,
  39. // label: 'Operación',
  40. // options: {
  41. // filter: false,
  42. // sort: false,
  43. // }
  44. // },
  45. ]
  46. export const niveles_educativos = [
  47. "Primaria",
  48. "Basico",
  49. "Diversificado",
  50. "Tecnico",
  51. "Pregrado / Licenciatura",
  52. "Postgrado / Maestria",
  53. "Doctorado",
  54. "Diplomado",
  55. "Certificacion",
  56. "Cursos"
  57. ]
  58. export function Build(pwds) {
  59. return pwds.map(password => {
  60. let { pwd, plaza_id,deadpwd,dateToActived } = password
  61. return {
  62. id: plaza_id,
  63. name: fromBase64( pwd ),
  64. activacion: dateToActived,//new Date( dateToActived ),
  65. dead: deadpwd //new Date( deadpwd ),
  66. }
  67. })
  68. }