Commit 4e15ffc4 by zhangxw

商户关系回显修改

1 parent 41840e3c
Pipeline #273 for 4e15ffc4 skipped in 0 seconds
......@@ -60,7 +60,7 @@
{{ getSelectText(i) }}
</template>
<template v-else>
{{ componentData[i.key] || '-' }}
{{ formatViewText(componentData[i.key]) }}
</template>
</template>
......@@ -118,7 +118,7 @@
{{ (i.options.find(o => o.value === componentData[i.key]) && i.options.find(o => o.value === componentData[i.key]).label) || '-' }}
</template>
<template v-else>
{{ componentData[i.key] || '-' }}
{{ formatViewText(componentData[i.key]) }}
</template>
</template>
</el-form-item>
......@@ -539,6 +539,12 @@ export default {
}
},
methods: {
formatViewText(value) {
if (value === null || value === undefined || value === "") {
return "-";
}
return String(value);
},
// 获取兜底指标列表
getBackstopData() {
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!