You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.1 KiB

4 years ago
/**
* 系统入口文件
* @description [description]
* @version 1.0
*/
requirejs.config({
urlArgs: Date.now().toString()
}
);
requirejs(['./vendor/jquery/jquery/2.2.0/jquery-2.2.0.min',
'./utils/util.js'], function() {
requirejs.config({
urlArgs: ER.version,
baseUrl: './',
map: {
'*': {
'css': 'vendor/requirejs/css',
'text': 'vendor/requirejs/text'
}
},
shim : {
'vendor/jquery/easyui/1.4.4/locale/easyui-lang-zh_CN': ['vendor/jquery/easyui/1.4.4/jquery.easyui.min'],
'vendor/jquery/easyui/1.4.4/otherplugin/datagrid-cellediting': ['vendor/jquery/easyui/1.4.4/jquery.easyui.min'],
'vendor/jquery/easyui/1.4.4/otherplugin/datagrid-dnd': ['vendor/jquery/easyui/1.4.4/jquery.easyui.min'],
'vendor/jquery/easyui/1.4.4/otherplugin/columns-ext': ['vendor/jquery/easyui/1.4.4/jquery.easyui.min']
}
});
requirejs.onError = function (err) {
console.log(err.requireType);
if (err.requireType === 'timeout') {
console.log('modules: ' + err.requireModules);
}
throw err;
};
requirejs(['require',
'vendor/jquery/easyui/1.4.4/locale/easyui-lang-zh_CN',
'vendor/jquery/easyui/1.4.4/otherplugin/datagrid-cellediting',
'vendor/jquery/easyui/1.4.4/otherplugin/columns-ext',
'vendor/jquery/easyui/1.4.4/otherplugin/datagrid-dnd',
'vendor/jquery/easyui/1.4.4/jquery.easyui.min',
// 'vendor/jquery/actual/jquery.actual',
'vendor/underscore/1.8.3/underscore-min',
'vendor/FlexoCalendar/FlexoCalendar',
'vendor/qtbrowser/qwebchannel',
'vendor/echarts/echarts.min',
'data/columns.json',
'data/testdata.json',
'views/pages/basicReport',
'base/biz',
'base/bizservice',
'base/datamanager',
'base/messager',
'makereport'
], function (require) {
var services = require('base/bizservice');
ER.services = services;
var messager = require('base/messager');
ER.messager = messager;
var makereport = require('makereport');
makereport.getrptfunc();
// var page = new Page();
// page.init();
});
});