<script type="text/html" id="table_1_bar1">
<input type="checkbox" lay-skin="switch" name="lock" value="{{d.sale_id}}" lay-text="锁定|正常" lay-filter="LockHuaSale" {{ d.lock_tag ? 'checked' : '' }}>
</script>
//监听锁定操作
form.on('switch(LockHuaSale)', function (obj) {
myTool.postMsg("ChangeTag", {data_key: this.value, colums: 'lock_tag', msg: '锁定'}, function (result) {
layer.tips(result.msg, obj.othis);
});
});