yxk-20260730
改善提案 打分的时候,提供下载评分标准的附件功能,下载路径在内网写入
This commit is contained in:
@@ -155,6 +155,13 @@
|
||||
<a-modal v-model:open="scoreModalVisible" title="部门评议打分" :footer="null" :mask-closable="false" :body-style="{ padding: '24px 28px 20px' }">
|
||||
<a-form layout="vertical">
|
||||
<a-alert class="score-range-alert" type="info" show-icon message="所有评分项均须填写 0-100 分,最多可保留两位小数。" />
|
||||
<div class="score-standard-entry">
|
||||
<span>评分标准附件:</span>
|
||||
<a-button type="link" size="small" class="score-standard-button" @click="openScoreStandard">
|
||||
<Icon icon="ant-design:paper-clip-outlined" />
|
||||
查看评分标准
|
||||
</a-button>
|
||||
</div>
|
||||
<a-row :gutter="12">
|
||||
<a-col :span="24">
|
||||
<a-form-item label="改善效果(权重 50%)" required>
|
||||
@@ -255,6 +262,8 @@
|
||||
{ value: '2', label: '铜奖' },
|
||||
{ value: '3', label: '参与奖' },
|
||||
];
|
||||
// 评分标准由 MinIO 提供,使用完整地址避免受前端部署路径影响。
|
||||
const scoreStandardUrl = 'http://localhost:9000/api/v1/buckets/supervision/objects/download?prefix=%E6%94%B9%E5%96%84%E6%8F%90%E6%A1%88%E8%AF%84%E5%88%86%E6%A0%87%E5%87%86(1).xlsx&version_id=null';
|
||||
// 流程引擎在运行待办中提供 taskDefKey,节点功能只依赖该稳定标识而非表单 URL 参数。
|
||||
const processInfo = computed(() => ({
|
||||
mainId: props.formData?.processDataId || props.formData?.dataId,
|
||||
@@ -448,6 +457,10 @@
|
||||
scoreModalVisible.value = true;
|
||||
}
|
||||
|
||||
function openScoreStandard() {
|
||||
window.open(scoreStandardUrl, '_blank', 'noopener,noreferrer');
|
||||
}
|
||||
|
||||
async function saveScoreDraft() {
|
||||
if (!hasValidScoreValues()) {
|
||||
createMessage.warning('请完整填写 0 到 100 分之间的七项评分');
|
||||
@@ -594,6 +607,23 @@
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.score-standard-entry {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
margin: -8px 0 16px;
|
||||
color: #64748b;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.score-standard-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding-inline: 2px;
|
||||
}
|
||||
|
||||
.institute-vote-summary {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in New Issue
Block a user