From 7e3ef24a24df87f71beedefeec3febb1ce13b094 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 18 May 2021 18:56:59 +0800 Subject: [PATCH] 20210518 --- src/main/resources/templates/febs/views/modules/member/applyCoin.html | 30 ++++++++++-------------------- 1 files changed, 10 insertions(+), 20 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/member/applyCoin.html b/src/main/resources/templates/febs/views/modules/member/applyCoin.html index d02687c..c63bbc9 100644 --- a/src/main/resources/templates/febs/views/modules/member/applyCoin.html +++ b/src/main/resources/templates/febs/views/modules/member/applyCoin.html @@ -35,22 +35,6 @@ </div> </div> </div> -<!-- 表格字段状态格式化 start --> -<script type="text/html" id="status"> - {{# - var status = { - 1: {title: '已到账' , color: 'green'}, - 0: {title: '已到账' }, - 2: {title: '已到账' }, - 3: {title: '已到账' }, - 4: {title: '已到账' } - }[d.status]; - }} - <span class="layui-badge febs-tag-{{status.color}}">{{ status.title }}</span> -</script> - -<!-- 表格字段状态格式化 start --> - <!-- 表格操作栏 end --> <script data-th-inline="none" type="text/javascript"> // 引入组件并初始化 @@ -92,9 +76,7 @@ // 刷新按钮 $reset.on('click', function () { $searchForm[0].reset(); - treeSelect.revokeNode('dept'); - sortObject.type = 'null'; - tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject}); + tableIns.reload({where: getQueryParams(), page: {curr: 1}}); }); function initTable() { @@ -113,7 +95,14 @@ {field: 'lastAmount', title: '本次余额', minWidth: 100,align:'center'}, {field: 'address', title: '平台钱包地址', minWidth: 280,align:'center'}, {field: 'createTime', title: '创建时间', minWidth: 200,align:'center'}, - {title: '状态', templet: '#status', minWidth: 100,align:'center'} + {field: 'status', title: '状态', + templet: function (d) { + if (d.status === 1) { + return '<span style="color:green;">已到账</span>' + } else { + return '' + } + }, minWidth: 200,align:'center'}, ]] }); } @@ -123,6 +112,7 @@ return { account: $searchForm.find('input[name="account"]').val().trim(), address: $searchForm.find('input[name="address"]').val().trim(), + isTest: $searchForm.find("select[name='isTest']").val() }; } -- Gitblit v1.9.1