javascript如何让这个保存按钮失效?
让它在点击“放大镜”的时候,保存按钮失效,点击“本子”的时候可以保存。《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《{xtype:'gridcolum...
让它在点击“放大镜”的时候,保存按钮失效,点击“本子”的时候可以保存。
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
{ xtype:'gridcolumn', header:'操作', width:60, sortable:true, renderer:function (value, metadata, record, rowIndex, colIndex, store) { return "<div width='30' align='center'><a href=javascript:edit_window(" + rowIndex + ")><img src='" + _root + "/res/img/biaoji/edit.png' title='编辑'/><a href=javascript:view_window(" + rowIndex + ")><img src='" + _root + "/res/img/biaoji/lookup.png' title='查看'/></a></div>"; }},
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
function view_window(){ var rec = sw_editorgridpanelUiIns.getSelectionModel().getSelected(); windowUiIns = new windowUi(); windowUiIns.show(); Ext.getCmp('dbid').setValue(rec.get('dbid')); Ext.getCmp('code').setValue(rec.get('code')); Ext.getCmp('name').setValue(rec.get('name')); Ext.getCmp('count_student').setValue(rec.get('count_student')); Ext.getCmp('teacher_name').setValue(rec.get('teacher_name')); Ext.getCmp('staff_name').setValue(rec.get('staff_name')); Ext.getCmp('create_date').setValue(rec.get('create_date')); setReadOnlyWithCss(['code', 'name', 'count_student', 'teacher_name'],true)}
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《 展开
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
{ xtype:'gridcolumn', header:'操作', width:60, sortable:true, renderer:function (value, metadata, record, rowIndex, colIndex, store) { return "<div width='30' align='center'><a href=javascript:edit_window(" + rowIndex + ")><img src='" + _root + "/res/img/biaoji/edit.png' title='编辑'/><a href=javascript:view_window(" + rowIndex + ")><img src='" + _root + "/res/img/biaoji/lookup.png' title='查看'/></a></div>"; }},
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《
function view_window(){ var rec = sw_editorgridpanelUiIns.getSelectionModel().getSelected(); windowUiIns = new windowUi(); windowUiIns.show(); Ext.getCmp('dbid').setValue(rec.get('dbid')); Ext.getCmp('code').setValue(rec.get('code')); Ext.getCmp('name').setValue(rec.get('name')); Ext.getCmp('count_student').setValue(rec.get('count_student')); Ext.getCmp('teacher_name').setValue(rec.get('teacher_name')); Ext.getCmp('staff_name').setValue(rec.get('staff_name')); Ext.getCmp('create_date').setValue(rec.get('create_date')); setReadOnlyWithCss(['code', 'name', 'count_student', 'teacher_name'],true)}
《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《《 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询