|
|
|
|
@ -133,7 +133,7 @@
|
|
|
|
|
collapse-tags |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in dict.tagList" |
|
|
|
|
v-for="item in dict.sfssTags" |
|
|
|
|
:key="item.id" |
|
|
|
|
:value="item.dictValue" |
|
|
|
|
:label="item.dictLabel" |
|
|
|
|
@ -224,7 +224,7 @@
|
|
|
|
|
</header> |
|
|
|
|
<div class="table-container" v-loading="loading"> |
|
|
|
|
<el-table :data="list"> |
|
|
|
|
<el-table-column type="expand"> |
|
|
|
|
<el-table-column type="expand" v-if="false"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
<div class="row mt-10"> |
|
|
|
|
<div class="col col-6"> |
|
|
|
|
@ -238,7 +238,7 @@
|
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="信件编号" width="100" prop="originId" show-overflow-tooltip/> |
|
|
|
|
<el-table-column label="信件编号" width="130" prop="originId" show-overflow-tooltip/> |
|
|
|
|
<el-table-column label="来源" width="100" show-overflow-tooltip v-if="false"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
{{ getDictLabel(dict.sfssSourceTable, row.sourceTable) }} |
|
|
|
|
@ -270,9 +270,9 @@
|
|
|
|
|
{{ getDictLabel(dict.yesNo, row.leadApproval) }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="标签" width="100"> |
|
|
|
|
<el-table-column label="标签" width="100" show-overflow-tooltip> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
{{ getDictLabel(dict.tagList, row.tag) }} |
|
|
|
|
{{ getDictLabel(dict.sfssTags, row.tag) }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="办理方式" width="100"> |
|
|
|
|
@ -614,6 +614,7 @@ const storeDict = computed(() =>
|
|
|
|
|
"specialSupervision", |
|
|
|
|
"checkStatus", |
|
|
|
|
"sfssSourceTable", |
|
|
|
|
"sfssTags" |
|
|
|
|
]) || {} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
@ -747,14 +748,32 @@ const dict = computed(() => ({
|
|
|
|
|
function getDictLabel(list, value) { |
|
|
|
|
if (!Array.isArray(list)) return '/' |
|
|
|
|
|
|
|
|
|
// 兼容 value 是数组:['0'] / ['1'] |
|
|
|
|
if (Array.isArray(value)) value = value[0] |
|
|
|
|
|
|
|
|
|
if (value === null || value === undefined || value === '') return '/' |
|
|
|
|
|
|
|
|
|
// 兼容你的字典字段:dictValue/dictLabel |
|
|
|
|
const item = list.find(d => d.dictValue == value) |
|
|
|
|
return item ? item.dictLabel : '/' |
|
|
|
|
let values = [] |
|
|
|
|
|
|
|
|
|
// 1️⃣ value 是数组 |
|
|
|
|
if (Array.isArray(value)) { |
|
|
|
|
values = value |
|
|
|
|
} |
|
|
|
|
// 2️⃣ value 是 "1,2,3" 这种字符串 |
|
|
|
|
else if (typeof value === 'string' && value.includes(',')) { |
|
|
|
|
values = value.split(',').map(v => v.trim()) |
|
|
|
|
} |
|
|
|
|
// 3️⃣ 单值(string / number) |
|
|
|
|
else { |
|
|
|
|
values = [value] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 4️⃣ 映射成字典中文 |
|
|
|
|
const labels = values |
|
|
|
|
.map(v => { |
|
|
|
|
const item = list.find(d => d.dictValue == v) |
|
|
|
|
return item?.dictLabel |
|
|
|
|
}) |
|
|
|
|
.filter(Boolean) |
|
|
|
|
|
|
|
|
|
return labels.length ? labels.join(',') : '/' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
|