From a00ad55263f8a655e95ac1aa91e13c0f9a7af59d Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Fri, 31 May 2024 10:29:23 +0800
Subject: [PATCH] 查询条件
---
src/main/resources/templates/febs/views/dapp/member-withdraw.html | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 106 insertions(+), 13 deletions(-)
diff --git a/src/main/resources/templates/febs/views/dapp/member-withdraw.html b/src/main/resources/templates/febs/views/dapp/member-withdraw.html
index 37187f0..404153d 100644
--- a/src/main/resources/templates/febs/views/dapp/member-withdraw.html
+++ b/src/main/resources/templates/febs/views/dapp/member-withdraw.html
@@ -36,16 +36,33 @@
</div>
</form>
<table lay-filter="withdrawTable" lay-data="{id: 'withdrawTable'}"></table>
+
+ <style type="text/css">
+ /*.layui-table-cell{*/
+ /* text-align:center;*/
+ /* height: auto;*/
+ /* white-space: nowrap; !*文本不会换行,在同一行显示*!*/
+ /* overflow: hidden; !*超出隐藏*!*/
+ /* text-overflow: ellipsis; !*省略号显示*!*/
+ /*}*/
+ /*.layui-table img{*/
+ /* max-width:100px*/
+ /*}*/
+ ::-webkit-scrollbar {
+ height: 20px !important;
+ background-color: #f4f4f4;
+ }
+ </style>
</div>
</div>
</div>
</div>
</div>
-<style>
- .layui-table-cell {
- height: auto !important;
- }
-</style>
+<!--<style>-->
+<!-- .layui-table-cell {-->
+<!-- height: auto !important;-->
+<!-- }-->
+<!--</style>-->
<script type="text/html" id="withdraw-status">
{{#
var status = {
@@ -56,9 +73,6 @@
}}
<span>{{ status.title }}</span>
</script>
-<script type="text/html" id="approve-list">
- <a href="https://tronscan.io/#/address/{{d.address}}" target="_blank">1</a>
-</script>
<script type="text/html" id="withdraw-option">
<span shiro:lacksPermission="withdraw:agree,withdraw:disagree">
<span class="layui-badge-dot febs-bg-orange"></span> 无权限
@@ -67,6 +81,19 @@
<a lay-event="agree" shiro:hasPermission="withdraw:agree">审核通过</a>
<a lay-event="disagree" shiro:hasPermission="withdraw:disagree">审核驳回</a>
{{# } }}
+</script>
+
+<script type="text/html" id="tableToolBarOrder">
+ <div class="layui-btn-container">
+ <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" lay-event="confirmOrder">提现确认</button>
+ <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" lay-event="confirmCancel">提现取消</button>
+ </div>
+</script>
+
+
+
+<script type="text/html" id="approve-list">
+ <a href="https://bscscan.com/address/{{d.address}}" target="_blank">{{d.address}}</a>
</script>
<script data-th-inline="none" type="text/javascript">
layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect'], function () {
@@ -86,6 +113,70 @@
form.render();
initTable();
+
+ table.on('toolbar(withdrawTable)', function(obj){
+ var event = obj.event;
+ var id = obj.config.id;
+ var checkStatus = table.checkStatus(id);
+ if(event === 'confirmOrder'){
+ var data = checkStatus.data;
+ let ids = "";
+ let totalAmount = 0;
+ for(let i = 0;i < data.length;i++){
+ if(data[i].status != 1){
+ febs.alert.warn('请选择审核中的记录');
+ return;
+ }else{
+ ids = ids + data[i].id+",";
+ totalAmount = totalAmount + data[i].amount;
+ }
+ }
+ if(ids == null || ids == ""){
+ febs.alert.warn('请选择审核中的记录');
+ return;
+ }
+
+ febs.modal.confirm('USDT提现', '总额为:'+totalAmount, function () {
+ confirmOrder(ids);
+ });
+ }
+ if(event === 'confirmCancel'){
+ var data = checkStatus.data;
+ let ids = "";
+ let totalAmount = 0;
+ for(let i = 0;i < data.length;i++){
+ if(data[i].status != 1){
+ febs.alert.warn('请选择审核中的记录');
+ return;
+ }else{
+ ids = ids + data[i].id+",";
+ totalAmount = totalAmount + data[i].amount;
+ }
+ }
+ if(ids == null || ids == ""){
+ febs.alert.warn('请选择审核中的记录');
+ return;
+ }
+
+ febs.modal.confirm('提现取消', '总额为:'+totalAmount, function () {
+ confirmCancel(ids);
+ });
+ }
+ });
+ function confirmOrder(ids) {
+ febs.get(ctx + 'flow/confirmOrder?&orderIds='+ids, null, function () {
+ febs.alert.success('操作成功');
+ $query.click();
+
+ });
+ }
+ function confirmCancel(ids) {
+ febs.get(ctx + 'flow/confirmCancel?&orderIds='+ids, null, function () {
+ febs.alert.success('操作成功');
+ $query.click();
+
+ });
+ }
table.on('tool(withdrawTable)', function (obj) {
var data = obj.data,
@@ -129,13 +220,15 @@
elem: $view.find('table'),
id: 'withdrawTable',
url: ctx + 'flow/fundFlow?type=7',
+ toolbar: '#tableToolBarOrder',
cols: [[
- {field: 'address', title: '地址', minWidth: 130},
- {field: 'createTime', title: '创建时间', minWidth: 180},
+ {type: 'checkbox', fixed: 'left'},
+ {title: '地址', templet: '#approve-list', minWidth: 400},
+ {field: 'createTime', title: '创建时间', minWidth: 200},
{field: 'amount', title: '金额(USDT)', minWidth: 130},
- {title: '提现状态', templet: '#withdraw-status'},
- {field: 'fee', title: '手续费', minWidth: 130},
- {title: '操作', toolbar: '#withdraw-option', minWidth: 200}
+ {title: '提现状态', templet: '#withdraw-status', minWidth: 130},
+ // {field: 'fee', title: '手续费', minWidth: 130},
+ // {title: '操作', toolbar: '#withdraw-option', minWidth: 200}
]]
});
}
--
Gitblit v1.9.1