| | |
| | | } |
| | | } |
| | | }, |
| | | { field: 'isBaifenPromotion', title: '推广人员', width: 120, templet: '#switch_IsBaifenPromotion', sort: false, unresize: true }, |
| | | //{ field: 'isDelete', title: '删除标志', width: 105, templet: '#switch_isDelete', sort: false, unresize: true }, |
| | | { width: 282, align: 'center', title: '操作', fixed: 'right', toolbar: '#LAY-app-CoreCmsUser-tableBox-bar' } |
| | | ] |
| | |
| | | }); |
| | | }); |
| | | } |
| | | |
| | | layui.form.on('switch(switch_IsBaifenPromotion)', function (obj) { |
| | | coreHelper.Post("Api/CoreCmsUser/DoSetIsBaiFenBingfaP", { id: this.value, data: obj.elem.checked }, function (e) { |
| | | |
| | | layer.msg(e.msg); |
| | | }); |
| | | }); |
| | | //监听 表格复选框操作 |
| | | |
| | | layui.form.on('switch(switch_isDelete)', function (obj) { |
| | |
| | | <!--设置删除标志 有数据就是删除--> |
| | | <script type="text/html" id="switch_isDelete"> |
| | | <input type="checkbox" name="switch_isDelete" value="{{d.id}}" lay-skin="switch" lay-text="已删除|正常" lay-filter="switch_isDelete" {{ d.isDelete ? 'checked' : '' }}> |
| | | </script> |
| | | |
| | | <!--设置是否热门--> |
| | | <script type="text/html" id="switch_IsBaifenPromotion"> |
| | | <input type="checkbox" name="switch_IsBaifenPromotion" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="switch_IsBaifenPromotion" {{ d.isBaifenPromotion? 'checked' : '' }}> |
| | | </script> |