文件存储恢复表格存储类型列的显示,修复字典标签组件无法取值数字类型的问题
This commit is contained in:
parent
9c936b199e
commit
9022d1d85e
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<template v-for="(item, index) in props.options">
|
||||
<template v-if="values.includes(item.dictValue)">
|
||||
<template v-if="values.includes(item.dictValue.toString())">
|
||||
<span v-if="item.listClass == 'default' || item.listClass == ''" :key="item.dictValue" :index="index" :class="item.cssClass">
|
||||
{{ item.dictLabel }} <i v-if="showValue">#{{ item.dictValue }}</i>
|
||||
</span>
|
||||
@ -23,11 +23,11 @@ const props = defineProps({
|
||||
// 数据
|
||||
options: {
|
||||
type: Array,
|
||||
default: null,
|
||||
default: null
|
||||
},
|
||||
// 当前的值
|
||||
value: [Number, String, Array, Boolean],
|
||||
showValue: false,
|
||||
showValue: false
|
||||
})
|
||||
|
||||
const values = computed(() => {
|
||||
|
||||
@ -66,11 +66,11 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="fileSize" label="文件大小" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="fileExt" label="扩展名" align="center" :show-overflow-tooltip="true" width="80px" />
|
||||
<!-- <el-table-column prop="storeType" label="存储类型" align="center">
|
||||
<el-table-column prop="storeType" label="存储类型" align="center">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="storeTypeOptions" :value="parseInt(scope.row.storeType)" />
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
</el-table-column>
|
||||
<el-table-column prop="storePath" label="存储目录"></el-table-column>
|
||||
<el-table-column prop="create_by" label="操作人" align="center" />
|
||||
<el-table-column prop="create_time" label="创建日期" align="center" width="150" />
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user