|
|
|
@ -27,13 +27,14 @@ |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
|
<a-col :lg="8"> |
|
|
|
|
<a-form-item label="状态" name="status"> |
|
|
|
|
<a-form-item v-if="isCommittee" label="状态" name="status"> |
|
|
|
|
<a-select ref="select" v-model:value="queryParam.status" style="width: 100%" @focus="focus" placeholder="请选择作品状态"> |
|
|
|
|
<a-select-option value="0">待评分</a-select-option> |
|
|
|
|
<a-select-option value="1">已评分</a-select-option> |
|
|
|
|
<a-select-option value="0">待评分/已审核</a-select-option> |
|
|
|
|
<!-- <a-select-option value="1">已评分</a-select-option>--> |
|
|
|
|
<a-select-option value="2">待驳回</a-select-option> |
|
|
|
|
<a-select-option value="3">已驳回</a-select-option> |
|
|
|
|
<a-select-option value="4">待提交</a-select-option> |
|
|
|
|
<!-- <a-select-option value="3">已驳回</a-select-option> |
|
|
|
|
<a-select-option value="4">待提交</a-select-option>--> |
|
|
|
|
<a-select-option value="5">已提交</a-select-option> |
|
|
|
|
</a-select> |
|
|
|
|
</a-form-item> |
|
|
|
|
</a-col> |
|
|
|
@ -300,7 +301,24 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async function handleWorkSubmit(record) { |
|
|
|
|
if (record.status !== 4 && record.status !== 3) { |
|
|
|
|
if (record.status !== 4 && record.status !== 3 && record.status !== 5) { |
|
|
|
|
return message.error('作品禁止重复提交'); |
|
|
|
|
} else { |
|
|
|
|
record.status = 5; |
|
|
|
|
record.backInfo = ''; |
|
|
|
|
const resp = await saveOrUpdate(record, true); |
|
|
|
|
if (resp.success) { |
|
|
|
|
await reload(); |
|
|
|
|
message.success('提交成功'); |
|
|
|
|
} else { |
|
|
|
|
message.error('提交失败'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function handleup(record) { |
|
|
|
|
if (record.status !== 4 && record.status !== 3 && record.status !== 5) { |
|
|
|
|
return message.error('作品禁止重复提交'); |
|
|
|
|
} else { |
|
|
|
|
record.status = 0; |
|
|
|
@ -422,7 +440,14 @@ |
|
|
|
|
title: '是否驳回当前作品?', |
|
|
|
|
confirm: handleBack.bind(null, record), |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '通过', |
|
|
|
|
popConfirm: { |
|
|
|
|
title: '是否通过审核当前作品', |
|
|
|
|
confirm: handleup.bind(null, record), |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
|
} else if (isSuperAdmin.value) { |
|
|
|
|
tableAction.unshift( |
|
|
|
|