Procházet zdrojové kódy

fix: 修复仪表盘弹窗显示对应数据问题

outaozhen před 5 roky
rodič
revize
e9388dce1a

+ 3 - 8
src/pages/workbench/Dashboard/components/ReminderList/index.jsx

@@ -111,16 +111,11 @@ const ReminderList = props => {
           // dataSource={state.client}
           params={state.params}
           request={async params => {
-            const {
-              code = -1,
-              data: { total = 0 } = {
-                total: 0
-              }
-            } = await queryReminderList({ ...params })
+            const { code = -1, data } = await queryReminderList({ ...params })
             return {
-              data: [dataType],
+              data: data[dataMap[dataType].key],
               success: code === consts.RET_CODE.SUCCESS,
-              total
+              total: data.total
             }
           }}
           search={false}