Browse Source

Merge pull request #1272 from visuddhinanda/agile

sorter by category
visuddhinanda 2 years ago
parent
commit
3f5bf7db58
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dashboard/src/pages/admin/relation/list.tsx

+ 3 - 1
dashboard/src/pages/admin/relation/list.tsx

@@ -95,6 +95,7 @@ export interface IRelation {
   created_at?: string;
   created_at?: string;
 }
 }
 interface IParams {
 interface IParams {
+  name?: string;
   from?: string;
   from?: string;
   to?: string;
   to?: string;
   match?: string;
   match?: string;
@@ -278,7 +279,7 @@ const Widget = () => {
             }),
             }),
             dataIndex: "category",
             dataIndex: "category",
             key: "category",
             key: "category",
-
+            sorter: true,
             render: (text, row, index, action) => {
             render: (text, row, index, action) => {
               return (
               return (
                 <Space>
                 <Space>
@@ -396,6 +397,7 @@ const Widget = () => {
             url += `&case=${filter.case.join()}`;
             url += `&case=${filter.case.join()}`;
           }
           }
 
 
+          url += params.name ? `&name=${params.name}` : "";
           url += params.match ? `&match=${params.match}` : "";
           url += params.match ? `&match=${params.match}` : "";
           url += params.from ? `&from=${params.from}` : "";
           url += params.from ? `&from=${params.from}` : "";
           url += params.to ? `&to=${params.to}` : "";
           url += params.to ? `&to=${params.to}` : "";