EduProcess.js 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. export const EduProcess = {
  2. "className": "EduProcess",
  3. "fields": {
  4. "eduCollection": { //指向报送合集
  5. "type": "Pointer",
  6. "targetClass": "EduCollection",
  7. "required": false
  8. },
  9. "branch": { //类别
  10. "type": "Pointer",
  11. "targetClass": "Department",
  12. "required": false
  13. },
  14. "department": { //部门/单位
  15. "type": "Pointer",
  16. "targetClass": "Department",
  17. "required": false
  18. },
  19. // "profileSubmitteds": {//流程管理员
  20. // "type": "Array",
  21. // "required": false
  22. // },
  23. "profileSubmitted": {//流程管理员
  24. "type": "Pointer",
  25. "targetClass":"Profile",
  26. "required": false
  27. },
  28. "name": {//流程名称
  29. "type": "String",
  30. "required": false
  31. },
  32. "num": {//报送名额
  33. "type": "Number",
  34. "required": false
  35. },
  36. "code": {//流程唯一标识
  37. "type": "String",
  38. "required": false
  39. },
  40. "startDate": {//开始时间
  41. "type": "Date",
  42. "required": false
  43. },
  44. "deadline": {//截止时间
  45. "type": "Date",
  46. "required": false
  47. },
  48. /**@状态
  49. * 100:暂停
  50. * 200:已开始
  51. * 201:评审中
  52. * 300:已公示
  53. * 400:已提交(完成)
  54. */
  55. "status": {
  56. "type": "String",
  57. "required": false
  58. },
  59. "releaseDate": {//公示时间
  60. "type": "Date",
  61. "required": false
  62. },
  63. "collectStartData": {//收集文件开始时间
  64. "type": "Date",
  65. "required": false
  66. },
  67. "collectEndData": {//收集文件结束时间
  68. "type": "Date",
  69. "required": false
  70. },
  71. },
  72. "classLevelPermissions": {
  73. "find": {
  74. "*": true
  75. },
  76. "get": {
  77. "*": true
  78. },
  79. "count": {
  80. "*": true
  81. },
  82. "create": {
  83. "*": true
  84. },
  85. "update": {
  86. "*": true
  87. },
  88. "delete": {
  89. "*": true
  90. },
  91. "addField": {
  92. "*": true
  93. },
  94. "protectedFields": {
  95. "*": []
  96. }
  97. }
  98. }
  99. module.exports.EduProcess = EduProcess