|
|
@@ -42,23 +42,6 @@ Ext.define('saas.view.viewport.ViewportController', {
|
|
|
if(!Ext.isChrome && !Ext.isFirefox) {
|
|
|
saas.util.BaseUtil.showConfirm('温馨提示', '为了更好地呈现页面效果,推荐使用Chrome浏览器或火狐浏览器');
|
|
|
}
|
|
|
- //读取系统参数
|
|
|
- saas.util.BaseUtil.request({url:'/api/commons/configs/list'})
|
|
|
- .then(function(res) {
|
|
|
- if(res.success) {
|
|
|
- var list = res.data.list;
|
|
|
- if(list.length>0){
|
|
|
- var d = {};
|
|
|
- Ext.each(list, function(item, index){
|
|
|
- d[item.code] = item.data;
|
|
|
- });
|
|
|
- me.getViewModel().setData(d)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- .catch(function(e) {
|
|
|
- console.error(e);
|
|
|
- });
|
|
|
},
|
|
|
|
|
|
showView: function(xtype) {
|
|
|
@@ -82,6 +65,23 @@ Ext.define('saas.view.viewport.ViewportController', {
|
|
|
|
|
|
showMain: function() {
|
|
|
var me = this;
|
|
|
+ //读取系统参数
|
|
|
+ saas.util.BaseUtil.request({url:'/api/commons/configs/list'})
|
|
|
+ .then(function(res) {
|
|
|
+ if(res.success) {
|
|
|
+ var list = res.data.list;
|
|
|
+ if(list.length>0){
|
|
|
+ var d = {};
|
|
|
+ Ext.each(list, function(item, index){
|
|
|
+ d[item.code] = item.data;
|
|
|
+ });
|
|
|
+ me.getViewModel().setData(d)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(function(e) {
|
|
|
+ console.error(e);
|
|
|
+ });
|
|
|
me.showView('main');
|
|
|
},
|
|
|
|