diff --git a/src/AppConfig.js b/src/AppConfig.js index 34432e152..7d0284c45 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 d5f4d5712..044180a19 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 bda413390..0ed142a83 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 fe1706204..5ed45127f 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 fa9c67d83..cf772836b 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 6957451a5..ac05d0bb5 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 320dd15f3..548734e2a 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 57d3804fb..d9655ebd0 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"> {/* */} -