Commit 64dd7f65 by chenwq

refactor(financeManage): 优化资产数据同步状态显示逻辑

将硬编码的同步状态显示改为从baseData.jdSyncOpt中动态获取,同时调整状态对应的样式类名
1 parent d3491593
......@@ -445,15 +445,12 @@ export default {
prop: 'h5JdSync',
width: '150px',
formatter: (cellValue) => {
return {
true: '成功',
false: '失败'
}[cellValue.h5JdSync]
return this.baseData.jdSyncOpt.find(item => item.confId === cellValue.h5JdSync)?.confValue
},
className: (cellValue) => {
return {
false: 'redSpot',
true: 'greenSpot'
0: 'redSpot',
1: 'greenSpot'
}[cellValue.h5JdSync]
}
}, {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!