diff --git a/src/military/fetch.js b/src/military/fetch.js
index 99ee3d71..92fc25a2 100644
--- a/src/military/fetch.js
+++ b/src/military/fetch.js
@@ -5,7 +5,8 @@ import cookie from 'react-cookies';
let actionUrl = '';
if (window.location.href.indexOf(':3007') > -1) {
- actionUrl = 'http://117.50.100.12:8008';
+ actionUrl="https://taskapi.osredm.com"; //测试环境
+ // actionUrl = 'http://117.50.100.12:8008';
// actionUrl='http://192.168.31.74:8081'; //万佳后台
} else if (window.location.href.indexOf('117.50.100.12') > -1 ) {
actionUrl = "http://117.50.100.12:8008"; //测试环境
diff --git a/src/military/task.js b/src/military/task.js
index b6b4053d..7aa3f4ea 100644
--- a/src/military/task.js
+++ b/src/military/task.js
@@ -31,50 +31,13 @@ const MyTask = Loadable({
loading: Loading,
});
-const TaskManage = Loadable({
- loader: () => import("./task/taskManage"),
+
+const TaskAdminRouter = Loadable({
+ loader: () => import("./task/taskAdminRouter"),
loading: Loading,
});
-const PaperManage = Loadable({
- loader: () => import("./task/paperManage"),
- loading: Loading,
-});
-const PaperComplain = Loadable({
- loader: () => import("./task/paperComplain"),
- loading: Loading,
-});
-
-const ProofManage = Loadable({
- loader: () => import("./task/proofManage"),
- loading: Loading,
-});
-
-const PublicityComplain = Loadable({
- loader: () => import("./task/publicityComplain"),
- loading: Loading,
-});
-
-const AgreementManage = Loadable({
- loader: () => import("./task/agreementManage"),
- loading: Loading,
-});
-
-const PayProof = Loadable({
- loader: () => import("./task/payProof"),
- loading: Loading,
-});
-
-const TaskAdmin = Loadable({
- loader: () => import("./task/taskAdmin"),
- loading: Loading,
-});
-
-const DelayManage = Loadable({
- loader: () => import("./task/delayManage"),
- loading: Loading,
-});
const Index = (propsTransmit) => {
// 开发时,从代理的位置获取用户信息
@@ -126,77 +89,11 @@ const Index = (propsTransmit) => {
)}
>
- {/* 任务管理审核 */}
+ {/* 管理员管理 */}
{days}天
} + {detailData.status !== status && days ?{days}天
: ''} {/* 因为有时只延期几秒或者几分钟时后端没有返回延期,所以这里加一个判断 */} - {detailData.status === status && days &&{surplus < 0 ? ('延期' + surplusTimetext) : ('剩余' + surplusTimetext)}
} + {detailData.status === status && days ?{surplus < 0 ? ('延期' + surplusTimetext) : ('剩余' + surplusTimetext)}
: ''}