fix: 增加tag组件兼容性; 调整steps样式

This commit is contained in:
wenhua
2024-07-14 18:18:32 +08:00
parent f1237de72a
commit c6222e0528
3 changed files with 9 additions and 2 deletions

View File

@@ -1,9 +1,9 @@
<template>
<div class="tag-style">
<el-tag v-if="tagConfig.isType" :type="tagConfig.listClass" :effect="tagConfig.theme || 'plain'">
<el-tag v-if="tagConfig?.isType" :type="tagConfig?.listClass" :effect="tagConfig?.theme || 'plain'">
{{ filterDict(cacheStore.getDict(dictType), value) }}
</el-tag>
<el-tag v-else :color="tagConfig.listClass" :effect="tagConfig.theme || 'plain'"
<el-tag v-else :color="tagConfig?.listClass" :effect="tagConfig?.theme || 'plain'"
:class="{'null-tag':filterDict(cacheStore.getDict(dictType), value)===undefined}">
{{ filterDict(cacheStore.getDict(dictType), value) }}
</el-tag>

View File

@@ -334,4 +334,10 @@ watchEffect(() => {
.is-end {
color: #BEA266;
}
:deep(.el-step__title.is-success) {
color: #A8abb2;
}
:deep(.el-step__head.is-success) {
border-color: #A8abb2;
}
</style>

View File

@@ -217,6 +217,7 @@ filterColumns()
const getList = async () => {
const {api, params} = props.tableConfig
const queryParmas = {...localData.query, ...params}
console.log("🚀 ~ getList ~ queryParmas:", queryParmas)
if (api) {
localData.loading = true
try {