Commit 89ea586f authored by 邓春圆's avatar 邓春圆

添加序号,日志调整

parent 003975e1
...@@ -36,7 +36,11 @@ ...@@ -36,7 +36,11 @@
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column label="" align="center" prop="id" /> <el-table-column label="序号" align="center" >
<template v-slot="{row, $index}">
{{(queryParams.pageNo - 1) * queryParams.pageSize + ($index + 1)}}
</template>
</el-table-column>
<el-table-column label="币种1" align="center" prop="sourceCurrencyId"> <el-table-column label="币种1" align="center" prop="sourceCurrencyId">
<template slot-scope="scope"> <template slot-scope="scope">
{{getCurrency(scope.row.sourceCurrencyId)}} {{getCurrency(scope.row.sourceCurrencyId)}}
...@@ -132,8 +136,8 @@ ...@@ -132,8 +136,8 @@
</el-table-column> </el-table-column>
<el-table-column label="修改前内容"> <el-table-column label="修改前内容">
<template v-slot="{row}"> <template v-slot="{row}">
币种1:【{{row.beforeChangeSourceValue}}<br/> 币种1:【{{ getCurrency(row.beforeChangeSourceValue, true, 'fuhao')}}<br/>
币种2:【{{row.beforeChangeTargetValue}}<br/> 币种2:【{{getCurrency(row.beforeChangeTargetValue, true, 'fuhao')}}<br/>
汇率:【{{row.beforeChangeValue}}<br/> 汇率:【{{row.beforeChangeValue}}<br/>
</template> </template>
</el-table-column> </el-table-column>
...@@ -225,9 +229,9 @@ export default { ...@@ -225,9 +229,9 @@ export default {
} }
return '' return ''
}, },
getCurrency(val, isEn = false){ getCurrency(val, isEn = false , value = 'id'){
if (val){ if (val){
let r = this.currencyList.find(i => i.id === val) let r = this.currencyList.find(i => i[value] === val)
if(isEn){ if(isEn){
return r?.titleEn return r?.titleEn
}else { }else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment