Parcourir la source

:fire: columns

visuddhinanda il y a 1 an
Parent
commit
a8da4ad095
1 fichiers modifiés avec 0 ajouts et 110 suppressions
  1. 0 110
      dashboard-v4/dashboard/src/components/ai/AiModelList.tsx

+ 0 - 110
dashboard-v4/dashboard/src/components/ai/AiModelList.tsx

@@ -81,116 +81,6 @@ const AiModelList = ({ studioName }: IWidget) => {
         onRow={(record) => ({
           onClick: () => {},
         })}
-        columns={[
-          {
-            title: intl.formatMessage({
-              id: "dict.fields.sn.label",
-            }),
-            dataIndex: "sn",
-            key: "sn",
-            width: 50,
-            search: false,
-          },
-          {
-            title: intl.formatMessage({
-              id: "forms.fields.name.label",
-            }),
-            dataIndex: "name",
-            key: "name",
-            tooltip: "过长会自动收缩",
-            ellipsis: true,
-            render: (text, row, index, action) => {
-              return (
-                <div key={index}>
-                  <div>
-                    <Link to={`/studio/${studioName}/group/${row.uid}/show`}>
-                      {row.name}
-                    </Link>
-                  </div>
-                  <Text type="secondary"></Text>
-                </div>
-              );
-            },
-          },
-
-          {
-            title: intl.formatMessage({
-              id: "forms.fields.description.label",
-            }),
-            dataIndex: "description",
-            key: "description",
-            search: false,
-            tooltip: "过长会自动收缩",
-            ellipsis: true,
-          },
-          {
-            title: intl.formatMessage({
-              id: "forms.fields.role.label",
-            }),
-            dataIndex: "role",
-            key: "role",
-            width: 100,
-            search: false,
-            filters: true,
-            onFilter: true,
-            valueEnum: RoleValueEnum(),
-          },
-          {
-            title: intl.formatMessage({
-              id: "forms.fields.created-at.label",
-            }),
-            key: "created_at",
-            width: 100,
-            search: false,
-            dataIndex: "created_at",
-            valueType: "date",
-            sorter: true,
-          },
-          {
-            title: intl.formatMessage({ id: "buttons.option" }),
-            key: "option",
-            width: 120,
-            valueType: "option",
-            render: (text, row, index, action) => [
-              <Dropdown.Button
-                key={index}
-                type="link"
-                menu={{
-                  items: [
-                    {
-                      key: "remove",
-                      label: intl.formatMessage({
-                        id: "buttons.delete",
-                      }),
-                      icon: <DeleteOutlined />,
-                      danger: true,
-                    },
-                  ],
-                  onClick: (e) => {
-                    switch (e.key) {
-                      case "share":
-                        break;
-                      case "remove":
-                        showDeleteConfirm(row.uid, row.name);
-                        break;
-                      default:
-                        break;
-                    }
-                  },
-                }}
-              >
-                <Link
-                  to={`/studio/${studioName}/group/${row.uid}/edit`}
-                  target="_blank"
-                >
-                  {intl.formatMessage({
-                    id: "buttons.edit",
-                  })}
-                </Link>
-              </Dropdown.Button>,
-            ],
-          },
-        ]}
         metas={{
           title: {
             dataIndex: "name",