diff --git a/src/common/UrlTool.js b/src/common/UrlTool.js index 9b4d5191..f952f22c 100644 --- a/src/common/UrlTool.js +++ b/src/common/UrlTool.js @@ -12,6 +12,7 @@ export function getImageUrl(path) { // https://testbdweb.trustie.net // const local = 'http://localhost:3000' const local = 'http://39.105.176.215:49999'; + if (isDev) { return `${local}/${path}` } diff --git a/src/military/index.scss b/src/military/index.scss index 7964b096..3dae0f66 100644 --- a/src/military/index.scss +++ b/src/military/index.scss @@ -162,6 +162,35 @@ text-align: left; } + +.ant-modal-footer{ + text-align: center; + border: 0; +} + + +// 头像 +.head-log-big{ + width: 4rem; + height: 4rem; + margin-right: .5rem; + border-radius: 50%; +} + +.head-log-middle{ + width: 3rem; + height: 3rem; + margin-right: .35rem; + border-radius: 50%; +} + +.head-log-small{ + width: 1.25rem; + height: 1.25rem; + margin-right: .35rem; + border-radius: 50%; +} + // 富文本样式 .w-e-text table td, .w-e-text table th{ height: 30px; diff --git a/src/military/task/components/agreementModal/index.jsx b/src/military/task/components/agreementModal/index.jsx index aa59e86f..99c08c24 100644 --- a/src/military/task/components/agreementModal/index.jsx +++ b/src/military/task/components/agreementModal/index.jsx @@ -54,6 +54,7 @@ export default Form.create()(props => { className="form-edit-modal" >
{detailData.delayTime}
} - {detailData.status === status && (!detailData.delayTime) &&剩余{surplusTimetext}
} + {/* 因为有时只延期几秒或者几分钟时后端没有返回延期,所以这里加一个判断 */} + {detailData.status === status && (!detailData.delayTime) &&{surplusTimetext.indexOf('-') > 0 ? ('延期' + surplusTimetext.replaceAll('-', '')) : ('剩余' + surplusTimetext)}
} ) }, [detailData]); @@ -364,7 +364,7 @@ export default Form.create()({detailData && detailData.user && (detailData.user.nickname || detailData.user.login)}