This commit is contained in:
2026-03-01 16:41:12 +08:00
parent a6517f1ea1
commit bd639ba66c
2 changed files with 106 additions and 0 deletions

View File

@@ -509,6 +509,7 @@ const featureMap = {
name: "个人消费等级",
component: defineAsyncComponent(() => import("@/ui/JRZQ8B3C/index.vue")),
},
IVYZ6M8P: { name: "职业资格证书查询", component: defineAsyncComponent(() => import("@/ui/CIVYZ6M8P.vue")) },
};
const maskValue = computed(() => {
@@ -596,6 +597,7 @@ const featureRiskLevels = {
'QCXG7A2B': 5, // 名下车辆
'JRZQ09J8': 5, // 收入评估
'IVYZ0S0D': 10, // 劳动仲裁信息
'IVYZ6M8P': 5,
// 🔵 低风险类 - 权重 3
'IVYZ5733': 3, // 婚姻状态

104
src/ui/CIVYZ6M8P.vue Normal file
View File

@@ -0,0 +1,104 @@
<template>
<div class="card">
<div class="header-box">
<h3 class="header-title">职业资格证书查询</h3>
<p class="header-desc">展示查询到的职业资格考试及等级信息</p>
</div>
<div v-if="hasData" class="result-section">
<div class="info-row">
<span class="info-label">考试名称</span>
<span class="info-value">{{ examName || '-' }}</span>
</div>
<div class="info-row">
<span class="info-label">级别</span>
<span class="info-value">{{ level || '-' }}</span>
</div>
<div class="info-row">
<span class="info-label">专业</span>
<span class="info-value">{{ major || '-' }}</span>
</div>
<div class="info-row">
<span class="info-label">通过日期</span>
<span class="info-value">{{ passDate || '-' }}</span>
</div>
</div>
<div v-if="hasData && !examName && !major && !level && !passDate" class="empty-tip">
已返回结果但格式不在预期范围内请联系技术支持查看原始数据
</div>
<div v-if="!hasData" class="empty-tip">暂无查询结果</div>
</div>
</template>
<script setup>
import { computed } from 'vue';
const props = defineProps({
data: { type: Object, default: () => ({}) },
params: { type: Object, default: () => ({}) },
apiId: { type: String, default: '' },
index: { type: Number, default: 0 },
notifyRiskStatus: { type: Function, default: () => { } },
});
const hasData = computed(() => props.data && Object.keys(props.data).length > 0);
// ED0001: 考试名称, ED0002: 级别, ED0003: 专业, ED0004: 通过年月
const examName = computed(() => props.data?.ED0001 || '');
const level = computed(() => props.data?.ED0002 || '');
const major = computed(() => props.data?.ED0003 || '');
const passDate = computed(() => props.data?.ED0004 || '');
</script>
<style scoped>
.card {
padding: 1rem;
}
.header-box {
margin-bottom: 1rem;
}
.header-title {
font-size: 1.125rem;
font-weight: 600;
}
.header-desc {
font-size: 0.875rem;
color: #6b7280;
margin-top: 0.25rem;
}
.result-section {
background: #f9fafb;
padding: 0.75rem 0.875rem;
border-radius: 0.75rem;
}
.info-row {
display: flex;
justify-content: space-between;
font-size: 0.875rem;
padding: 0.25rem 0;
}
.info-label {
color: #6b7280;
}
.info-value {
color: #111827;
margin-left: 1rem;
text-align: right;
}
.empty-tip {
color: #9ca3af;
font-size: 0.875rem;
padding: 1rem 0;
text-align: center;
}
</style>