function loadData(pars, url) {
$('#data').datagrid({
url: url,

........

........


, onLoadSuccess: function (data) {
if (comBoxName1 == "1" || comBoxName1=="2") { $('#btnID').hide(); } else { $('#btnID').show(); } } , toolbar: [ { text: '新增', id: 'btnID', name: 'add', iconCls: 'icon-add btn_menu', handler: function () { showAdd('@BaseRes.SPD_COL_013', comBoxName1); } }, '-', { text: '修改', id: 'edt', name: 'edt', iconCls: 'icon-edit', handler: function () { var selectRows = $('#data').datagrid('getSelected'); if (!selectRows) { $.messager.alert('@BaseRes.COM_CTL_NOTICE', "@BaseRes.MGC_CTL_031"); return; } Edit(selectRows.ID, "修改", true); } }, '-', { text: '删除', iconCls: 'icon-remove', handler: function () { DeletCombox(); } } ] }); }

 

相关文章:

  • 2022-01-12
  • 2021-04-08
  • 2022-02-09
  • 2021-10-25
  • 2022-12-23
  • 2022-02-16
  • 2022-01-16
猜你喜欢
  • 2022-12-23
  • 2021-10-18
  • 2021-08-12
  • 2022-12-23
  • 2021-04-03
  • 2022-12-23
相关资源
相似解决方案