diff --git a/src/military/expert/adminRouter.js b/src/military/expert/adminRouter.js index 42ea6918..088f706b 100644 --- a/src/military/expert/adminRouter.js +++ b/src/military/expert/adminRouter.js @@ -53,21 +53,21 @@ const AdminPage = (propsF) => { > {/* 创客任务评审规则 */} ( )} > {/* 创客任务选择评审专家 */} ( )} > {/* 创客任务评审结果查看 */} ( )} diff --git a/src/military/expert/expertUser/reviewTasks/index.jsx b/src/military/expert/expertUser/reviewTasks/index.jsx index e1ac4352..5fb9c000 100644 --- a/src/military/expert/expertUser/reviewTasks/index.jsx +++ b/src/military/expert/expertUser/reviewTasks/index.jsx @@ -59,7 +59,7 @@ function ReviewTasks({ form, showNotification, match, history }) { dataIndex: 'status', key: 'status', render: (text, record) => { - return text === -1 ? '未评审' : '已评审' + return text === -1 ? '未评审' : record.commitReview ? '已评审':'已过期' } }, { diff --git a/src/military/expert/reviewResult/gradesModal/index.jsx b/src/military/expert/reviewResult/gradesModal/index.jsx index 83e17609..e4078ab3 100644 --- a/src/military/expert/reviewResult/gradesModal/index.jsx +++ b/src/military/expert/reviewResult/gradesModal/index.jsx @@ -145,16 +145,16 @@ function GradesModal({ setVisible, visible, taskId, opsDetail }) { >
综合排名: {opsDetail && opsDetail.id} - 应征者: {opsDetail && (opsDetail.applicantInfo.nickname == null ? opsDetail.applicantInfo.login : opsDetail.applicantInfo.nickname)} - 平均得分: {opsDetail && opsDetail.finalGrades} - 是否胜出: {opsDetail && opsDetail.isWin ?
胜出
: '未胜出'} + 应征者:   {opsDetail && (opsDetail.applicantInfo.nickname == null ? opsDetail.applicantInfo.login : opsDetail.applicantInfo.nickname)} + 平均得分:   {opsDetail && opsDetail.finalGrades || `--`} + 是否胜出:   {opsDetail && opsDetail.isWin ?
胜出
: '未胜出'}
) diff --git a/src/military/expert/reviewResult/index.jsx b/src/military/expert/reviewResult/index.jsx index 795d053a..7a92660f 100644 --- a/src/military/expert/reviewResult/index.jsx +++ b/src/military/expert/reviewResult/index.jsx @@ -10,7 +10,7 @@ import '../index.scss'; import { queryString } from "educoder"; function ReviewResult({ history, match }) { - const {taskId} = match.params; + const taskId = match.params.containerId; let {status, name, taskModeId} = queryString.parse(window.location.hash.slice(1)); const [dataList, setDateList] = useState(undefined); const [openResultVisible, setOpenResultVisible] = useState(false); @@ -117,6 +117,8 @@ function ReviewResult({ history, match }) { setErrorMessage('请输入数字!'); }else if(openRange && (openRange.indexOf('.')!==-1 || openRange.indexOf('-')!==-1)){ setErrorMessage('请输入正整数!'); + }else if(openRange && openRange < winIds.length){ + setErrorMessage('公示范围不能少于获胜人数!'); }else if(openRange && openRange > dataList.length){ setErrorMessage('公示范围超过应征者总数!'); }else{ diff --git a/src/military/expert/reviewRules/index.jsx b/src/military/expert/reviewRules/index.jsx index 52d0a59a..040355cd 100644 --- a/src/military/expert/reviewRules/index.jsx +++ b/src/military/expert/reviewRules/index.jsx @@ -11,7 +11,7 @@ import { queryString } from "educoder"; const {RangePicker} = DatePicker; function ReviewRules({form, history, match}) { - const id = match.params.taskId; + const id = match.params.containerId; const {name, status, createdAt, collectingEndTime, choosingDays} = queryString.parse(window.location.search.slice(1)); const { getFieldDecorator,setFieldsValue } = form; //是否有初始值 diff --git a/src/military/expert/selectExpert/index.jsx b/src/military/expert/selectExpert/index.jsx index 8e9c2270..02854d8a 100644 --- a/src/military/expert/selectExpert/index.jsx +++ b/src/military/expert/selectExpert/index.jsx @@ -14,7 +14,7 @@ const { Search } = Input; function SelectExpert(props) { const { history, form, current_user, match } = props; - const { taskId} = match.params; + const taskId = match.params.containerId; const { name} = queryString.parse(window.location.search.slice(1)); const { getFieldDecorator, setFieldsValue } = form; const [reload, setReload] = useState(); @@ -261,11 +261,11 @@ function SelectExpert(props) { } assignExperts(params).then(response=>{ if(response && response.message === '专家指派成功'){ + id.map(i=>setAllSelectedExpertsId(allSelectedExpertsId.add(i))); setOkConfirmExps(false); message.success(response.message); setSelectedRowKeys([]); setReload(Math.random()); - id.map(i=>setAllSelectedExpertsId(allSelectedExpertsId.add(i))); } }) } diff --git a/src/military/task/taskAdmin/index.jsx b/src/military/task/taskAdmin/index.jsx index 03665efb..3209e463 100644 --- a/src/military/task/taskAdmin/index.jsx +++ b/src/military/task/taskAdmin/index.jsx @@ -224,14 +224,14 @@ export default Form.create()(({ form, showNotification, match, history, state }) title: '评审规则', dataIndex: 'ruleEditedCount', render: (text, record) => { - return record.assignRuleAndExperts ? : record.expertReview && (record.status === 1 || record.status === 3) ? 编辑 : 编辑 + return record.assignRuleAndExperts ? : record.expertReview && (record.status === 1 || record.status === 3) ? 编辑 : 编辑 } }, { title: '专家选取', dataIndex: 'expertSelectedCount', render: (text, record) => { - return record.assignRuleAndExperts ? : record.expertReview && (record.status === 1 || record.status === 3) ? 选择 : 选择 + return record.assignRuleAndExperts ? : record.expertReview && (record.status === 1 || record.status === 3) ? 选择 : 选择 } }, { @@ -245,7 +245,7 @@ export default Form.create()(({ form, showNotification, match, history, state }) title: '评审结果', dataIndex: 'expertReview2', render: (text, record) => { - return record.assignRuleAndExperts ? 查看:查看 + return record.assignRuleAndExperts ? 查看:查看 } }, { @@ -425,7 +425,7 @@ export default Form.create()(({ form, showNotification, match, history, state }) //已发布任务 查看评审规则 function viewRules(record){ let rules = undefined; - getRules({containerId: record.id, containerType: 1, statusString: '-1,1'}).then(response=>{ + getRules({containerId: record.id, containerType: 1, statusString: '-1,1,2'}).then(response=>{ if(response && response.message === "success"){ rules = response.data; }