3. easyui 修改功能实例

Posted on 2017-06-01 15:19  zkx4213  阅读(190)  评论(0编辑  收藏  举报

function modifyPerson() {
  var rows = $('#personInfoGrid').datagrid('getSelections');
  if (rows.length == 0) {
    $.messager.alert("警告", "请选择一条要新增权限的记录!", "warning");
    return;
  } else if (rows.length > 1) {
    $.messager.alert("警告", "每次只能选择一条记录进行修改!", "warning");
    return;
  } else {
    operType = "update";
    showAddOrUpdatePersonAuthModal(rows[0]);
  }
}

Copyright © 2024 zkx4213
Powered by .NET 9.0 on Kubernetes