tianyunperfect 4 years ago
parent
commit
31828a8d0c
1 changed files with 12 additions and 4 deletions
  1. 12 4
      src/pages/MemoryList/index.tsx

+ 12 - 4
src/pages/MemoryList/index.tsx

@@ -70,7 +70,8 @@ const TableList: React.FC<{}> = () => {
       // hideInSearch: true,
       render: (text, row) => {
         return (<div className={styles.listHeight}>
-          <Quill theme="bubble" readonly onChange={() => {}} value={text} />
+          <Quill theme="bubble" readonly onChange={() => {
+          }} value={text}/>
         </div>);
       }
     },
@@ -81,7 +82,8 @@ const TableList: React.FC<{}> = () => {
       hideInSearch: true,
       render: (text, row) => {
         return (<div className={styles.listHeight}>
-          <Quill theme="bubble" readonly onChange={() => {}} value={text} />
+          <Quill theme="bubble" readonly onChange={() => {
+          }} value={text}/>
         </div>);
       }
     },
@@ -187,6 +189,12 @@ const TableList: React.FC<{}> = () => {
           sorter,
         }}
         request={async (params = {}) => {
+          const front = params.front;
+          if (front) {
+            params.front = ` +${front.split(" ").join(" +")}`;
+          }
+          console.log(params);
+
           const res = await service.queryList(params);
           return {
             data: res.data.list,
@@ -197,7 +205,7 @@ const TableList: React.FC<{}> = () => {
         }}
         columns={columns}
         // rowSelection={{}}
-        scroll={{x:1000}}
+        scroll={{x: 1000}}
       />
       {modelVisible ? (
         <UpdateForm
@@ -208,7 +216,7 @@ const TableList: React.FC<{}> = () => {
             }
           }}
           modalVisible={modelVisible}
-          values={formValues} />
+          values={formValues}/>
       ) : null}
       {showVisible ? (
         <Modal