Gitea 1 year ago
parent 7966a8878a
commit 63bcb45f9b
  1. 40
      jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue

@ -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") { // 01()234 if (record.annualCompState === "0") { // 01()234
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),

Loading…
Cancel
Save