Merge branch 'expert_review' of https://code.gitlink.org.cn/durian/forgeplus-react into dev_military_osredm

This commit is contained in:
何童崇 2022-01-14 16:08:25 +08:00
commit 03ae09b6ef
7 changed files with 40 additions and 16 deletions

View File

@ -41,7 +41,7 @@ function ReviewTasks({ form, showNotification, match, history }) {
dataIndex: 'containerName',
key: 'containerName',
render: (text, record) => {
return <Link to={`/expert/user/tasks/${record.containerType}/${record.containerId}`}>{text}</Link>
return <Link to={`/task/taskDetail/${record.containerId}`}>{text}</Link>
}
},
{
@ -59,9 +59,17 @@ function ReviewTasks({ form, showNotification, match, history }) {
dataIndex: 'status',
key: 'status',
render: (text, record) => {
return text === -1 ? <span className="red">未评审</span> : <span>已评审</span>
return text === -1 ? '未评审' : '已评审'
}
},
{
title: '操作',
dataIndex: 'status',
key: 'action',
render: (text, record) => {
return <Link to={`/expert/user/tasks/${record.containerType}/${record.containerId}`} className="toReview">{text === -1 ? '评审' : '查看结果'}</Link>
}
}
];
}, []);

View File

@ -10,11 +10,16 @@
.ant-form-item {
width: 48%;
margin-bottom:1rem;
label{
font-weight: bold;
}
}
.ant-col{
display: inline-block;
}
}
.pagination-table .ant-table-thead tr th div {
font-weight: bold;
}
.task-head {
border-bottom: 1px solid #eeeeee;
@ -30,9 +35,11 @@
}
.pagination-table{
margin:0 2rem;
.red{
color: #DE0000;
.toReview{
color: #4154f1;
&:hover{
opacity: 0.8;
}
}
}
}

View File

@ -378,8 +378,8 @@ function ReviewTasks({ showNotification, match, history, current_user }) {
<div className="rules-box">
<p className="rules-head">任务信息</p>
<div className="rules-content">
<div className="rules-content-item">任务名称<span className="ml10">{rules.containerName}</span></div>
<div className="rules-content-item">任务链接<Link className="taskLink ml10" target="_blank" to={`/task/taskDetail/${rules.containerId}`} >{`/task/taskDetail/${rules.containerId}`}</Link></div>
<div className="rules-content-item"><span className="font-w">任务名称</span><span className="ml10">{rules.containerName}</span></div>
<div className="rules-content-item"><span className="font-w">任务链接</span><Link className="taskLink ml10" target="_blank" to={`/task/taskDetail/${rules.containerId}`} >{`${window.location.origin}/task/taskDetail/${rules.containerId}`}</Link></div>
</div>
</div>

View File

@ -26,9 +26,15 @@
}
}
.ant-tabs-nav .ant-tabs-tab-active {
.ant-tabs-nav .ant-tabs-tab-active, .taskLink {
color: #4154f1;
}
.taskLink:hover{
opacity: 0.8;
}
.rules-head, .task-head, .ant-tabs-nav .ant-tabs-tab-active, .font-w, .pagination-table .ant-table-thead tr th div{
font-weight: bold;
}
.task-head {
position: relative;
@ -37,22 +43,25 @@
color: #181818;
background: #fff;
font-size: 0.8em;
font-weight: bold;
.back-button{
position: absolute;
z-index: 1;
right: 1rem;
bottom: -52px;
padding: 0 10px;
}
}
.button-div {
line-height: 1.5;
}
.pagination-table {
margin: .75rem 1.75rem 1.25rem;
a{
color: #4154f1;
&:hover{
opacity: 0.8;
}
}
}
.task-rules {

View File

@ -3,7 +3,7 @@
.but41_border,
.butE3_border {
padding: 0 1.3em;
height: 2.55em;
height: 36px;
border-radius: 4px;
cursor: pointer;
}

View File

@ -59,6 +59,6 @@ export const taskType = [
];
export const expertTaskStatus = [
{ value: -1, label: "评审" },
{ value: -1, label: "评审" },
{ value: 1, label: "已评审" },
];

View File

@ -127,7 +127,7 @@ export default Form.create()(({ form, showNotification, match, history, state })
showArrow
defaultValue={text?1:-1}
onChange={(key) => { changeExpertReviewStatus(key, record.id) }}
disabled={!(record.status < 4 && record.status !== 2) || record.assignRuleAndExperts}
disabled={!record.status == 1 || !record.status == 3 || record.assignRuleAndExperts}
>
{
expertReviewArr.map(item => {