模型判分修复

V0.1
yujialong 10 months ago
parent 1f2fccc380
commit 311e3ab561
  1. 23
      src/components/Panel/index.vue
  2. 34
      src/views/Home.vue
  3. 64
      src/views/config/level/Index.vue
  4. 10
      src/views/product/bank/Info.vue
  5. 7
      src/views/product/strategy/151.vue
  6. 29
      src/views/product/strategy/156.vue

@ -496,16 +496,19 @@ const submit = async () => {
let score = 0; let score = 0;
// //
taskList.value.map((e) => { taskList.value.map((e) => {
const item = retMap?.scoreInfo.find((n) => n.lcId === e.judgmentId); const item = retMap?.scoreInfo.find((n) => n.lcId === e.judgmentId);
if (item) { console.log('🚀 ~ taskList.value.map ~ item:', item);
e.examScore = item.questionScore; try {
e.finishedResult = item.calculate; // 12 if (item) {
score += item.questionScore; // e.examScore = item.questionScore;
} else { e.finishedResult = item.calculate; // 12
e.examScore = 0; score += item.questionScore; //
} } else {
}); e.examScore = 0;
}
} catch (e) {}
});
grade.value = score < 10 ? '0' + score : score; grade.value = score < 10 ? '0' + score : score;
reportId.value = retMap.reportId; reportId.value = retMap.reportId;
Cookies.set('sand-reportId', retMap.reportId); Cookies.set('sand-reportId', retMap.reportId);

