EduCollection.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import { MatDialog } from "@angular/material/dialog";
  2. import { openObjectEditDialog, ParseSchema } from "./func-parse";
  3. const EduCollection:ParseSchema = {
  4. "title":"报送合集",
  5. "className": "EduCollection",
  6. emptyImg:"/img/webhook-empty.png",
  7. emptyDesc:"请您创建报送合集,分配合集管理员,统一管理各地区的教材推荐报送流程和配额。",
  8. "fieldsArray": [
  9. {
  10. "key":"title",
  11. "name":"合集名称",
  12. "type": "String",
  13. isHeader:true
  14. },
  15. {
  16. "key":"name",
  17. "name":"合集CODE",
  18. "type": "String",
  19. isHeader:true
  20. },
  21. {
  22. "key":"desc",
  23. "name":"合集描述",
  24. "type": "String",
  25. isHeader:true
  26. },
  27. {
  28. "key":"profileSubmitted",
  29. "name":"合集报送人",
  30. "type": "Pointer",
  31. "targetClass":"Profile",
  32. isHeader:true
  33. },
  34. {
  35. "key":"status",
  36. "name":"合集状态",
  37. "type": "String",
  38. "options":[
  39. {label:"遴选中",value:"遴选中"},
  40. {label:"公示中",value:"公示中"},
  41. {label:"已完成",value:"已完成"}
  42. ],
  43. isHeader:true
  44. },
  45. ],
  46. buttons:[
  47. {
  48. name:"编辑",
  49. place:"item",
  50. show:(options:{object:Parse.Object})=>{
  51. return true
  52. },
  53. handle:(options:{dialog:MatDialog,object:Parse.Object})=>{
  54. openObjectEditDialog(options?.dialog,EduCollection,options?.object)
  55. }
  56. },
  57. ]
  58. };
  59. export default EduCollection;