Parcourir la source

add url , model

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

+ 17 - 1
dashboard-v4/dashboard/src/components/ai/AiModelList.tsx

@@ -1,6 +1,14 @@
 import { Link } from "react-router-dom";
 import { Link } from "react-router-dom";
 import { useIntl } from "react-intl";
 import { useIntl } from "react-intl";
-import { Button, Popover, Typography, Dropdown, Modal, message } from "antd";
+import {
+  Button,
+  Popover,
+  Typography,
+  Dropdown,
+  Modal,
+  message,
+  Tag,
+} from "antd";
 import { ActionType, ProList } from "@ant-design/pro-components";
 import { ActionType, ProList } from "@ant-design/pro-components";
 import {
 import {
   PlusOutlined,
   PlusOutlined,
@@ -193,6 +201,14 @@ const AiModelList = ({ studioName }: IWidget) => {
               );
               );
             },
             },
           },
           },
+          description: {
+            dataIndex: "url",
+          },
+          subTitle: {
+            render(dom, entity, index, action, schema) {
+              return <Tag>{entity.model}</Tag>;
+            },
+          },
         }}
         }}
         request={async (params = {}, sorter, filter) => {
         request={async (params = {}, sorter, filter) => {
           console.log(params, sorter, filter);
           console.log(params, sorter, filter);