【更新】tools.js增加字典颜色翻译方法,并优化页面中字典颜色的使用

This commit is contained in:
xuyuxiang
2026-01-28 00:18:14 +08:00
parent cf34cdb621
commit d85e080643
8 changed files with 30 additions and 48 deletions

View File

@@ -130,7 +130,7 @@
</template>
<% } else if (configList[i].effectType == 'checkbox') { %>
<template v-if="column.dataIndex === '${configList[i].fieldNameCamelCase}'">
<a-tag v-for="textValue in JSON.parse(record.${configList[i].fieldNameCamelCase})" :key="textValue" color="green">{{ $TOOL.dictTypeData('${configList[i].dictTypeCode}', textValue) }}</a-tag>
<a-tag v-for="textValue in JSON.parse(record.${configList[i].fieldNameCamelCase})" :key="textValue" :color="$TOOL.dictTypeColor('${configList[i].dictTypeCode}', textValue)">{{ $TOOL.dictTypeData('${configList[i].dictTypeCode}', textValue) }}</a-tag>
</template>
<% } else if (configList[i].effectType == 'imageUpload') { %>
<template v-if="column.dataIndex === '${configList[i].fieldNameCamelCase}'">