| | |
| | | <div class="layui-fluid layui-anim febs-anim" id="febs-user" lay-title="交易员列表">
|
| | | <div class="layui-fluid layui-anim febs-anim" id="trader-index" lay-title="交易员列表">
|
| | | <div class="layui-row febs-container">
|
| | | <div class="layui-col-md12">
|
| | | <div class="layui-card">
|
| | |
| | | <div class="layui-input-inline">
|
| | | <select name="verifyStatus">
|
| | | <option value="">请选择</option>
|
| | | <option value="1">待审核</option>
|
| | | <option value="2">审核通过</option>
|
| | | <option value="1">审核通过</option>
|
| | | <option value="2">审核不通过</option>
|
| | | <option value="3">待审核</option>
|
| | | </select>
|
| | | </div>
|
| | | </div>
|
| | |
| | | febs = layui.febs,
|
| | | form = layui.form,
|
| | | table = layui.table,
|
| | | $view = $('#febs-user'),
|
| | | $view = $('#trader-index'),
|
| | | $query = $view.find('#query'),
|
| | | $reset = $view.find('#reset'),
|
| | | $searchForm = $view.find('form'),
|
| | |
| | | }
|
| | | });
|
| | | }
|
| | | if (layEvent === 'modifyProfitRatio') {
|
| | | febs.modal.open('收益率修改', 'modules/documentary/modifyProfitRatio/' + data.id, {
|
| | | btn: ['确认', '取消'],
|
| | | yes: function (index, layero) {
|
| | | $('#user-update').find('#submit').trigger('click');
|
| | | },
|
| | | btn2: function () {
|
| | | layer.closeAll();
|
| | | }
|
| | | });
|
| | | }
|
| | | if (layEvent === 'getOut') {
|
| | | febs.modal.confirm('确认', '您是否要踢出该交易员?', function () {
|
| | | confirmUsers(data.id);
|
| | | });
|
| | | }
|
| | | if (layEvent === 'getOn') {
|
| | | febs.modal.confirm('确认', '您是否推荐当前交易员?', function () {
|
| | | confirmUsersGetOn(data.id);
|
| | | });
|
| | | }
|
| | | if (layEvent === 'getOutFrist') {
|
| | | febs.modal.confirm('确认', '您是否取消推荐当前交易员?', function () {
|
| | | confirmUsersGetOutFrist(data.id);
|
| | | });
|
| | | }
|
| | | if (layEvent === 'getFull') {
|
| | |
| | | function confirmUsers(id) {
|
| | | febs.get(ctx + 'documentary/traderGetOut/' + id, null, function () {
|
| | | febs.alert.success('踢出成功');
|
| | | $query.click();
|
| | | });
|
| | | }
|
| | | function confirmUsersGetOn(id) {
|
| | | febs.get(ctx + 'documentary/traderGetOn/' + id, null, function () {
|
| | | febs.alert.success('设置成功');
|
| | | $query.click();
|
| | | });
|
| | | }
|
| | | function confirmUsersGetOutFrist(id) {
|
| | | febs.get(ctx + 'documentary/traderGetOutFrist/' + id, null, function () {
|
| | | febs.alert.success('设置成功');
|
| | | $query.click();
|
| | | });
|
| | | }
|
| | |
| | | {title: '操作',
|
| | | templet: function (d) {
|
| | | if (d.verifyStatus === 3) {
|
| | | return '<a lay-event="edit" shiro:hasPermission="user:update">审核</a>'
|
| | | }else if(d.verifyStatus === 1){
|
| | | return '<a lay-event="getOut" shiro:hasPermission="user:update">踢出</a>'
|
| | | return '<a lay-event="getFull" shiro:hasPermission="user:update">满员</a>'
|
| | | return '<button lay-event="edit" shiro:hasPermission="user:update">审核</button>'
|
| | | }else if(d.verifyStatus === 1 && d.isSetFrist ===1){
|
| | | return '<button lay-event="modifyProfitRatio" shiro:hasPermission="user:update">收益率修改</button>'
|
| | | + '<button lay-event="getOut" shiro:hasPermission="user:update">踢出</button>'
|
| | | + '<button lay-event="getFull" shiro:hasPermission="user:update">满员</button>'
|
| | | + '<button lay-event="getOutFrist" shiro:hasPermission="user:update">取消推荐</button>'
|
| | | }else if(d.verifyStatus === 1 && d.isSetFrist !=1){
|
| | | return '<button lay-event="modifyProfitRatio" shiro:hasPermission="user:update">收益率修改</button>'
|
| | | + '<button lay-event="getOut" shiro:hasPermission="user:update">踢出</button>'
|
| | | + '<button lay-event="getFull" shiro:hasPermission="user:update">满员</button>'
|
| | | + '<button lay-event="getOn" shiro:hasPermission="user:update">推荐首页</button>'
|
| | | }else {
|
| | | return ''
|
| | | }
|
| | | },minWidth: 200,align:'center'}
|
| | | },minWidth: 300,align:'center'}
|
| | | ]]
|
| | | });
|
| | | }
|