|
@@ -131,18 +131,31 @@ const Widget = ({ studioName, courseId }: IWidget) => {
|
|
|
filters: true,
|
|
filters: true,
|
|
|
onFilter: true,
|
|
onFilter: true,
|
|
|
valueEnum: {
|
|
valueEnum: {
|
|
|
|
|
+ /**"success","processing","error","default","warning" */
|
|
|
all: {
|
|
all: {
|
|
|
text: intl.formatMessage({
|
|
text: intl.formatMessage({
|
|
|
id: "tables.publicity.all",
|
|
id: "tables.publicity.all",
|
|
|
}),
|
|
}),
|
|
|
- status: "Default",
|
|
|
|
|
|
|
+ status: "default",
|
|
|
|
|
+ },
|
|
|
|
|
+ normal: {
|
|
|
|
|
+ text: intl.formatMessage({
|
|
|
|
|
+ id: "course.member.status.normal.label",
|
|
|
|
|
+ }),
|
|
|
|
|
+ status: "success",
|
|
|
},
|
|
},
|
|
|
- progressing: {
|
|
|
|
|
|
|
+ sign_up: {
|
|
|
text: intl.formatMessage({
|
|
text: intl.formatMessage({
|
|
|
- id: "course.member.status.progressing.label",
|
|
|
|
|
|
|
+ id: "course.member.status.sign_up.label",
|
|
|
}),
|
|
}),
|
|
|
status: "Processing",
|
|
status: "Processing",
|
|
|
},
|
|
},
|
|
|
|
|
+ invited: {
|
|
|
|
|
+ text: intl.formatMessage({
|
|
|
|
|
+ id: "course.member.status.invited.label",
|
|
|
|
|
+ }),
|
|
|
|
|
+ status: "default",
|
|
|
|
|
+ },
|
|
|
accepted: {
|
|
accepted: {
|
|
|
text: intl.formatMessage({
|
|
text: intl.formatMessage({
|
|
|
id: "course.member.status.accepted.label",
|
|
id: "course.member.status.accepted.label",
|
|
@@ -159,13 +172,13 @@ const Widget = ({ studioName, courseId }: IWidget) => {
|
|
|
text: intl.formatMessage({
|
|
text: intl.formatMessage({
|
|
|
id: "course.member.status.left.label",
|
|
id: "course.member.status.left.label",
|
|
|
}),
|
|
}),
|
|
|
- status: "warning",
|
|
|
|
|
|
|
+ status: "error",
|
|
|
},
|
|
},
|
|
|
blocked: {
|
|
blocked: {
|
|
|
text: intl.formatMessage({
|
|
text: intl.formatMessage({
|
|
|
id: "course.member.status.blocked.label",
|
|
id: "course.member.status.blocked.label",
|
|
|
}),
|
|
}),
|
|
|
- status: "warning",
|
|
|
|
|
|
|
+ status: "error",
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -202,17 +215,18 @@ const Widget = ({ studioName, courseId }: IWidget) => {
|
|
|
items = [
|
|
items = [
|
|
|
{
|
|
{
|
|
|
key: "exp",
|
|
key: "exp",
|
|
|
- label: "经验值",
|
|
|
|
|
|
|
+ label: "查看经验值",
|
|
|
icon: <BarChartOutlined />,
|
|
icon: <BarChartOutlined />,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- key: "delete",
|
|
|
|
|
- label: "删除",
|
|
|
|
|
|
|
+ key: "block",
|
|
|
|
|
+ label: "屏蔽",
|
|
|
icon: <DeleteOutlined />,
|
|
icon: <DeleteOutlined />,
|
|
|
|
|
+ danger: true,
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
break;
|
|
break;
|
|
|
- case "progressing":
|
|
|
|
|
|
|
+ case "sign_up":
|
|
|
items = [
|
|
items = [
|
|
|
{
|
|
{
|
|
|
key: "accept",
|
|
key: "accept",
|
|
@@ -223,10 +237,43 @@ const Widget = ({ studioName, courseId }: IWidget) => {
|
|
|
key: "reject",
|
|
key: "reject",
|
|
|
label: "拒绝",
|
|
label: "拒绝",
|
|
|
icon: <DeleteOutlined />,
|
|
icon: <DeleteOutlined />,
|
|
|
|
|
+ danger: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "invited":
|
|
|
|
|
+ items = [
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "delete",
|
|
|
|
|
+ label: "删除",
|
|
|
|
|
+ icon: <DeleteOutlined />,
|
|
|
|
|
+ danger: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
|
|
+ break;
|
|
|
|
|
+ case "normal":
|
|
|
|
|
+ items = [
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "exp",
|
|
|
|
|
+ label: "查看经验值",
|
|
|
|
|
+ icon: <BarChartOutlined />,
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "block",
|
|
|
|
|
+ label: "屏蔽",
|
|
|
|
|
+ icon: <DeleteOutlined />,
|
|
|
|
|
+ danger: true,
|
|
|
},
|
|
},
|
|
|
];
|
|
];
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
|
|
+ items = [
|
|
|
|
|
+ {
|
|
|
|
|
+ key: "none",
|
|
|
|
|
+ label: "无操作",
|
|
|
|
|
+ disabled: true,
|
|
|
|
|
+ },
|
|
|
|
|
+ ];
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
|
|
|