Browse Source

修复面板启动后关闭按钮没有显示的问题

zhuth 8 years ago
parent
commit
1f50f0f66d

+ 3 - 2
kanban-console/src/main/webapp/resources/app/view/desktop/Desktop.js

@@ -120,14 +120,15 @@ Ext.define('erp.view.desktop.Desktop', {
             	var store = dataView.getStore();
             	var count = store.getCount()
             	var divHeight = 90; //div的高度
-            	var overLeft = 70;  //列位移单位距离
+                var overLeft = 70;  //列位移单位距离
             	if(count>0){
             		var allHeight = count*divHeight;
             		var colMaxNum = Math.floor(height/divHeight); //计算每列能放多少个
             		var dom;
             		var colIndex;
         			Ext.Array.each(store.data.items,function(record,index){
-        				index = index + 1;
+                        index = index + 1;
+                        if(!record.get('code')) return;
 						dom = Ext.getElementById(record.get('code'));
 						if(dom){
 							colIndex = Math.ceil(index/colMaxNum);

+ 1 - 1
kanban-console/src/main/webapp/resources/app/view/user/UserInfo.js

@@ -91,7 +91,7 @@ Ext.define('erp.view.user.UserInfo',{
                 xtype: 'button',
                 text: '取消',
                 handler: function(btn) {
-                    btn.ownerCt.ownerCt.ownerCt.ownerCt.close();
+                    btn.ownerCt.ownerCt.ownerCt.close();
                 }
             }]
         }];