| | |
| | | }} |
| | | <span class="layui-badge febs-bg-{{status.color}}">{{ status.title }}</span> |
| | | </script> |
| | | <script type="text/html" id="switchChangeAble"> |
| | | {{# if(d.changeAble === 1) { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchChangeAble"> |
| | | {{# } else { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" lay-skin="switch" lay-filter="switchChangeAble"> |
| | | {{# } }} |
| | | </script> |
| | | <script type="text/html" id="switchActiveStatus"> |
| | | {{# if(d.activeStatus === 1) { }} |
| | | <input type="checkbox" value={{d.id}} lay-text="是|否" checked lay-skin="switch" lay-filter="switchActiveStatus"> |
| | |
| | | tableIns.reload({where: getQueryParams(), page: {curr: 1}, initSort: sortObject}); |
| | | }); |
| | | |
| | | form.on('switch(switchChangeAble)', function (data) { |
| | | if (data.elem.checked) { |
| | | changeAbleYes(data.value); |
| | | } else { |
| | | changeAbleNo(data.value); |
| | | } |
| | | }) |
| | | function changeAbleYes(id) { |
| | | febs.get(ctx + 'member/changeAbleYes/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | function changeAbleNo(id) { |
| | | febs.get(ctx + 'member/changeAbleNo/' + id, null, function () { |
| | | febs.alert.success('操作成功'); |
| | | $query.click(); |
| | | }); |
| | | } |
| | | |
| | | form.on('switch(switchActiveStatus)', function (data) { |
| | | if (data.elem.checked) { |
| | | insideWithYes(data.value); |
| | |
| | | {field: 'myTeamAchieve', title: '团队业绩', minWidth: 130}, |
| | | {field: 'myShareAchieve', title: '共享业绩', minWidth: 130}, |
| | | {field: 'activeStatus', title: '是否激活', templet:'#switchActiveStatus', minWidth: 120}, |
| | | {field: 'changeAble', title: '是否冻结', templet:'#switchChangeAble', minWidth: 120}, |
| | | {field: 'accountType', title: '会员级别', minWidth: 130}, |
| | | // {field: 'directProfit', title: '直推收益', minWidth: 100, totalRow: true}, |
| | | {field: 'chainType', title: '所属链', minWidth: 130}, |