diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html index b5c772668..4c75cceeb 100644 --- a/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/account/trx2Energy.html @@ -104,10 +104,30 @@ title: '能量资源', },{ field: 'totalFrozen', - title: '抵押资产TRX', + title: '在押资产', + formatter: function (value, row, index) { + // 确保值是一个数字 + if (!isNaN(value)) { + // 保留两位小数 + return parseFloat(value).toFixed(2); + } else { + // 如果值不是数字,直接返回原值 + return value; + } + } },{ field: 'trxBalance', - title: 'TRX余额', + title: '账户余额', + formatter: function (value, row, index) { + // 确保值是一个数字 + if (!isNaN(value)) { + // 保留两位小数 + return parseFloat(value).toFixed(2); + } else { + // 如果值不是数字,直接返回原值 + return value; + } + } }, { field: 'fcd', diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html index fc979ce92..a84ad6a95 100644 --- a/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/fail/fail.html @@ -96,7 +96,8 @@ field: 'fromAddress', title: '转出账户', formatter: function (value, row, index) { - return "" + value + ""; + const maskedValue = value.replace(/^(.{6}).*(.{8})$/, '$1***$2'); + return "" + maskedValue + ""; } }, { @@ -179,7 +180,7 @@ }, { field: 'calcRule', - title: '笔数计算规则', + title: '能量规则', formatter: function(value, row, index) { return $.table.selectDictLabel(calcRuleDatas, value); } diff --git a/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html b/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html index e84f70fb3..e25b3caec 100644 --- a/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html +++ b/ruoyi-admin/src/main/resources/templates/trx2Energy/freeze/add.html @@ -23,7 +23,7 @@
- +
  • - + diff --git a/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml index 3c97caa0b..aee480336 100644 --- a/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/ErrorLogMapper.xml @@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and lcd = #{lcd} and lcu = #{lcu} + order by fcd desc