Просмотр исходного кода

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

outaozhen 5 лет назад
Родитель
Сommit
e9388dce1a
1 измененных файлов с 3 добавлено и 8 удалено
  1. 3 8
      src/pages/workbench/Dashboard/components/ReminderList/index.jsx

+ 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}