diff --git a/src/views/student/group/data.tsx b/src/views/student/group/data.tsx new file mode 100644 index 0000000000000000000000000000000000000000..bc093e985ae37676b3ca02ab1280297b899539ed --- /dev/null +++ b/src/views/student/group/data.tsx @@ -0,0 +1,5 @@ +import { BasicColumn } from "/@/components/Table"; + +export const enteredGroupTableColumns: BasicColumn[] = []; + +export const teacherListTableColumns: BasicColumn[] = []; diff --git a/src/views/student/group/detail/index.vue b/src/views/student/group/detail/index.vue index 38ab55d57e4afef5b39681eb927af15d79a184b5..0ed24e667a584c49934be6fc816efacfde5d3c5e 100644 --- a/src/views/student/group/detail/index.vue +++ b/src/views/student/group/detail/index.vue @@ -1,6 +1,10 @@ diff --git a/src/views/student/group/join/index.vue b/src/views/student/group/join/index.vue index 0b754f6f8aae5ec9d6204ec09804e269afa3421e..c1409e8388921f479ee123a11ae957a6c94ea186 100644 --- a/src/views/student/group/join/index.vue +++ b/src/views/student/group/join/index.vue @@ -21,22 +21,22 @@ diff --git a/src/views/student/group/list/index.vue b/src/views/student/group/list/index.vue index fbd6a29d94e796db508030aec6173791828f8669..d0a9428009ef5c883daf245f758c4778a8fbfcac 100644 --- a/src/views/student/group/list/index.vue +++ b/src/views/student/group/list/index.vue @@ -6,13 +6,13 @@ diff --git a/src/views/teacher/group/apply/ApplicationDesc.vue b/src/views/teacher/group/apply/ApplicationDesc.vue new file mode 100644 index 0000000000000000000000000000000000000000..55517be497d01c90e2209e937a22548ba11f6550 --- /dev/null +++ b/src/views/teacher/group/apply/ApplicationDesc.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/views/teacher/group/apply/index.vue b/src/views/teacher/group/apply/index.vue index 89afdd22a383dbfcadf4d92147c2d977d03a5a53..f8fa6b4f3e8b70ed49c385025006a9f5f166d4b2 100644 --- a/src/views/teacher/group/apply/index.vue +++ b/src/views/teacher/group/apply/index.vue @@ -9,13 +9,13 @@ { label: '详情', icon: 'clarity:info-standard-line', - // onClick: handleDesc.bind(null, record), + onClick: handleDesc.bind(null, record), }, { label: '同意', color: 'success', icon: 'clarity:success-standard-line', - // onClick: handleEdit.bind(null, record), + onClick: handleAccept.bind(null, record), }, { label: '拒绝', @@ -25,7 +25,7 @@ title: '确认拒绝?', okText: '确认', cancelText: '取消', - confirm: handleDelete.bind(null, record), + confirm: handleReject.bind(null, record), }, }, ]" @@ -33,37 +33,49 @@ + diff --git a/src/views/teacher/group/list/group.data.tsx b/src/views/teacher/group/list/group.data.tsx index a154ba53a0676856239f8b2ecd3e5dfe7607a96e..3dfa79886a58c78280cec2db92864da1add7e084 100644 --- a/src/views/teacher/group/list/group.data.tsx +++ b/src/views/teacher/group/list/group.data.tsx @@ -51,7 +51,7 @@ export const formSchema: FormSchema[] = [ }, ]; -export const tableColums: BasicColumn[] = [ +export const tableColumns: BasicColumn[] = [ { title: "小组主键", dataIndex: "groupId", @@ -74,3 +74,41 @@ export const tableColums: BasicColumn[] = [ width: 100, }, ]; + +export const applicationSchema: DescItem[] = [ + { + field: "userName", + label: "申请人", + }, + { + field: "userCode", + label: "学号", + }, + { + field: "reason", + label: "申请理由", + }, + { + field: "applyDate", + label: "申请时间", + }, +]; + +export const applicationTableColumns: BasicColumn[] = [ + { + title: "申请日期", + dataIndex: "applyDate", + }, + { + title: "申请人", + dataIndex: "userName", + }, + { + title: "学号", + dataIndex: "userCode", + }, + { + title: "申请小组名", + dataIndex: "groupName", + }, +]; diff --git a/src/views/teacher/group/list/index.vue b/src/views/teacher/group/list/index.vue index 4aa596c600cf2cce6d63e888c1f923c17baf3303..2f51573f786b36adf9abf566c61bb1d5eda74051 100644 --- a/src/views/teacher/group/list/index.vue +++ b/src/views/teacher/group/list/index.vue @@ -19,6 +19,11 @@ icon: 'clarity:note-edit-line', onClick: handleEdit.bind(null, record), }, + { + label: '管理', + icon: 'clarity:note-edit-line', + onClick: handleManage.bind(null, record), + }, { label: '删除', color: 'error', @@ -42,18 +47,19 @@