| | |
| | | <div class="layui-col-md12">
|
| | | <div class="layui-card">
|
| | | <div class="layui-card-body febs-table-full">
|
| | | <form class="layui-form layui-table-form" lay-filter="user-table-form">
|
| | | </form>
|
| | | <table lay-filter="userTable" lay-data="{id: 'userTable'}"></table>
|
| | | <table id=usersTable></table>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | | </script>
|
| | | <!-- 表格操作栏 end -->
|
| | | <script data-th-inline="none" type="text/javascript">
|
| | | // 引入组件并初始化
|
| | | layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs'], function () {
|
| | | var $ = layui.jquery,
|
| | | laydate = layui.laydate,
|
| | | febs = layui.febs,
|
| | | form = layui.form,
|
| | | table = layui.table,
|
| | | dropdown = layui.dropdown,
|
| | | $view = $('#febs-user'),
|
| | | $reset = $view.find('#reset'),
|
| | | $add = $view.find('#add'),
|
| | | $searchForm = $view.find('form'),
|
| | | sortObject = {field: 'title', type: null},
|
| | | tableIns
|
| | | ;
|
| | | // 引入组件并初始化
|
| | | layui.use([ 'jquery', 'form', 'table', 'febs'], function () {
|
| | | var $ = layui.jquery,
|
| | | laydate = layui.laydate,
|
| | | febs = layui.febs,
|
| | | form = layui.form,
|
| | | table = layui.table,
|
| | | $view = $('#febs-user'),
|
| | | tableInss,
|
| | | tableIns;
|
| | |
|
| | | form.render();
|
| | | form.render();
|
| | | // 表格初始化
|
| | | initTable();
|
| | |
|
| | | // 表格初始化
|
| | | initTable();
|
| | | function initTable() {
|
| | |
|
| | | // 刷新按钮
|
| | | $reset.on('click', function () {
|
| | | $searchForm[0].reset();
|
| | | sortObject.type = 'null';
|
| | | tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject});
|
| | | tableInss = febs.table.init({
|
| | | elem: $('#usersTable'),
|
| | | url: ctx + 'member/memberDataInfo',
|
| | | cols: [[
|
| | | {field: 'memberCount', title: '注册用户数', minWidth: 120,align:'center'},
|
| | | {field: 'notNullNumber', title: '持仓用户数', minWidth: 120,align:'center'},
|
| | | {field: 'walletNumber', title: '币币账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'walletNum', title: '币币账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'walletCoinNumber', title: '合约账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'agentNum', title: '合约账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'platformProfitAndLoss', title: '平台剩余USDT',
|
| | | templet: function (d) {
|
| | | if (d.platformProfitAndLoss > '0') {
|
| | | return '<span style="color:green;">'+d.platformProfitAndLoss+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.platformProfitAndLoss+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'},
|
| | | {field: 'chargeCoin', title: '充币', minWidth: 200,align:'center'},
|
| | | {field: 'appealCoin', title: '提币', minWidth: 200,align:'center'},
|
| | | {field: 'chargeUsdt', title: 'usdt充值', minWidth: 200,align:'center'},
|
| | | {field: 'appealUsdt', title: 'usdt提现', minWidth: 200,align:'center'},
|
| | | {field: 'fee', title: '佣金', minWidth: 200,align:'center'},
|
| | | {field: 'closingPrice', title: '开仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'sellClosingPrice', title: '平仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'doingPrice', title: '持仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'yingkui', title: '订单盈亏',
|
| | | templet: function (d) {
|
| | | if (d.yingkui > '0') {
|
| | | return '<span style="color:green;">'+d.yingkui+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.yingkui+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'}
|
| | | ]]
|
| | | });
|
| | | |
| | | function initTable() {
|
| | | tableIns = febs.table.init({
|
| | | elem: $view.find('table'),
|
| | | id: 'userTable',
|
| | | url: ctx + 'member/memberDataInfo',
|
| | | cols: [[
|
| | | {field: 'memberCount', title: '注册用户数', minWidth: 120,align:'center'},
|
| | | {field: 'notNullNumber', title: '持仓用户数', minWidth: 120,align:'center'},
|
| | | {field: 'walletNumber', title: '币币账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'walletNum', title: '币币账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'walletCoinNumber', title: '合约账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'agentNum', title: '合约账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'platformProfitAndLoss', title: '平台剩余USDT',
|
| | | templet: function (d) {
|
| | | if (d.platformProfitAndLoss > '0') {
|
| | | return '<span style="color:green;">'+d.platformProfitAndLoss+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.platformProfitAndLoss+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'},
|
| | | {field: 'chargeCoin', title: '充币', minWidth: 200,align:'center'},
|
| | | {field: 'appealCoin', title: '提币', minWidth: 200,align:'center'},
|
| | | {field: 'chargeUsdt', title: 'usdt充值', minWidth: 200,align:'center'},
|
| | | {field: 'appealUsdt', title: 'usdt提现', minWidth: 200,align:'center'},
|
| | | {field: 'fee', title: '佣金', minWidth: 200,align:'center'},
|
| | | {field: 'closingPrice', title: '开仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'sellClosingPrice', title: '平仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'doingPrice', title: '持仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'yingkui', title: '订单盈亏',
|
| | | templet: function (d) {
|
| | | if (d.yingkui > '0') {
|
| | | return '<span style="color:green;">'+d.yingkui+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.yingkui+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'}
|
| | | ]]
|
| | | });
|
| | | }
|
| | | })
|
| | | tableIns = febs.table.init({
|
| | | elem: $('#userTable'),
|
| | | url: ctx + 'member/memberDataInfo',
|
| | | cols: [[
|
| | | {field: 'memberCount', title: '注册用户数', minWidth: 120,align:'center'},
|
| | | {field: 'notNullNumber', title: '持仓用户数', minWidth: 120,align:'center'},
|
| | | {field: 'walletNumber', title: '币币账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'walletNum', title: '币币账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'walletCoinNumber', title: '合约账户有余额个数', minWidth: 200,align:'center'},
|
| | | {field: 'agentNum', title: '合约账户余额', minWidth: 200,align:'center'},
|
| | | {field: 'platformProfitAndLoss', title: '平台剩余USDT',
|
| | | templet: function (d) {
|
| | | if (d.platformProfitAndLoss > '0') {
|
| | | return '<span style="color:green;">'+d.platformProfitAndLoss+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.platformProfitAndLoss+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'},
|
| | | {field: 'chargeCoin', title: '充币', minWidth: 200,align:'center'},
|
| | | {field: 'appealCoin', title: '提币', minWidth: 200,align:'center'},
|
| | | {field: 'chargeUsdt', title: 'usdt充值', minWidth: 200,align:'center'},
|
| | | {field: 'appealUsdt', title: 'usdt提现', minWidth: 200,align:'center'},
|
| | | {field: 'fee', title: '佣金', minWidth: 200,align:'center'},
|
| | | {field: 'closingPrice', title: '开仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'sellClosingPrice', title: '平仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'doingPrice', title: '持仓手续费', minWidth: 200,align:'center'},
|
| | | {field: 'yingkui', title: '订单盈亏',
|
| | | templet: function (d) {
|
| | | if (d.yingkui > '0') {
|
| | | return '<span style="color:green;">'+d.yingkui+'</span>'
|
| | | } else {
|
| | | return '<span style="color:red;">'+d.yingkui+'</span>'
|
| | | }
|
| | | }, minWidth: 200,align:'center'}
|
| | | ]]
|
| | | });
|
| | | }
|
| | | })
|
| | | </script> |