| | |
| | | disagree(data.id); |
| | | }); |
| | | } |
| | | |
| | | if (layEvent === 'amountFlow') { |
| | | febs.modal.open( '资金流水详情', 'onHookView/amountFlow/' + data.id, { |
| | | maxmin: true, |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | function agree(id) { |
| | |
| | | {field: 'planCode', title: '挂机方案倍数', minWidth: 120, align: 'center'}, |
| | | {field: 'profit', title: '总收益', minWidth: 120, align: 'center', totalRow: true}, |
| | | {field: 'createTime', title: '时间', minWidth: 180, align: 'center'}, |
| | | // {title: '操作', |
| | | // templet: function (d) { |
| | | // if(d.status === 1){ |
| | | // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="agree" shiro:hasPermission="user:update">同意</button>' |
| | | // +'<button class="layui-btn layui-btn-danger layui-btn-xs layui-btn-danger" lay-event="disagree" shiro:hasPermission="user:update">拒绝</button>' |
| | | // }else{ |
| | | // return '' |
| | | // } |
| | | // },minWidth: 120,align:'center'} |
| | | {title: '操作', |
| | | templet: function (d) { |
| | | if(d.state === 2){ |
| | | return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="amountFlow" shiro:hasPermission="user:update">流水记录</button>' |
| | | }else{ |
| | | return '' |
| | | } |
| | | },minWidth: 120,align:'center'} |
| | | ]] |
| | | }); |
| | | } |