Commit 64dd7f65 by chenwq

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

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