修复状态单元格

This commit is contained in:
likun 2025-06-09 16:54:52 +08:00
parent 16ef5c843a
commit db5b357269

View File

@ -94,8 +94,8 @@ const handleServerRowData = (fieldsDescInfoData, rowData) => {
if (field.type === "tagStatus") {
for (let k = 0; k < field.choices.length; k++) {
if (rowData[field.key] === field.choices[k].value) {
rowData.tagValue = field.choices[k].desc
rowData.tagColor = tagStatusColorArray[field.choices[k].type]
rowData["tagValue" + field.key] = field.choices[k].desc
rowData["tagColor" + field.key] = tagStatusColorArray[field.choices[k].type]
}
}
}
@ -599,11 +599,14 @@ const handlePaginationCurChange = (val) => {
<el-table-column prop="jsonValue" :label="fieldDescInfo.name"
:show-overflow-tooltip="{effect:'light',placement:'top'}"
v-if="(fieldDescInfo.type === 'items')"></el-table-column>
<!-- 角色状态 -->
<el-table-column prop="tagValue" :label="fieldDescInfo.name"
<!-- 状态 -->
<el-table-column :prop="'tagValue'+fieldDescInfo.key" :label="fieldDescInfo.name"
v-else-if="(fieldDescInfo.type === 'tagStatus')">
<template #default="scope">
<el-tag :type="scope.row.tagColor">{{ scope.row.tagValue }}</el-tag>
<el-tag :type="scope.row['tagColor'+fieldDescInfo.key]">{{
scope.row['tagValue' + fieldDescInfo.key]
}}
</el-tag>
<!-- <el-tag type="success" v-else-if="scope.row.Status === '在线'">{{ scope.row.Status }}</el-tag>-->
</template>
</el-table-column>