CN-906 fix: 上传loading、保存loading

This commit is contained in:
chenjinsong
2023-03-07 18:48:15 +08:00
parent 85d9b3d738
commit 801858c07d
3 changed files with 48 additions and 9 deletions

View File

@@ -44,6 +44,9 @@
<span>-</span>
</template>
</template>
<template v-else-if="item.prop === 'tagType'">
<span class="type-tag">{{tagTypeText(scope.row[item.prop])}}</span>
</template>
<template v-else-if="item.prop === 'utime' || item.prop === 'ctime'">
<template v-if="scope.row[item.prop]">
{{dateFormatByAppearance(scope.row[item.prop])}}
@@ -60,7 +63,7 @@
<span>-</span>
</template>
</template>
<span v-else>{{scope.row[item.prop]}}</span>
<span v-else>{{scope.row[item.prop] || '-'}}</span>
</template>
</el-table-column>
<el-table-column
@@ -91,6 +94,7 @@
<script>
import table from '@/mixins/table'
import { knowledgeBaseType } from '@/utils/constants'
export default {
name: 'knowledgeBaseTable',
mixins: [table],
@@ -141,6 +145,14 @@ export default {
}
]
}
},
computed: {
tagTypeText () {
return function (type) {
const t = knowledgeBaseType.find(t => t.value === type)
return t ? t.name : ''
}
}
}
}
</script>