修改bug

This commit is contained in:
何童崇 2021-07-10 10:40:10 +08:00
parent 1d4bb3f4fc
commit b19c084ac8
4 changed files with 20 additions and 15 deletions

View File

@ -133,7 +133,7 @@ export default Form.create()((props) => {
(!item.isProofBoolean) && (item.taskResultProof && item.taskResultProof.status === 0) && (!item.isProofBoolean) && (item.taskResultProof && item.taskResultProof.status === 0) &&
<a onClick={() => { proofAdvice(item.advice) }} className="line_1 color-blue">佐证被拒原因</a>} <a onClick={() => { proofAdvice(item.advice) }} className="line_1 color-blue">佐证被拒原因</a>}
{(item.status === 9) && <a onClick={() => { repairAdvice(item.advice) }} className="line_1 color-blue">审核意见</a>} {(item.status === 9) && <a onClick={() => { repairAdvice(item.repairAdvice) }} className="line_1 color-blue">审核意见</a>}
{item.status === 6 && <a className="line_1 color-blue" onClick={() => { signMethodModal(item) }}>选择协议签订方式</a>} {item.status === 6 && <a className="line_1 color-blue" onClick={() => { signMethodModal(item) }}>选择协议签订方式</a>}
{/* <a href="javascript:void(0)" className="line_1 color-blue" onClick="paying_register_popup()">支付登记</a> */} {/* <a href="javascript:void(0)" className="line_1 color-blue" onClick="paying_register_popup()">支付登记</a> */}

View File

@ -7,7 +7,7 @@ import Loading from "src/Loading";
import { editorConfig } from 'military/components/config'; import { editorConfig } from 'military/components/config';
import Upload from 'military/components/Upload'; import Upload from 'military/components/Upload';
import { reportPaper, thumbUpPaper, commentAdd, complainPaper, publicityComplain } from '../../api'; import { reportPaper, thumbUpPaper, commentAdd, complainPaper, publicityComplain } from '../../api';
import {paperCheckStatusArr} from '../../static'; import { paperCheckStatusArr } from '../../static';
import { httpUrl } from '../../../fetch'; import { httpUrl } from '../../../fetch';
import winpng from '../../image/winner.png'; import winpng from '../../image/winner.png';
import headpng from '../../image/head.png'; import headpng from '../../image/head.png';
@ -15,9 +15,9 @@ import './index.scss';
const { TextArea } = Input; const { TextArea } = Input;
const paperCheckStatus=[]; const paperCheckStatus = [];
for (const item of paperCheckStatusArr){ for (const item of paperCheckStatusArr) {
paperCheckStatus[item.dicItemCode]=item.dicItemName; paperCheckStatus[item.dicItemCode] = item.dicItemName;
} }
export default Form.create()((props) => { export default Form.create()((props) => {
@ -215,7 +215,7 @@ export default Form.create()((props) => {
<span className="color-grey3 font-bd mr20">{commentsItem.user.nickname || commentsItem.user.login}</span> <span className="color-grey3 font-bd mr20">{commentsItem.user.nickname || commentsItem.user.login}</span>
<span className="color-grey9">{timeAgo(commentsItem.createdAt)}</span> <span className="color-grey9">{timeAgo(commentsItem.createdAt)}</span>
</div> </div>
<div className="editor-w-text comments-content" dangerouslySetInnerHTML={{ __html: commentsItem.details&&commentsItem.details.content }}> <div className="editor-w-text comments-content" dangerouslySetInnerHTML={{ __html: commentsItem.details && commentsItem.details.content }}>
</div> </div>
</div> </div>
}) })
@ -318,14 +318,17 @@ export default Form.create()((props) => {
) )
} }
<Upload <Form.Item required={true}>
className="commentStyle" <Upload
load={UploadFunc} className="commentStyle"
size={50} load={UploadFunc}
showNotification={showNotification} size={50}
actionUrl={httpUrl} showNotification={showNotification}
fileList={fileList} actionUrl={httpUrl}
/> fileList={fileList}
/>
</Form.Item>
</div> </div>
</Modal> </Modal>

View File

@ -248,7 +248,7 @@ export default Form.create()(({ current_user, form, showNotification, match, })
"message", "message",
[{ required: true, message: '请给出不通过的原因' }], [{ required: true, message: '请给出不通过的原因' }],
<TextArea <TextArea
placeholder="(必填)我想给点什么意见呢,200字以内" placeholder="(必填)我想给点什么意见呢200字以内"
autoSize={{ minRows: 6 }} autoSize={{ minRows: 6 }}
className="applyText" className="applyText"
maxLength={200} maxLength={200}

View File

@ -20,6 +20,8 @@ function getSomeDayAfter(nDay) {
export default Form.create()(forwardRef(({ current_user, form, showNotification, match, history }, ref) => { export default Form.create()(forwardRef(({ current_user, form, showNotification, match, history }, ref) => {
console.log(current_user);
const [taskCategoryArr, setTaskCategoryArr] = useState([]); const [taskCategoryArr, setTaskCategoryArr] = useState([]);
const [fileList, setFileList] = useState(null); const [fileList, setFileList] = useState(null);