Explorar o código

支持全文索引

tianyunperfect %!s(int64=4) %!d(string=hai) anos
pai
achega
9153d8956f
Modificáronse 2 ficheiros con 13 adicións e 2 borrados
  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"