| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-input-wrap layui-input-wrap-prefix"> |
| | | <div class="layui-input-inline" style="width: 200px;"> |
| | | |
| | | <select name="isBaifenPromotion" id="isBaifenPromotion"> |
| | | <option value="">请选择是否是推广人员</option> |
| | | |
| | | <option value="1">是推广人员</option> |
| | | <option value="0">不是推广人员</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline layui-input-wrap layui-input-wrap-prefix"> |
| | | <button class="layui-btn layui-btn-sm" lay-submit lay-filter="LAY-app-CoreCmsUser-search"><i class="layui-icon layui-icon-search"></i>筛选</button> |
| | | </div> |
| | | </div> |
| | |
| | | [ |
| | | { type: "checkbox", fixed: "left" }, |
| | | { field: 'id', title: '序列', sort: false, width: 70 }, |
| | | { field: 'createTime', title: '注册时间', width: 130, sort: false }, |
| | | { field: 'mobile', title: '手机号', sort: false, width: 100 }, |
| | | { |
| | | field: 'sex', title: '性别', sort: false, width: 60, templet: function (data) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | { field: 'createTime', title: '创建时间', width: 130, sort: false }, |
| | | { |
| | | field: 'status', title: '状态', sort: false, width: 65, templet: function (data) { |
| | | if (data.status) { |
| | |
| | | } |
| | | } |
| | | }, |
| | | { 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> |