Commit 962a1a83 by 李伟康

Merge branch 'feature/584/lwk' into 'SAAS+V5.8.4'

utils(TrafficProviderInformation): 添加文本格式化工具函数

See merge request !887
2 parents bd3f1b59 1d981af5
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<component :is="i.addComponent" :value.sync="componentData[i.key]" isViewMode <component :is="i.addComponent" :value.sync="componentData[i.key]" isViewMode
:list="componentData[i.listKey]" /> :list="componentData[i.listKey]" />
</template> </template>
<template v-else> {{ componentData[i.key] || '-' }}</template> <template v-else> {{ formatText(componentData[i.key]) }}</template>
<template <template
v-if="i.unit && componentData[i.key] != null && componentData[i.key] != '' && componentData[i.key] != undefined"> v-if="i.unit && componentData[i.key] != null && componentData[i.key] != '' && componentData[i.key] != undefined">
...@@ -297,6 +297,10 @@ export default { ...@@ -297,6 +297,10 @@ export default {
}) })
} }
return flag return flag
},
formatText(val){
if(val == null || val === '' || val == undefined) return '-'
else return val
} }
}, },
mounted() { mounted() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!