Browse Source

基础资料删除确认

zhuth 7 years ago
parent
commit
da15c7a3b6

+ 2 - 0
frontend/saas-web/app/view/core/base/BasePanel.js

@@ -28,6 +28,8 @@ Ext.define('saas.view.core.base.BasePanel', {
     searchField:[],
     gridColumns: [],
 
+    _deleteMsg: '是否删除所选单据?',
+
     initComponent: function() {
 
         var me = this,

+ 5 - 1
frontend/saas-web/app/view/core/base/GridPanel.js

@@ -123,7 +123,11 @@ Ext.define('saas.view.core.base.GridPanel', {
                         text: '删除',
                         handler: function(){
                             var form = this.ownerCt.ownerCt.ownerCt;
-                            me.onVastDeal(form._batchDeleteUrl);
+                            deleteWarn(form._deleteMsg,function(btn){
+                                if(btn == 'yes'){
+                                    me.onVastDeal(form._batchDeleteUrl);
+                                }
+                            });
                         }
                     }, {
                         text: '刷新',