Selaa lähdekoodia

支持全文索引

tianyunperfect 4 vuotta sitten
vanhempi
commit
9153d8956f
2 muutettua tiedostoa jossa 13 lisäystä ja 2 poistoa
  1. 11 0
      src/pages/Memory/index.tsx
  2. 2 2
      src/pages/MemoryList/index.tsx

+ 11 - 0
src/pages/Memory/index.tsx

@@ -309,6 +309,17 @@ const TableList: React.FC<{}> = () => {
                       >
                         删除
                       </Button>
+                      <span> </span>
+                      <Button
+                        type="primary"
+                        disabled={btnDisable}
+                        onClick={async () => {
+                          setBtnDisable(true);
+                          memoryRes(await service.noMemory(memory));
+                        }}
+                      >
+                        不再复习
+                      </Button>
                     </div>
                     <p />
                     <div>

+ 2 - 2
src/pages/MemoryList/index.tsx

@@ -51,7 +51,7 @@ const TableList: React.FC<{}> = () => {
       title: '正面',
       dataIndex: 'front',
       width: 150,
-      hideInSearch: true,
+      // hideInSearch: true,
       render: (text, row) => {
         const show = getTextFromHtml(row.front);
         return (<>
@@ -150,7 +150,7 @@ const TableList: React.FC<{}> = () => {
   return (
     <PageHeaderWrapper title={false}>
       <ProTable<TableListItem>
-        search={false}
+        search
         headerTitle="查询表格"
         actionRef={actionRef}
         rowKey="id"