Browse Source

代码提交

hy 7 years ago
parent
commit
c424e3e6a3

+ 3 - 0
frontend/saas-web/app/view/core/base/ImportWindow.js

@@ -131,6 +131,9 @@ Ext.define('saas.view.core.base.ImportWindow', {
                     buttonConfig:{
                     buttonConfig:{
                         xtype:'button',
                         xtype:'button',
                         handler:function(b){
                         handler:function(b){
+                            var caller = b.ownerCt.ownerCt.ownerCt.ownerCt.caller;
+                            //获取模版
+                            window.location.href = 'http://192.168.253.58:8560/api/commons/excel/import/templet?caller='+caller;
                         }
                         }
                     }
                     }
                 },{
                 },{

+ 1 - 1
frontend/saas-web/app/view/viewport/ViewportController.js

@@ -94,7 +94,7 @@ Ext.define('saas.view.viewport.ViewportController', {
     getAccountCookie:function(){
     getAccountCookie:function(){
         var hasValidCookie = false;
         var hasValidCookie = false;
         Ext.Ajax.request({
         Ext.Ajax.request({
-            url: 'http://192.168.253.31:8560/api/auth/info',
+            url: '/api/auth/info',
             withCredentials: true,
             withCredentials: true,
             async:false,
             async:false,
             dataType: 'json',
             dataType: 'json',