Browse Source

修复bug

master
suomingxiang 4 months ago
parent
commit
ea2e70d35a
2 changed files with 3 additions and 5 deletions
  1. 3
    2
      src/pages/News/NewsList/edit.tsx
  2. 0
    3
      src/pages/News/NewsList/index.tsx

+ 3
- 2
src/pages/News/NewsList/edit.tsx View File

101
     if(!props.open) return;
101
     if(!props.open) return;
102
     // const { title, content, surface, surfaceUrl, date } = props;
102
     // const { title, content, surface, surfaceUrl, date } = props;
103
     if(!props.currentRow) return;
103
     if(!props.currentRow) return;
104
-    const { digest, top,key,content,surface,surfaceUrl,date,title,source} = props.currentRow;
104
+    const { digest, top,key,content,surface,surfaceUrl,date,title,source,column} = props.currentRow;
105
     if (props.currentRow) {
105
     if (props.currentRow) {
106
       form.setFieldsValue({
106
       form.setFieldsValue({
107
         digest,
107
         digest,
108
         top,
108
         top,
109
-        key
109
+        key,
110
+        column
110
       })
111
       })
111
       // if (top) {
112
       // if (top) {
112
       //   setCheckTop(1)
113
       //   setCheckTop(1)

+ 0
- 3
src/pages/News/NewsList/index.tsx View File

227
                         formRef={formTableRef}
227
                         formRef={formTableRef}
228
                         rowKey="uuid"
228
                         rowKey="uuid"
229
                         key="newsList"
229
                         key="newsList"
230
-                        search={{
231
-                            labelWidth: 120,
232
-                        }}
233
                         toolBarRender={() => [
230
                         toolBarRender={() => [
234
                             <Button
231
                             <Button
235
                                 type="primary"
232
                                 type="primary"

Loading…
Cancel
Save