Ver Fonte

Merge pull request #2068 from visuddhinanda/agile

channel绑定放 description
visuddhinanda há 1 ano atrás
pai
commit
896f2f464d

+ 8 - 10
dashboard/src/components/course/CourseMemberList.tsx

@@ -99,6 +99,14 @@ const CourseMemberListWidget = ({ courseId, onSelect }: IWidget) => {
           description: {
             dataIndex: "desc",
             search: false,
+            render(dom, entity, index, action, schema) {
+              return (
+                <div>
+                  {"channel:"}
+                  {entity.channel?.name ?? "未绑定"}
+                </div>
+              );
+            },
           },
           subTitle: {
             search: false,
@@ -116,16 +124,6 @@ const CourseMemberListWidget = ({ courseId, onSelect }: IWidget) => {
               );
             },
           },
-          content: {
-            render(dom, entity, index, action, schema) {
-              return (
-                <div>
-                  {"channel:"}
-                  {entity.channel?.name ?? "未绑定"}
-                </div>
-              );
-            },
-          },
           actions: {
             search: false,
             render: (text, row, index, action) => {

+ 2 - 2
dashboard/src/pages/studio/course/edit.tsx

@@ -43,7 +43,7 @@ const Widget = () => {
               label: `成员`,
               children: (
                 <div style={{ display: "flex" }}>
-                  <div style={{ flex: 1 }}>
+                  <div style={{ flex: 3 }}>
                     <CourseMemberList
                       courseId={courseId}
                       onSelect={(value: ICourseMember) => {
@@ -51,7 +51,7 @@ const Widget = () => {
                       }}
                     />
                   </div>
-                  <div style={{ flex: 1 }}>
+                  <div style={{ flex: 2 }}>
                     <Tabs
                       items={[
                         {