|
@@ -34,7 +34,8 @@ Ext.define('saas.view.core.form.FormPanel', {
|
|
|
toolBtns: [], // 自定义按钮
|
|
toolBtns: [], // 自定义按钮
|
|
|
|
|
|
|
|
initComponent: function() {
|
|
initComponent: function() {
|
|
|
- var me = this,
|
|
|
|
|
|
|
+
|
|
|
|
|
+ var me = this;
|
|
|
|
|
|
|
|
//判断是否加载数据
|
|
//判断是否加载数据
|
|
|
if(me.initId&&me.initId!=0){
|
|
if(me.initId&&me.initId!=0){
|
|
@@ -63,7 +64,11 @@ Ext.define('saas.view.core.form.FormPanel', {
|
|
|
style: {
|
|
style: {
|
|
|
'border-bottom': '1px solid #35baf6 !important'
|
|
'border-bottom': '1px solid #35baf6 !important'
|
|
|
},
|
|
},
|
|
|
- items: me.toolBtns.concat(['->', {
|
|
|
|
|
|
|
+ items: ['->'].concat(me.toolBtns.map(function(btn){
|
|
|
|
|
+ btn.cls += ' x-formpanel-btn-blue';
|
|
|
|
|
+ return btn;
|
|
|
|
|
+ }).concat([{
|
|
|
|
|
+ cls:'x-formpanel-btn-orange',
|
|
|
xtype: 'button',
|
|
xtype: 'button',
|
|
|
text: '新增',
|
|
text: '新增',
|
|
|
handler: 'add'
|
|
handler: 'add'
|
|
@@ -75,7 +80,7 @@ Ext.define('saas.view.core.form.FormPanel', {
|
|
|
xtype: 'button',
|
|
xtype: 'button',
|
|
|
text: '审核',
|
|
text: '审核',
|
|
|
handler: "audit"
|
|
handler: "audit"
|
|
|
- }])
|
|
|
|
|
|
|
+ }]))
|
|
|
}]
|
|
}]
|
|
|
});
|
|
});
|
|
|
|
|
|