Commit 4e15ffc4 by zhangxw

商户关系回显修改

1 parent 41840e3c
Pipeline #273 for 4e15ffc4 skipped in 0 seconds
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
{{ getSelectText(i) }} {{ getSelectText(i) }}
</template> </template>
<template v-else> <template v-else>
{{ componentData[i.key] || '-' }} {{ formatViewText(componentData[i.key]) }}
</template> </template>
</template> </template>
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
{{ (i.options.find(o => o.value === componentData[i.key]) && i.options.find(o => o.value === componentData[i.key]).label) || '-' }} {{ (i.options.find(o => o.value === componentData[i.key]) && i.options.find(o => o.value === componentData[i.key]).label) || '-' }}
</template> </template>
<template v-else> <template v-else>
{{ componentData[i.key] || '-' }} {{ formatViewText(componentData[i.key]) }}
</template> </template>
</template> </template>
</el-form-item> </el-form-item>
...@@ -539,6 +539,12 @@ export default { ...@@ -539,6 +539,12 @@ export default {
} }
}, },
methods: { methods: {
formatViewText(value) {
if (value === null || value === undefined || value === "") {
return "-";
}
return String(value);
},
// 获取兜底指标列表 // 获取兜底指标列表
getBackstopData() { getBackstopData() {
const baseSceneCode = this.baseSceneCode; const baseSceneCode = this.baseSceneCode;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!