请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
cherishdqy(uid:66470)
职业资格认证:FCA-业务分析理论 | FCP-报表开发工程师 | FCA-FineBI | FCP-FineBI | FCP-报表交付工程师

扩展下拉框选择不能重复

热度 1已有 656 次阅读2018-1-24 10:58 |个人分类:JavaScript

需求:扩展行,不同行同一列的内容不能重复选择。
解决方案:
在下拉框控件添加编辑后事件:
if (this.getValue()==null || this.getValue() == '') {
    return;
}

var that = this;
$.each($.makeArray(contentPane.getWidgetsByName('name'),[]),function(i,e){
    if (e == that) 
        return true;
    if ($(e.element).closest('tr').css('display') != 'none') {
        if (that.getValue() == e.getValue()) {
            FR.Msg.toast('此销售员已选择, 请重新选择');
            that.setValue(null);
            return false;
        }
    }
});

路过

鸡蛋
1

鲜花

握手

雷人

刚表态过的朋友 (1 人)

评论 (0 个评论)

返回顶部