src/components/DictTag/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/system/dict/data.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/DictTag/index.vue
@@ -2,7 +2,7 @@ <div> <template v-for="(item, index) in options"> <template v-if="values.includes(item.value)"> <span v-if="(item.elTagType == 'default' || item.elTagType == '') && (item.elTagClass == '' || item.elTagClass == null)" <span v-if="(item.elTagType === 'default' || item.elTagType === '') && (item.elTagClass === '' || item.elTagClass == null)" :key="item.value" :index="index" :class="item.elTagClass"> {{ item.label + " " }} </span> @@ -11,7 +11,7 @@ :disable-transitions="true" :key="item.value + ''" :index="index" :type="item.elTagType === 'primary' ? '' : item.elTagType" :type="(item.elTagType === 'primary' || item.elTagType === 'default')? '' : item.elTagType" :class="item.elTagClass" > {{ item.label + " " }} src/views/system/dict/data.vue
@@ -49,8 +49,8 @@ <el-table-column label="字典编码" align="center" prop="dictCode" v-if="false" /> <el-table-column label="字典标签" align="center" prop="dictLabel"> <template #default="scope"> <span v-if="(scope.row.listClass == '' || scope.row.listClass == 'default') && (scope.row.cssClass == '' || scope.row.cssClass == null)">{{ scope.row.dictLabel }}</span> <el-tag v-else :type="scope.row.listClass == 'primary' ? '' : scope.row.listClass" :class="scope.row.cssClass">{{ scope.row.dictLabel }}</el-tag> <span v-if="(scope.row.listClass === '' || scope.row.listClass === 'default') && (scope.row.cssClass === '' || scope.row.cssClass == null)">{{ scope.row.dictLabel }}</span> <el-tag v-else :type="(scope.row.listClass === 'primary' || scope.row.listClass === 'default') ? '' : scope.row.listClass" :class="scope.row.cssClass">{{ scope.row.dictLabel }}</el-tag> </template> </el-table-column> <el-table-column label="字典键值" align="center" prop="dictValue" />