@ -145,6 +145,8 @@ onMounted(() => {
--line6: 840px; --line6: 840px;
--line7: 1000px; --line7: 1000px;
--line8: 1160px; --line8: 1160px;
--line9: 1320px;
--line10: 1480px;
@apply absolute w-[218px] h-[120px] text-white bg-[url('@/assets/images/level/8.png')] bg-[length:100%_100%] bg-no-repeat cursor-pointer; @apply absolute w-[218px] h-[120px] text-white bg-[url('@/assets/images/level/8.png')] bg-[length:100%_100%] bg-no-repeat cursor-pointer;
&:before, &:before,
&:after { &:after {
@ -355,11 +357,41 @@ onMounted(() => {
@include verticalLine; @include verticalLine;
} }
} }
&:last-child { &:nth-child(41) {
@apply top-[var(--line9)];
&:before { &:before {
display: none; display: none;
} }
} }
&:nth-child(42) {
@apply top-[var(--line10)] left-[160px];
}
&:nth-child(43) {
@apply top-[var(--line9)] left-[var(--w)];
}
&:nth-child(44) {
@apply top-[var(--line10)] left-[510px];
}
&:nth-child(45) {
@apply top-[var(--line9)] left-[calc(var(--w)*2)];
}
&:nth-child(46) {
@apply top-[var(--line10)] left-[820px];
}
&:nth-child(47) {
@apply top-[var(--line9)] left-[calc(var(--w)*3)];
}
&:nth-child(48) {
@apply top-[var(--line10)] left-[1170px];
}
&:nth-child(49) {
@apply top-[var(--line9)] left-[calc(var(--w)*4)];
}
// &:last-child {
// &:before {
// display: none;
// }
// }
} }
.arrow { .arrow {
@apply fixed bg-[length:100%_100%] bg-no-repeat animate-bounce cursor-pointer; @apply fixed bg-[length:100%_100%] bg-no-repeat animate-bounce cursor-pointer;

@ -212,26 +212,30 @@ watch([params, () => route.query], getList);
const save = async () => { const save = async () => {
if (saveLoading.value) return false; if (saveLoading.value) return false;
saveLoading.value = true; saveLoading.value = true;
// try {
const param = list.value //
.filter((e) => e.checkpointId) const param = list.value
.map((e, i) => { .filter((e) => e.checkpointId)
e.serialNumber = i + 1; .map((e, i) => {
return { e.serialNumber = i + 1;
checkpointId: e.checkpointId, return {
customsPassName: e.customsPassName, checkpointId: e.checkpointId,
isEnable: e.isEnable, customsPassName: e.customsPassName,
serialNumber: e.serialNumber, isEnable: e.isEnable,
}; serialNumber: e.serialNumber,
}); };
await updatePass(param); });
// await updatePass(param);
const addList = list.value.filter((e) => !e.checkpointId && e.customsPassName); //
await savePass(addList); const addList = list.value.filter((e) => !e.checkpointId && e.customsPassName);
getList(); await savePass(addList);
ElMessage.success('保存成功!'); getList();
saveLoading.value = false; ElMessage.success('保存成功!');
hadChange.value = 0; saveLoading.value = false;
hadChange.value = 0;
} catch (e) {
saveLoading.value = false;
}
}; };
// //
const submitSerial = (row: Record<string, any>, oldIndex: number, newIndex: number) => { const submitSerial = (row: Record<string, any>, oldIndex: number, newIndex: number) => {
@ -277,15 +281,17 @@ const cancel = async (row: Record<string, any>) => {
}; };
// //
const handleDelete = async (id: number[]) => { const handleDelete = async (id: number[]) => {
const param = id.map((e) => { try {
return { const param = id.map((e) => {
checkpointId: e, return {
isDel: 1, checkpointId: e,
}; isDel: 1,
}); };
await updatePass(param); });
getList(); await updatePass(param);
ElMessage.success('删除成功!'); getList();
ElMessage.success('删除成功!');
} catch (e) {}
}; };
// //
const delAll = async () => { const delAll = async () => {

@ -10,7 +10,7 @@
{{ info.opinionDescription }} {{ info.opinionDescription }}
</div> </div>
<p class="mb-2 text-sm text-[#333] text-right">审查日期{{ info.approvalTime }}</p> <p class="mb-2 text-sm text-[#333] text-right">审查日期{{ info.approvalTime }}</p>
<p class="mb-2 text-sm text-[#333] text-right">审查员公瑾</p> <p class="mb-2 text-sm text-[#333] text-right">审查员{{ userName }}</p>
</div> </div>
<div class="info mt-2"> <div class="info mt-2">
<h6 class="step-name">产品定义</h6> <h6 class="step-name">产品定义</h6>
@ -123,6 +123,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, computed, watch, defineExpose } from 'vue'; import { ref, computed, watch, defineExpose } from 'vue';
import { findById } from '@/api/bank'; import { findById } from '@/api/bank';
import { getTheCurrentUserName } from '@/api/config';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { getStatus } from '@/store/useProduct'; import { getStatus } from '@/store/useProduct';
@ -131,6 +132,7 @@ const route = useRoute();
const id = computed(() => +route.query.id); const id = computed(() => +route.query.id);
const info = ref<Record<string, any>>({}); const info = ref<Record<string, any>>({});
const riskInfo = ref<Record<string, any>>(null); const riskInfo = ref<Record<string, any>>(null);
const userName = ref<string>();
// //
const getDetail = async () => { const getDetail = async () => {
@ -143,10 +145,16 @@ const getDetail = async () => {
} }
} }
}; };
//
const getName = async () => {
const res = await getTheCurrentUserName();
userName.value = res.userName;
};
watch( watch(
() => route.query, () => route.query,
() => { () => {
getDetail(); getDetail();
getName();
}, },
{ {
immediate: true, immediate: true,

@ -19,7 +19,7 @@
<div v-if="row.stRecordId == 204" <div v-if="row.stRecordId == 204"
class="flex items-center"> class="flex items-center">
<span class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span> <span class="whitespace-nowrap">{{ row?.recordChildren[0]?.name }}</span>
<el-input class="w-[80px] mx-2" <el-input class="w-[150px] mx-2"
v-model="row.ruleOne"></el-input> v-model="row.ruleOne"></el-input>
<span class="whitespace-nowrap">的信用卡</span> <span class="whitespace-nowrap">的信用卡</span>
</div> </div>
@ -207,12 +207,13 @@ const addRecord = async (data: Record<string, any>) => {
data[1].ruleOne && rule.push(handleId(234, 81, data[1].ruleOne, preIds + ',204,234', 3)); data[1].ruleOne && rule.push(handleId(234, 81, data[1].ruleOne, preIds + ',204,234', 3));
data[27].ruleOne && rule.push(handleId(267, 114, data[27].ruleOne === '有' ? 306 : 305, preIds + ',230,267', 1)); data[27].ruleOne && rule.push(handleId(267, 114, data[27].ruleOne === '有' ? 306 : 305, preIds + ',230,267', 1));
data[28].ruleOne && rule.push(handleId(268, 115, data[28].ruleOne === '有' ? 308 : 307, preIds + ',231,267', 1)); data[28].ruleOne && rule.push(handleId(268, 115, data[28].ruleOne === '有' ? 308 : 307, preIds + ',231,268', 1));
data.map((e, i) => { data.map((e, i) => {
if (e.stRecordId != 204 && e.stRecordId != 230 && e.stRecordId != 231) { if (e.stRecordId != 204 && e.stRecordId != 230 && e.stRecordId != 231) {
const len = e?.recordChildren?.length - 1; const len = e?.recordChildren?.length - 1;
e?.recordChildren.map((n, j) => { e?.recordChildren.map((n, j) => {
j !== len && rule.push(handleId(n.id, e.subjectId, j ? e.ruleTwo : e.ruleOne, preIds + ',' + e.stRecordId + ',' + n.id, 5)); console.log('🚀 ~ e?.recordChildren.map ~ n:', n);
j !== len && rule.push(handleId(n.id, n.subjectId, j ? e.ruleTwo : e.ruleOne, preIds + ',' + e.stRecordId + ',' + n.id, 5));
}); });
} }
// //

@ -48,14 +48,14 @@
<el-checkbox v-model="row.spouseEnterprise"></el-checkbox> <el-checkbox v-model="row.spouseEnterprise"></el-checkbox>
</template> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="可以准入" <el-table-column label="可以准入"
min-width="150" min-width="150"
align="center"> align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-checkbox v-model="row.hitAccess" <el-checkbox v-model="row.admittance"
@change="checkNone(row)"></el-checkbox> @change="checkNone(row)"></el-checkbox>
</template> </template>
</el-table-column> --> </el-table-column>
</el-table> </el-table>
<div class="flex justify-end"> <div class="flex justify-end">
@ -106,6 +106,7 @@ const getConfig = async () => {
temp.myselfWorkplace = !!cur?.myselfWorkplace; temp.myselfWorkplace = !!cur?.myselfWorkplace;
temp.spouseEnterprise = !!cur?.spouseEnterprise; temp.spouseEnterprise = !!cur?.spouseEnterprise;
temp.spouseWorkplace = !!cur?.spouseWorkplace; temp.spouseWorkplace = !!cur?.spouseWorkplace;
temp.admittance = !!cur?.admittance;
result.push(temp); result.push(temp);
}); });
}); });
@ -146,7 +147,7 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => {
if (!columnIndex) { if (!columnIndex) {
return { return {
rowspan: 1, rowspan: 1,
colspan: 6, colspan: 7,
}; };
} else { } else {
return { return {
@ -156,6 +157,14 @@ const span = ({ row, column, rowIndex, columnIndex }: SpanMethodProps) => {
} }
} }
}; };
const checkNone = (row: Record<string, any>) => {
if (row.admittance) {
row.myselfEnterprise = false;
row.myselfWorkplace = false;
row.spouseEnterprise = false;
row.spouseWorkplace = false;
}
};
// //
const submit = async () => { const submit = async () => {
let param = []; let param = [];
@ -170,6 +179,7 @@ const submit = async () => {
myselfWorkplace: e.myselfWorkplace ? 1 : 0, myselfWorkplace: e.myselfWorkplace ? 1 : 0,
spouseEnterprise: e.spouseEnterprise ? 1 : 0, spouseEnterprise: e.spouseEnterprise ? 1 : 0,
spouseWorkplace: e.spouseWorkplace ? 1 : 0, spouseWorkplace: e.spouseWorkplace ? 1 : 0,
admittance: e.admittance ? 1 : 0,
}); });
} }
}); });
@ -190,6 +200,7 @@ const addRecord = async (data: Record<string, any>) => {
e.spouseWorkplace && temp.push(384); e.spouseWorkplace && temp.push(384);
e.myselfEnterprise && temp.push(385); e.myselfEnterprise && temp.push(385);
e.spouseEnterprise && temp.push(386); e.spouseEnterprise && temp.push(386);
e.admittance && temp.push(758);
temp.length && rule.push(handleId(e.stRecordId, e.subjectId, temp.join(), preIds + ',' + e.parentId + ',' + e.stRecordId, 1)); temp.length && rule.push(handleId(e.stRecordId, e.subjectId, temp.join(), preIds + ',' + e.parentId + ',' + e.stRecordId, 1));
} }
}); });

Loading…
Cancel
Save