|
|
|
@ -20,13 +20,14 @@ |
|
|
|
|
<el-table-column label="描述" |
|
|
|
|
min-width="150"> |
|
|
|
|
<template #default="{ row, $index }"> |
|
|
|
|
<span :class="{'text-[#006bff]': !$index}">{{ row?.description }}</span> |
|
|
|
|
<span :class="{'text-[#006bff]': !$index}">{{ $index === 12 ? '=起始浮动比例+增减分值 且 不超过最高浮动比例' : row?.description }}</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="分值" |
|
|
|
|
min-width="150"> |
|
|
|
|
<template #default="{ row, $index }"> |
|
|
|
|
<el-select v-if="$index !== 12 && $index !== 13 && row.subject && row.subject.itemList" |
|
|
|
|
<span v-if="$index === 12">以上分值合计</span> |
|
|
|
|
<el-select v-else-if="$index !== 13 && row.subject && row.subject.itemList" |
|
|
|
|
class="w-full" |
|
|
|
|
v-model="row.score"> |
|
|
|
|
<el-option v-for="item in row?.subject?.itemList" |
|
|
|
@ -89,7 +90,7 @@ |
|
|
|
|
import { ref, onMounted } from 'vue'; |
|
|
|
|
import { ElMessage, ElLoading } from 'element-plus'; |
|
|
|
|
import { personalInterestRateDetails, personalInterestRateSaveOrUpdate } from '@/api/model'; |
|
|
|
|
import { getProcessInformationBasedOnRoles, addOperation } from '@/api/judgment'; |
|
|
|
|
import { getProcessInformationBasedOnRoles, addOperation, getIds } from '@/api/judgment'; |
|
|
|
|
import type { TableColumnCtx } from 'element-plus'; |
|
|
|
|
import { useRouter, useRoute } from 'vue-router'; |
|
|
|
|
import { handleId } from '@/utils/common'; |
|
|
|
@ -188,7 +189,7 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => { |
|
|
|
|
rowspan: 3, |
|
|
|
|
colspan: 1, |
|
|
|
|
}; |
|
|
|
|
} else if (!rowIndex || rowIndex === 12 || rowIndex === 13) { |
|
|
|
|
} else if (!rowIndex || rowIndex === 12 || rowIndex === 13 || rowIndex === 14) { |
|
|
|
|
return { |
|
|
|
|
rowspan: 1, |
|
|
|
|
colspan: 1, |
|
|
|
@ -231,10 +232,9 @@ const addRecord = async (data: Record<string, any>) => { |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
await addOperation({ |
|
|
|
|
checkpointId: levelId, |
|
|
|
|
...getIds(), |
|
|
|
|
parentId: preIds, |
|
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
|
projectId, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
// 提交 |
|
|
|
|