|
|
@ -70,7 +70,8 @@ import { |
|
|
|
getImportUrl, |
|
|
|
getImportUrl, |
|
|
|
getExportUrl, |
|
|
|
getExportUrl, |
|
|
|
updateApply, |
|
|
|
updateApply, |
|
|
|
collectScore |
|
|
|
collectScore, |
|
|
|
|
|
|
|
pj |
|
|
|
} from './AnnualCompPoint.api'; |
|
|
|
} from './AnnualCompPoint.api'; |
|
|
|
import {downloadFile} from '/@/utils/common/renderUtils'; |
|
|
|
import {downloadFile} from '/@/utils/common/renderUtils'; |
|
|
|
import AnnualCompPointModal from './components/AnnualCompPointModal.vue' |
|
|
|
import AnnualCompPointModal from './components/AnnualCompPointModal.vue' |
|
|
@ -170,6 +171,9 @@ function workManage(record: Recordable) { |
|
|
|
query: {annualCompPointId: record.id} |
|
|
|
query: {annualCompPointId: record.id} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function handleCollectScoreApply(record: Recordable) { |
|
|
|
|
|
|
|
collectScore({id: record.id, annualCompId: record.annualCompId}, handleSuccess); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 年度项目管理 提交审核按钮 |
|
|
|
* 年度项目管理 提交审核按钮 |
|
|
@ -178,16 +182,19 @@ function handleSubmitandApply(record: Recordable) { |
|
|
|
updateApply({id: record.id, annualCompState: record.annualCompState}, handleSuccess); |
|
|
|
updateApply({id: record.id, annualCompState: record.annualCompState}, handleSuccess); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function handleCollectScoreApply(record: Recordable) { |
|
|
|
|
|
|
|
collectScore({id: record.id, annualCompId: record.annualCompId}, handleSuccess); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 删除事件 |
|
|
|
* 删除事件 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
async function handleDelete(record) { |
|
|
|
async function handleDelete(record) { |
|
|
|
await deleteOne({id: record.id}, handleSuccess); |
|
|
|
await deleteOne({id: record.id}, handleSuccess); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 评奖事件 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
async function pjgl(record) { |
|
|
|
|
|
|
|
await pj({id: record.id}, handleSuccess); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -225,6 +232,15 @@ function getTableAction(record) { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
if(Date.parse(new Date())>Date.parse(record.scoreEndTime)){ |
|
|
|
|
|
|
|
actions.unshift({ |
|
|
|
|
|
|
|
label: '评奖', |
|
|
|
|
|
|
|
popConfirm: { |
|
|
|
|
|
|
|
title: '是否确认评奖', |
|
|
|
|
|
|
|
confirm: pjgl.bind(null, record), |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
if (record.annualCompState === "0") { // 年度比赛状态 0待提交、1已提交(待审核)、2已审核、3待驳回、4已驳回 |
|
|
|
if (record.annualCompState === "0") { // 年度比赛状态 0待提交、1已提交(待审核)、2已审核、3待驳回、4已驳回 |
|
|
|
actions.unshift({ |
|
|
|
actions.unshift({ |
|
|
|
label: '提交', |
|
|
|
label: '提交', |
|
|
@ -250,13 +266,6 @@ function getTableAction(record) { |
|
|
|
onClick: handleSubmitandApply.bind(null, record), |
|
|
|
onClick: handleSubmitandApply.bind(null, record), |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
if (record.annualCompState === "8") { |
|
|
|
|
|
|
|
actions.unshift({ |
|
|
|
|
|
|
|
label: '评奖', |
|
|
|
|
|
|
|
onClick: pingjiang.bind(null, record), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
是否已凭奖为1且未汇总过时,可以积分汇总操作 |
|
|
|
是否已凭奖为1且未汇总过时,可以积分汇总操作 |
|
|
|
* 状态:0待提交、1已提交(待审核)、2已审核(已通过)、3待驳回、4已驳回、5-已报名、6-已选题、7-已上传作品、8-已评分、9-已评奖,10-积分已汇总 |
|
|
|
* 状态:0待提交、1已提交(待审核)、2已审核(已通过)、3待驳回、4已驳回、5-已报名、6-已选题、7-已上传作品、8-已评分、9-已评奖,10-积分已汇总 |
|
|
@ -267,7 +276,12 @@ function getTableAction(record) { |
|
|
|
onClick: handleCollectScoreApply.bind(null, record), |
|
|
|
onClick: handleCollectScoreApply.bind(null, record), |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/* if (record.annualCompState === "8") { |
|
|
|
|
|
|
|
actions.unshift({ |
|
|
|
|
|
|
|
label: '评奖', |
|
|
|
|
|
|
|
onClick: pingjiang.bind(null, record), |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}*/ |
|
|
|
actions.unshift({ |
|
|
|
actions.unshift({ |
|
|
|
label: '作品管理', |
|
|
|
label: '作品管理', |
|
|
|
onClick: workManage.bind(null, record), |
|
|
|
onClick: workManage.bind(null, record), |
|
|
|