考试记录

This commit is contained in:
yanran200730
2023-02-15 17:16:53 +08:00
parent cea33b109f
commit 249917b3d9
6 changed files with 145 additions and 48 deletions

View File

@@ -11,7 +11,7 @@
<template v-else-if="!!openType">
<ai-open-data :type="openType" :openid="value"/>
</template>
<template v-else>{{ value || '-' }}</template>
<template v-else>{{ value || value === 0 ? value : '-' }}</template>
</div>
</div>
</template>

View File

@@ -183,7 +183,8 @@ export default {
if (colConfig.dateFormat) {
return moment(row[colConfig.prop]).format(colConfig.dateFormat)
}
return row[colConfig.prop] || "-"
return row[colConfig.prop] === 0 || row[colConfig.prop] ? row[colConfig.prop] : '-'
},
/**
* 表格方法代理