index.tsx 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. import { AddRoleModal, PageContainer } from "@/components";
  2. import { FC, useState } from "react";
  3. import { Pane } from "./components/Pane";
  4. import { Table } from "antd";
  5. import { DageTableActions } from "@dage/pc-components";
  6. const SettingRole: FC = () => {
  7. const [addRoleVisible, setAddRoleVisible] = useState(false);
  8. return (
  9. <PageContainer title="设置角色">
  10. <Pane
  11. title="自评组"
  12. required
  13. tips="负责填报指标或上传资料的部门或组织"
  14. onAdd={() => setAddRoleVisible(true)}
  15. >
  16. <Table
  17. className="cus-table gray"
  18. columns={[
  19. {
  20. title: "自评组名称",
  21. align: "center",
  22. dataIndex: "name",
  23. },
  24. {
  25. title: "博物馆级别",
  26. align: "center",
  27. dataIndex: "level",
  28. },
  29. {
  30. title: "组别说明",
  31. align: "center",
  32. dataIndex: "description",
  33. },
  34. {
  35. title: "自评组成员",
  36. align: "center",
  37. dataIndex: "group",
  38. },
  39. {
  40. title: "操作",
  41. align: "center",
  42. render: (item: any, record, index) => {
  43. return <DageTableActions />;
  44. },
  45. },
  46. ]}
  47. />
  48. </Pane>
  49. <Pane
  50. title="评定组"
  51. tips="负责评定责任部门填报结果的人员"
  52. style={{ marginTop: 40 }}
  53. >
  54. <Table
  55. className="cus-table gray"
  56. columns={[
  57. {
  58. title: "评定组名称",
  59. align: "center",
  60. dataIndex: "name",
  61. },
  62. {
  63. title: "组别说明",
  64. align: "center",
  65. dataIndex: "description",
  66. },
  67. {
  68. title: "评定组成员",
  69. align: "center",
  70. dataIndex: "group",
  71. },
  72. {
  73. title: "操作",
  74. align: "center",
  75. render: (item: any, record, index) => {
  76. return <DageTableActions />;
  77. },
  78. },
  79. ]}
  80. />
  81. </Pane>
  82. <AddRoleModal
  83. open={addRoleVisible}
  84. onCancel={() => setAddRoleVisible(false)}
  85. />
  86. </PageContainer>
  87. );
  88. };
  89. export default SettingRole;