2
0
Эх сурвалжийг харах

公开性枚举使用PublicityValueEnum

visuddhinanda 3 жил өмнө
parent
commit
2b009f4d28

+ 27 - 27
dashboard/src/pages/studio/channel/list.tsx

@@ -105,57 +105,57 @@ const Widget = () => {
 						search: false,
 						filters: true,
 						onFilter: true,
-						valueEnum: PublicityValueEnum(),
-					},
-					{
-						title: intl.formatMessage({
-							id: "forms.fields.publicity.label",
-						}),
-						dataIndex: "publicity",
-						key: "publicity",
-						width: 100,
-						search: false,
-						filters: true,
-						onFilter: true,
 						valueEnum: {
 							all: {
 								text: intl.formatMessage({
-									id: "tables.publicity.all",
+									id: "channel.type.all.title",
 								}),
 								status: "Default",
 							},
-							0: {
+							translation: {
 								text: intl.formatMessage({
-									id: "tables.publicity.disable",
+									id: "channel.type.translation.title",
 								}),
-								status: "Default",
+								status: "Success",
 							},
-							10: {
+							nissaya: {
 								text: intl.formatMessage({
-									id: "tables.publicity.private",
+									id: "channel.type.nissaya.title",
 								}),
 								status: "Processing",
 							},
-							20: {
+							commentary: {
 								text: intl.formatMessage({
-									id: "tables.publicity.public.bylink",
+									id: "channel.type.commentary.title",
 								}),
-								status: "Processing",
+								status: "Default",
 							},
-							30: {
+							original: {
 								text: intl.formatMessage({
-									id: "tables.publicity.public",
+									id: "channel.type.original.title",
 								}),
-								status: "Success",
+								status: "Default",
 							},
-							40: {
+							general: {
 								text: intl.formatMessage({
-									id: "tables.publicity.public.edit",
+									id: "channel.type.general.title",
 								}),
-								status: "Success",
+								status: "Default",
 							},
 						},
 					},
+					{
+						title: intl.formatMessage({
+							id: "forms.fields.publicity.label",
+						}),
+						dataIndex: "publicity",
+						key: "publicity",
+						width: 100,
+						search: false,
+						filters: true,
+						onFilter: true,
+						valueEnum: PublicityValueEnum(),
+					},
 					{
 						title: intl.formatMessage({
 							id: "forms.fields.created-at.label",