From 8a9247ea6abbe3ae9914428db38e1bc38e77f2fc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= <792998983@qq.com>
Date: Thu, 2 Feb 2023 17:00:03 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=9B=E5=AE=A2=E3=80=81?=
=?UTF-8?q?=E5=85=AC=E5=91=8A=E3=80=81=E6=88=90=E6=9E=9C=E7=AD=89=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E4=B8=8B=E8=BD=BD=E5=8F=82=E6=95=B0=EF=BC=8C=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E5=A4=B4=E9=83=A8=E5=AF=BC=E8=88=AA=E7=AD=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/AppConfig.js | 4 +-
src/forge/Head/header.scss | 5 ++-
src/forge/Wiki/components/config.js | 2 +-
.../achievement/noticeEdit/index.jsx | 5 ++-
src/managements/needApply/list.jsx | 6 +--
src/managements/notice/noticeEdit/index.jsx | 5 ++-
src/military/components/config.js | 2 +-
src/military/components/login/index.jsx | 2 +-
src/military/expert/expertList/index.jsx | 13 +++----
.../expert/expertUser/taskDetail/index.jsx | 3 +-
src/military/expert/registerList/index.jsx | 13 +++----
.../components/itemAgreementManage/index.jsx | 5 +--
.../task/components/itemDelayManage/index.jsx | 2 +-
.../task/components/itemListMyTask/index.jsx | 8 ++--
.../task/components/itemListPaper/index.jsx | 5 +--
.../task/components/itemListTask/index.jsx | 2 +-
.../task/components/itemPayProof/index.jsx | 23 ++++++++++--
.../task/components/itemProofManage/index.jsx | 5 +--
.../itemPublicityComplain/index.jsx | 5 +--
.../task/components/itemTaskManage/index.jsx | 2 +-
src/military/task/myTask/followTask.jsx | 37 ++-----------------
src/military/task/paperComplain/index.js | 3 +-
src/military/task/paperManage/index.jsx | 7 ++--
src/military/task/taskDetail/index.jsx | 8 ++--
src/military/task/taskEdit/index.jsx | 6 +--
src/modules/tpm/NewHeader.js | 6 +--
src/modules/tpm/TPMIndex.css | 4 +-
27 files changed, 82 insertions(+), 106 deletions(-)
diff --git a/src/AppConfig.js b/src/AppConfig.js
index 34432e15..7d0284c4 100644
--- a/src/AppConfig.js
+++ b/src/AppConfig.js
@@ -33,8 +33,8 @@ export function initAxiosInterceptors(props) {
initOnlineOfflineListener();
// var proxy = "http://192.168.1.40:3000";
- // var proxy = "http://111.8.36.180:8000";
- var proxy = "http://117.50.100.12:49999";
+ var proxy = "http://111.8.36.180:8000";
+ // var proxy = "http://117.50.100.12:49999";
// var proxy = "https://www.osredm.com";
//响应前的设置
diff --git a/src/forge/Head/header.scss b/src/forge/Head/header.scss
index d5f4d571..044180a1 100644
--- a/src/forge/Head/header.scss
+++ b/src/forge/Head/header.scss
@@ -147,7 +147,7 @@
height: 446px;
box-shadow: 0px 4px 8px 2px rgba(212, 212, 212, 0.5);
border-radius: 4px;
- margin-top: -10px;
+ margin-top: -11px;
padding: 12px 1px 12px 0;
}
}
@@ -184,6 +184,9 @@
.message-icon{
position: relative;
+ height: 60px;
+ display: inline-flex;
+ align-items: center;
.ant-scroll-number{
// right:12px;
padding: 0 0px;
diff --git a/src/forge/Wiki/components/config.js b/src/forge/Wiki/components/config.js
index bda41339..0ed142a8 100644
--- a/src/forge/Wiki/components/config.js
+++ b/src/forge/Wiki/components/config.js
@@ -18,7 +18,7 @@ export const editorConfig = {
customInsert: function (insertImgFn, result) {
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
if (result && result.data && result.data.id) {
- insertImgFn(`${httpUrl}/busiAttachments/view/${result.data.id}`);
+ insertImgFn(`${httpUrl}/busiAttachments/viewAttachment/${result.data.uniqueFileName}`);
}
}
},
diff --git a/src/managements/achievement/noticeEdit/index.jsx b/src/managements/achievement/noticeEdit/index.jsx
index fe170620..5ed45127 100644
--- a/src/managements/achievement/noticeEdit/index.jsx
+++ b/src/managements/achievement/noticeEdit/index.jsx
@@ -90,7 +90,7 @@ const NoticeEdit = Form.create()(({ form, match, history, showNotification }) =>
// result 即服务端返回的接口
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
if (result && result.data && result.data.id) {
- insertImgFn(`${actionUrl}/busiAttachments/view/${result.data.id}`);
+ insertImgFn(`${actionUrl}/busiAttachments/viewAttachment/${result.data.uniqueFileName}`);
}
}
}
@@ -149,7 +149,8 @@ const NoticeEdit = Form.create()(({ form, match, history, showNotification }) =>
params.isSecret = Number(params.isSecret);
if (fileList && fileList.length) {
params.fileName = fileList[0].fileName || fileList[0].response.data.fileName;
- params.fileDownloadPath = fileList[0].fileDownloadPath || `${actionUrl}/busiAttachments/download/${fileList[0].response.data.id}`;
+ // params.fileDownloadPath = fileList[0].fileDownloadPath || `${actionUrl}/busiAttachments/download/${fileList[0].response.data.id}`;
+ params.fileDownloadPath = fileList[0].fileDownloadPath || `${actionUrl}/busiAttachments/downloadAttachment/${fileList[0].response.data.uniqueFileName}`;
}
if (id) {
// 编辑
diff --git a/src/managements/needApply/list.jsx b/src/managements/needApply/list.jsx
index fa9c67d8..cf772836 100644
--- a/src/managements/needApply/list.jsx
+++ b/src/managements/needApply/list.jsx
@@ -172,7 +172,7 @@ function List(props){
title: '任务书',
dataIndex: 'assignmentBookAttachments',
ellipsis: true,
- render: (text, record) => {return text ? {text[0].fileName} : '--'}
+ render: (text, record) => {return text ? {text[0].fileName} : '--'}
},
]
case 3: return [
@@ -233,7 +233,7 @@ function List(props){
title: '策划书',
dataIndex: 'competitionProposalAttachments',
ellipsis: true,
- render: (text, record) => {return text ? {text[0].fileName} : '--'}
+ render: (text, record) => {return text ? {text[0].fileName} : '--'}
},
]
default: return [
@@ -292,7 +292,7 @@ function List(props){
title: '成果证明材料',
dataIndex: 'achievementMaterialAttachments',
ellipsis: true,
- render: (text, record) => {return text ? {text[0].fileName} : '--'}
+ render: (text, record) => {return text ? {text[0].fileName} : '--'}
},
]
}
diff --git a/src/managements/notice/noticeEdit/index.jsx b/src/managements/notice/noticeEdit/index.jsx
index 6957451a..ac05d0bb 100644
--- a/src/managements/notice/noticeEdit/index.jsx
+++ b/src/managements/notice/noticeEdit/index.jsx
@@ -91,7 +91,7 @@ const NoticeEdit = Form.create()(forwardRef(({ form, match, history }, ref) => {
// result 即服务端返回的接口
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
if (result && result.data && result.data.id) {
- insertImgFn(`${actionUrl}/busiAttachments/view/${result.data.id}`);
+ insertImgFn(`${actionUrl}/busiAttachments/viewAttachment/${result.data.uniqueFileName}`);
}
}
}
@@ -151,7 +151,8 @@ const NoticeEdit = Form.create()(forwardRef(({ form, match, history }, ref) => {
params.isSecret = Number(params.isSecret);
if (fileList && fileList.length) {
params.fileName = fileList[0].fileName || fileList[0].response.data.fileName;
- params.fileDownloadPath = fileList[0].fileDownloadPath || `${actionUrl}/busiAttachments/download/${fileList[0].response.data.id}`;
+ // params.fileDownloadPath = fileList[0].fileDownloadPath || `${actionUrl}/busiAttachments/download/${fileList[0].response.data.id}`;
+ params.fileDownloadPath = fileList[0].fileDownloadPath || `${actionUrl}/busiAttachments/downloadAttachment/${fileList[0].response.data.uniqueFileName}`;
}
if (id) {
// 编辑
diff --git a/src/military/components/config.js b/src/military/components/config.js
index 320dd15f..548734e2 100644
--- a/src/military/components/config.js
+++ b/src/military/components/config.js
@@ -18,7 +18,7 @@ export const editorConfig = {
customInsert: function (insertImgFn, result) {
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
if (result && result.data && result.data.id) {
- insertImgFn(`${httpUrl}/busiAttachments/view/${result.data.id}`);
+ insertImgFn(`${httpUrl}/busiAttachments/viewAttachment/${result.data.uniqueFileName}`);
}
}
},
diff --git a/src/military/components/login/index.jsx b/src/military/components/login/index.jsx
index 57d3804f..d9655ebd 100644
--- a/src/military/components/login/index.jsx
+++ b/src/military/components/login/index.jsx
@@ -92,7 +92,7 @@ export default ({ current_user, showLoginDialog }) => {
src={getImageUrl(current_user.image_url)} width="34">
{/* */}
-
+
- {current_user.username}
-
个人中心
diff --git a/src/military/expert/expertList/index.jsx b/src/military/expert/expertList/index.jsx
index d8c99970..c4da4fb4 100644
--- a/src/military/expert/expertList/index.jsx
+++ b/src/military/expert/expertList/index.jsx
@@ -158,7 +158,7 @@ function RegisterList({ showNotification }) {
key: 'resumeAttachments',
render: (text, record) => {
return text && text.map(item => {
- return { downFile(item.id) }}>{item.fileName}
+ return { downFile(item) }}>{item.fileName}
})
}
},
@@ -168,7 +168,7 @@ function RegisterList({ showNotification }) {
key: 'titleCertificateAttachments',
render: (text, record) => {
return text && text.map(item => {
- return { downFile(item.id) }}>{item.fileName}
+ return { downFile(item) }}>{item.fileName}
})
}
},
@@ -178,7 +178,7 @@ function RegisterList({ showNotification }) {
key: 'academicAchievementsAttachments',
render: (text, record) => {
return text && text.map(item => {
- return { downFile(item.id) }}>{item.fileName}
+ return { downFile(item) }}>{item.fileName}
})
}
},
@@ -188,7 +188,7 @@ function RegisterList({ showNotification }) {
key: 'honorsAttachments',
render: (text, record) => {
return text && text.map(item => {
- return { downFile(item.id) }}>{item.fileName}
+ return { downFile(item) }}>{item.fileName}
})
}
},
@@ -204,9 +204,8 @@ function RegisterList({ showNotification }) {
];
}, []);
- function downFile(id) {
- let url = httpUrl + '/busiAttachments/download/' + id;
- window.open(url);
+ function downFile(item) {
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
// 获取列表
diff --git a/src/military/expert/expertUser/taskDetail/index.jsx b/src/military/expert/expertUser/taskDetail/index.jsx
index 2bf39d60..4a788e14 100644
--- a/src/military/expert/expertUser/taskDetail/index.jsx
+++ b/src/military/expert/expertUser/taskDetail/index.jsx
@@ -247,8 +247,7 @@ function ReviewTasks({ showNotification, match, history, current_user }) {
function downFile(item) {
if (containerType == 1) {
- let url = httpUrl + '/busiAttachments/download/' + item.id;
- window.open(url);
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
} else {
let url = main_web_site_url + `/attachments/send_file/${item.id}?disposition=attachment`;
window.open(url);
diff --git a/src/military/expert/registerList/index.jsx b/src/military/expert/registerList/index.jsx
index 321af985..8390166e 100644
--- a/src/military/expert/registerList/index.jsx
+++ b/src/military/expert/registerList/index.jsx
@@ -121,7 +121,7 @@ function RegisterList({ showNotification, form }) {
dataIndex: 'resumeAttachments',
render: (text, record) => {
return text && text.map(item => {
- return {downFile(item.id)}}>{item.fileName}
+ return {downFile(item)}}>{item.fileName}
})
}
},
@@ -130,7 +130,7 @@ function RegisterList({ showNotification, form }) {
dataIndex: 'titleCertificateAttachments',
render: (text, record) => {
return text && text.map(item => {
- return {downFile(item.id)}}>{item.fileName}
+ return {downFile(item)}}>{item.fileName}
})
}
},
@@ -139,7 +139,7 @@ function RegisterList({ showNotification, form }) {
dataIndex: 'academicAchievementsAttachments',
render: (text, record) => {
return text && text.map(item => {
- return {downFile(item.id)}}>{item.fileName}
+ return {downFile(item)}}>{item.fileName}
})
}
},
@@ -148,7 +148,7 @@ function RegisterList({ showNotification, form }) {
dataIndex: 'honorsAttachments',
render: (text, record) => {
return text && text.map(item => {
- return {downFile(item.id)}}>{item.fileName}
+ return {downFile(item)}}>{item.fileName}
})
}
},
@@ -167,9 +167,8 @@ function RegisterList({ showNotification, form }) {
];
}, []);
- function downFile(id) {
- let url = httpUrl + '/busiAttachments/download/' + id;
- window.open(url);
+ function downFile(item) {
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
function onShowSizeChange(current, pageSize){
diff --git a/src/military/task/components/itemAgreementManage/index.jsx b/src/military/task/components/itemAgreementManage/index.jsx
index bec8b3ed..dc334af3 100644
--- a/src/military/task/components/itemAgreementManage/index.jsx
+++ b/src/military/task/components/itemAgreementManage/index.jsx
@@ -68,8 +68,7 @@ export default Form.create()((props) => {
}
function downFile(item) {
- let url = httpUrl + '/busiAttachments/download/' + item.id;
- window.open(url);
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
const helper = useCallback(
@@ -89,7 +88,7 @@ export default Form.create()((props) => {
return (
-

+
-
{item.user && goUser(item.user.login) }}>{item.user && (item.user.nickname || item.user.login)}
diff --git a/src/military/task/components/itemDelayManage/index.jsx b/src/military/task/components/itemDelayManage/index.jsx
index 46a7dab8..0e44f7f3 100644
--- a/src/military/task/components/itemDelayManage/index.jsx
+++ b/src/military/task/components/itemDelayManage/index.jsx
@@ -133,7 +133,7 @@ export default Form.create()((props) => {
return (
-

{ goUser(item.user.login) }} />
+

{ goUser(item.user.login) }} />
diff --git a/src/military/task/components/itemListMyTask/index.jsx b/src/military/task/components/itemListMyTask/index.jsx
index 296bef85..32daecbd 100644
--- a/src/military/task/components/itemListMyTask/index.jsx
+++ b/src/military/task/components/itemListMyTask/index.jsx
@@ -144,21 +144,21 @@ export default Form.create()((props) => {
title: '凭证文件',
dataIndex: 'fileName',
render: (text, record) => {
- return
{ download(record.winnerContracts[0].id) }}> {record.winnerContracts && record.winnerContracts[0].fileName}
+ return
{ download(record.winnerContracts[0]) }}> {record.winnerContracts && record.winnerContracts[0].fileName}
}
},
{
title: '操作',
dataIndex: 'action',
render: (text, record) => {
- return
{ download(record.winnerContracts[0].id) }}> 下载凭证
+ return
{ download(record.winnerContracts[0]) }}> 下载凭证
}
}
];
}, []);
- function download(id) {
- window.open(httpUrl + '/busiAttachments/download/' + id);
+ function download(item) {
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
function unfollow(id) {
diff --git a/src/military/task/components/itemListPaper/index.jsx b/src/military/task/components/itemListPaper/index.jsx
index 585979b3..0732a97c 100644
--- a/src/military/task/components/itemListPaper/index.jsx
+++ b/src/military/task/components/itemListPaper/index.jsx
@@ -47,8 +47,7 @@ export default Form.create()((props) => {
function downFile(item) {
if(item.uniqueFileName){
- let url = httpUrl + '/busiAttachments/download/' + item.id;
- window.open(url);
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}else{
showNotification("您没有下载权限!");
}
@@ -169,7 +168,7 @@ export default Form.create()((props) => {
const winReview = [5,6,7,8].includes(detailStatus) && expertReview && item.reviewFinalGrades!==null;
return (
-

+
-
diff --git a/src/military/task/components/itemListTask/index.jsx b/src/military/task/components/itemListTask/index.jsx
index 06c4f837..397873e3 100644
--- a/src/military/task/components/itemListTask/index.jsx
+++ b/src/military/task/components/itemListTask/index.jsx
@@ -48,7 +48,7 @@ export default (props) => {
{ goUser(item.user && item.user.login) }}>
-
+
{(item.user && item.user.nickname) || (item.user && item.user.login)}
{item.visits}
diff --git a/src/military/task/components/itemPayProof/index.jsx b/src/military/task/components/itemPayProof/index.jsx
index 266f0924..b9a7ef51 100644
--- a/src/military/task/components/itemPayProof/index.jsx
+++ b/src/military/task/components/itemPayProof/index.jsx
@@ -4,8 +4,9 @@ import { Link } from "react-router-dom";
import Nodata from 'forge/Nodata';
import Loading from "src/Loading";
import Upload from 'military/components/Upload';
-import { timeAgo, getImageUrl,goUser,goUserMes } from 'educoder';
+import { timeAgo, getImageUrl, goUser, goUserMes } from 'educoder';
import { uploadPayProof } from '../../api';
+import { httpUrl } from '../../fetch';
import './index.scss';
export default Form.create()((props) => {
@@ -47,6 +48,10 @@ export default Form.create()((props) => {
})
}
+ function downFile(item) {
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
+ }
+
return (
loading ?
:
@@ -55,10 +60,10 @@ export default Form.create()((props) => {
return (
-

+
-
+
联系手机:
{item.user.phone}
+ {
+ item.paperPayOrder && item.paperPayOrder.payOrderAttachments && item.paperPayOrder.payOrderAttachments.map(i => {
+ return
+ })
+ }
+
{!item.isPay && (item.status !== 8) &&
diff --git a/src/military/task/components/itemProofManage/index.jsx b/src/military/task/components/itemProofManage/index.jsx
index 02db5de3..dfa19ac5 100644
--- a/src/military/task/components/itemProofManage/index.jsx
+++ b/src/military/task/components/itemProofManage/index.jsx
@@ -62,8 +62,7 @@ export default (props) => {
function downFile(item) {
- let url = httpUrl + '/busiAttachments/download/' + item.id;
- window.open(url);
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
@@ -76,7 +75,7 @@ export default (props) => {
return (
-

+
-
{item.user && goUser(item.user.login) }}>{item.user && (item.user.nickname || item.user.login)}
diff --git a/src/military/task/components/itemPublicityComplain/index.jsx b/src/military/task/components/itemPublicityComplain/index.jsx
index 81cd6e7f..a177429c 100644
--- a/src/military/task/components/itemPublicityComplain/index.jsx
+++ b/src/military/task/components/itemPublicityComplain/index.jsx
@@ -61,8 +61,7 @@ export default Form.create()((props) => {
}
function downFile(item) {
- let url = httpUrl + '/busiAttachments/download/' + item.id;
- window.open(url);
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
const helper = useCallback(
@@ -83,7 +82,7 @@ export default Form.create()((props) => {
return (
-

+
-
{item.user && goUser(item.user.login) }}>{item.user && (item.user.nickname || item.user.login)}
diff --git a/src/military/task/components/itemTaskManage/index.jsx b/src/military/task/components/itemTaskManage/index.jsx
index 334897d9..8d78c75a 100644
--- a/src/military/task/components/itemTaskManage/index.jsx
+++ b/src/military/task/components/itemTaskManage/index.jsx
@@ -83,7 +83,7 @@ export default (props) => {
return (
-

+
-
{item.user && goUser(item.user.login) }}>{item.user && (item.user.nickname || item.user.login)}
diff --git a/src/military/task/myTask/followTask.jsx b/src/military/task/myTask/followTask.jsx
index 7fa4579d..08a32dcd 100644
--- a/src/military/task/myTask/followTask.jsx
+++ b/src/military/task/myTask/followTask.jsx
@@ -1,12 +1,8 @@
import React, { useCallback, useEffect, useState, useMemo } from 'react';
-import { Tabs, Input, Table, Pagination, Modal, Button } from 'antd';
-import { Link } from "react-router-dom";
-import ChooseNav from '../../components/chooseNav';
+import { Tabs, Input, Modal, Button } from 'antd';
import ItemListMyTask from '../components/itemListMyTask';
-import AgreementModal from '../components/agreementModal';
-import ComplainModal from '../components/complainModal';
import { applyStatusAllArr, paperCheckStatusArr, applyStatusArr, publishModeArr, taskStatusAllArr,} from '../static';
-import { getJoinTaskList, followTaskList, confirmReceipt } from '../api';
+import { followTaskList } from '../api';
import './index.scss';
const Search = Input.Search;
@@ -22,26 +18,14 @@ for (const item of paperCheckStatusArr) {
paperCheckStatus[item.dicItemCode] = item.dicItemName;
}
-export default ({ taskCategoryValueArr, showNotification,current_user }) => {
+export default ({ taskCategoryValueArr, current_user }) => {
- const [paperStatusString, setPaperStatusString] = useState('0,1,2,3,4');
- const [taskStatusString, setTaskStatusString] = useState('3,4,5,6,7,8');
-
- const [requirePaper, setRequirePaper] = useState('1');
const [searchInput, setSearchInput] = useState('');
const [curPage, setCurPage] = useState(1);
const [total, setTotal] = useState(0);
const [taskList, setTaskList] = useState([]);
const [loading, setLoading] = useState(false);
- const [curPagePaper, setCurPagePaper] = useState(1);
- const [totalPaper, setTotalPaper] = useState(0);
- const [paperList, setPaperList] = useState([]);
-
- const [checkedItem, setCheckedItem] = useState({});
- const [complainVisible, setComplainVisible] = useState(false);
- const [agreeVisible, setAgreeVisible] = useState(false);
-
const [reload, setReload] = useState(0);
useEffect(() => {
@@ -62,21 +46,6 @@ export default ({ taskCategoryValueArr, showNotification,current_user }) => {
- function confirmReceiptModal(paperId) {
- Modal.confirm({
- title: '确认收款',
- content: '确认已经收到任务报酬',
- onOk: () => {
- confirmReceipt(paperId).then(res => {
- if (res && res.message === "success") {
- showNotification("您已确认收款!");
- reloadList();
- }
- })
- }
- })
- }
-
const reloadList = useCallback(() => {
setReload(Math.random());
}, [])
diff --git a/src/military/task/paperComplain/index.js b/src/military/task/paperComplain/index.js
index 1f2f36a1..d17b2e76 100644
--- a/src/military/task/paperComplain/index.js
+++ b/src/military/task/paperComplain/index.js
@@ -91,8 +91,7 @@ export default Form.create()(({ form, showNotification, history}) => {
}
function downFile(item) {
- let url = httpUrl + '/busiAttachments/download/' + item.id;
- window.open(url);
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
const columns = useMemo(() => {
diff --git a/src/military/task/paperManage/index.jsx b/src/military/task/paperManage/index.jsx
index 029c4287..5640d61c 100644
--- a/src/military/task/paperManage/index.jsx
+++ b/src/military/task/paperManage/index.jsx
@@ -193,9 +193,9 @@ export default Form.create()(({ current_user, form, showNotification, match, his
key: 'action',
render: (text, record) => (
- {record.checkStatus ===2&&}
- {record.checkStatus ===0&&}
- {record.checkStatus !==0&&}
+ {record.task&&record.task.status==3&&record.checkStatus ===2&&}
+ {record.task&&record.task.status==4&&record.checkStatus ===0&&}
+ {record.task&&record.task.status==3&&record.checkStatus ===2&&}
{record.task&&record.task.status==3&&}
@@ -211,6 +211,7 @@ export default Form.create()(({ current_user, form, showNotification, match, his
setLoading(false);
if (res && res.message === 'success') {
setReload(Math.random());
+ showNotification('操作成功!');
}
});
}
diff --git a/src/military/task/taskDetail/index.jsx b/src/military/task/taskDetail/index.jsx
index dbf26850..ed6b1491 100644
--- a/src/military/task/taskDetail/index.jsx
+++ b/src/military/task/taskDetail/index.jsx
@@ -191,8 +191,7 @@ export default Form.create()(
showLoginDialog();
return;
}
- let url = httpUrl + '/busiAttachments/download/' + item.id;
- window.open(url);
+ window.open(httpUrl+'/busiAttachments/downloadAttachment/'+item.uniqueFileName);
}
const helper = useCallback(
@@ -432,9 +431,8 @@ export default Form.create()(
// 在线预览佐证材料
function showProof() {
- let pdfId = detailData.taskResultProof && detailData.taskResultProof.proofFileNumbers;
-
- Number(pdfId) > 0 && window.open(`${httpUrl}/busiAttachments/view/${pdfId}?disposition=inline`, '_blank');
+ let proofFile = detailData.taskResultProof && detailData.taskResultProof.proofAttachments&& detailData.taskResultProof.proofAttachments[0];
+ proofFile && window.open(`${httpUrl}/busiAttachments/viewAttachment/${proofFile.uniqueFileName}?disposition=inline`, '_blank');
}
return (
diff --git a/src/military/task/taskEdit/index.jsx b/src/military/task/taskEdit/index.jsx
index 861cbdb0..f2ad92d6 100644
--- a/src/military/task/taskEdit/index.jsx
+++ b/src/military/task/taskEdit/index.jsx
@@ -372,11 +372,7 @@ export default Form.create()(forwardRef(({ current_user, form, showNotification,
-
任务内容(*必填)
- {/*
- 创客任务模版.xlsx
- 点击下载示例模版 */}
-
+
任务内容(*必填)
选择任务所在领域
diff --git a/src/modules/tpm/NewHeader.js b/src/modules/tpm/NewHeader.js
index 2ada6db6..ecac55f6 100644
--- a/src/modules/tpm/NewHeader.js
+++ b/src/modules/tpm/NewHeader.js
@@ -594,7 +594,7 @@ class NewHeader extends Component {
str = match.path;
}
- console.log(str, (url + "/"), url && str === url);
+ // console.log(str, (url + "/"), url && str === url);
if (url && (str === url || str === (url + "/"))) {
return true
} else {
@@ -803,7 +803,7 @@ class NewHeader extends Component {
{this.props.user && this.props.user.login &&
-
+
{
(coursestypes === true && this.props.user.main_site === false && (settings && !settings.add && (settings.add && settings.add.length === 0))) ? "" :
@@ -892,7 +892,7 @@ class NewHeader extends Component {
src={getImageUrl(user.image_url)} width="34">
{/* */}
-
+
- {this.props.current_user.username}
{
settings && settings.personal && settings.personal.length > 0 && settings.personal.map((item, key) => {
diff --git a/src/modules/tpm/TPMIndex.css b/src/modules/tpm/TPMIndex.css
index b247ebb7..5b9d7791 100644
--- a/src/modules/tpm/TPMIndex.css
+++ b/src/modules/tpm/TPMIndex.css
@@ -32,7 +32,7 @@ body>.-task-title {
position: fixed;
background: #fff;
color: #333;
- /* box-shadow: 0 0 12px rgb(0 ,0 ,0,10%); */
+ box-shadow: 0 0 12px rgb(0 ,0 ,0,10%);
}
.newHeaders.publicNav{
position: absolute;
@@ -321,7 +321,7 @@ body>.-task-title {
.logoimg {
float: left;
min-width: 34px;
- height: 34px;
+ height: 48px;
}
.headwith100b {