|
|
@@ -136,7 +136,10 @@ Ext.define('saas.view.core.form.field.DetailGridField', {
|
|
|
|
|
|
indexColumn = {
|
|
|
// text : "序号",
|
|
|
- text: '<div class="x-sa sa-setting" style="cursor: pointer;" title="列设置"></div>',
|
|
|
+ // text: '<div class="x-sa sa-setting" style="cursor: pointer;" title="列设置"></div>',
|
|
|
+ bind: {
|
|
|
+ text: "{isAdmin ? ('<div class=\"x-sa sa-setting\" style=\"cursor: pointer;\" title=\"列设置\"></div>') : '序号'}"
|
|
|
+ },
|
|
|
dataIndex : detnoField,
|
|
|
width : 60,
|
|
|
xtype : "numbercolumn",
|
|
|
@@ -153,7 +156,15 @@ Ext.define('saas.view.core.form.field.DetailGridField', {
|
|
|
'</div>';
|
|
|
},
|
|
|
listeners: {
|
|
|
- headerclick: 'onColSetting'
|
|
|
+ headerclick: function() {
|
|
|
+ let form = this.up('core-form-formpanel'),
|
|
|
+ controller = form.getController(),
|
|
|
+ text = this.text;
|
|
|
+
|
|
|
+ if(text != '序号') {
|
|
|
+ controller.onColSetting(arguments);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
|