Sfoglia il codice sorgente

uas手机版
应用列表逻辑
报表列表逻辑

RaoMeng 5 anni fa
parent
commit
f0f255742d

+ 9 - 9
uas-office-web/uas-mobile/src/components/common/currencyList/CurrencyList.jsx

@@ -197,15 +197,15 @@ class CurrencyList extends Component {
   loadDataList = () => {
     const { requestList, listState: { tabList, tabSelect } } = this.props
     requestList && requestList(tabList ? tabList[tabSelect].CALLER : '')
-    // .then(() => {
-    //   this.setState({
-    //     refreshing: false,
-    //   })
-    // }).catch(() => {
-    //   this.setState({
-    //     refreshing: false,
-    //   })
-    // })
+      .then(() => {
+        this.setState({
+          refreshing: false,
+        })
+      }).catch(() => {
+        this.setState({
+          refreshing: false,
+        })
+      })
   }
 
   onItemClick = () => {

+ 8 - 3
uas-office-web/uas-mobile/src/configs/api.config.js

@@ -26,12 +26,15 @@ export const API = {
   //获取应用状态列表
   SERVICES_GETORDERTAB: _baseURL + '/mobile/appweb/services/getOrderTab.action',
   //获取应用列表
-  SETVICES_GETSERVICELIST: _baseURL + '',
+  SETVICES_GETORDERLIST: _baseURL +
+    '/mobile/appweb/services/getOrderList.action',
 
   /*******************************报表*************************************/
   //获取报表菜单
   REPORT_QUERYREPORTLIST: _baseURL +
     '/mobile/appweb/report/queryReportList.action',
+  //获取报表列表
+  REPORT_GETREPORTLIST: _baseURL + '/mobile/appweb/report/getReportList.action',
 
   /*******************************待办*************************************/
   //待办事项目列表
@@ -39,11 +42,13 @@ export const API = {
 
   /*******************************日程*************************************/
   //日程主界面
-  APPCOMMON_DAILYTASKTOTAL: _baseURL + '/mobile/appweb/schedule/getCurrentScheduleList.action',
+  APPCOMMON_DAILYTASKTOTAL: _baseURL +
+    '/mobile/appweb/schedule/getCurrentScheduleList.action',
   //日程具体日期
   APPCOMMON_DAILYTASK: _baseURL + '/mobile/appweb/schedule/getSchedule.action',
   //日程月份状态
-  APPCOMMON_MONTHLYTASKSTATUS: _baseURL + '/mobile/appweb/schedule/getScheduleList.action',
+  APPCOMMON_MONTHLYTASKSTATUS: _baseURL +
+    '/mobile/appweb/schedule/getScheduleList.action',
 
   /*******************************订阅*************************************/
   //获取可订阅列表

+ 1 - 1
uas-office-web/uas-mobile/src/pages/private/report/ReportList.jsx

@@ -64,7 +64,7 @@ class ReportList extends Component {
     }
     return true
 
-    return fetchPostObj(API.SERVICES_GETORDERTAB, {
+    return fetchPostObj(API.REPORT_GETREPORTLIST, {
       caller: this.caller,
       pageIndex,
       pageSize: LIST_PAGE_SIZE,

+ 2 - 9
uas-office-web/uas-mobile/src/pages/private/service/ServiceList.jsx

@@ -82,20 +82,13 @@ class ServiceList extends Component {
   requestList = (code) => {
     this.caller = this.props.match.params.caller
     let { listState: { listData, pageIndex } } = this.props
-    saveListState({
-      listData: [
-        [{}, {}, {}],
-        [{}, {}, {}],
-        [{}, {}, {}],
-      ],
-    })
+
     pageIndex++
     if (pageIndex === 1) {
       listData = []
     }
-    return true
 
-    return fetchPostObj(API.SERVICES_GETORDERTAB, {
+    return fetchPostObj(API.SETVICES_GETORDERLIST, {
       caller: this.caller,
       code: code,
       pageIndex,

+ 1 - 1
uas-office-web/uas-mobile/src/pages/private/subscribe/SubscribeList.jsx

@@ -6,7 +6,7 @@
 import React, { Component } from 'react'
 import { connect } from 'react-redux'
 import ReactDOM from 'react-dom'
-import { PullToRefresh, ListView, Toast } from 'antd-mobile'
+import { PullToRefresh, ListView } from 'antd-mobile'
 import LoadingMore from '../../../components/common/loading/LoadingMore'
 import { isObjEmpty } from '../../../utils/common/common.util'
 import SubscribeGroup