EasyUI:easyui-combogrid(设置默认值)

论坛 期权论坛 期权     
匿名技术用户   2021-5-3 01:29   6723   0

//修改前的查询
function openAppBianliang() {
    $("#updateForm").form("clear");
    var rowInfo = $("#dataGridTable").datagrid('getSelected');
    if (rowInfo == null) {
        $.messager.alert('提示', "获取选择变量信息失败");
        return;
    }
    //console.log(rowInfo.adjunctUrl);
   // $("#updateAdjunctUrl").textbox("setText",rowInfo.adjunctUrl);
    //alert(rowInfo.adjunctId);
   $("#adjunctId").val(rowInfo.adjunctId);
    $('#updateDoctorAdjunctZhuti').combogrid({
        //设置默认值代码
        onLoadSuccess:function(){//页面加载完成之后
            $("#updateDoctorAdjunctZhuti").combogrid("setValue",rowInfo.adjunctZhuti);
            $("#updatehospital").combogrid("setValue",rowInfo.adjunctZhuti);
        }
    });
    $('#dlg').dialog('open');
   /* $("#description").textbox('setText', rowInfo.description);
    $("#valueString").textbox('setText', rowInfo.valueString)*/;
}

转载于:https://my.oschina.net/wfyj/blog/1935477

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP