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.

36 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/**
* projectrouter是用来配置router与平台router联合使用的主要有两个对象一个是allobjs
* 此文件存储项目所有的功能的业务类、模板类、模板tpl、多语言文件具体规则如下
* 业务类文件命名funccode+'biz'
* 多语言文件命名funccode+'locale'这里的多语言文件只是摆设历史遗留后期全部转移到locale目录下对应的project.js中
* 模板类文件命名:模板文件名
* 模板tpl文件命名模板文件名+'tpl'
* 第二个是funccodeList将所有的funccode写在数组中字母全部小写
* 平台路由整合项目路由后根据funccode与allobjs进行路由功能打开
* 下面的代码是样例,需要将所有业务类都包括进来。
*/
define(function (require, exports, module) {
// var frd002locale = require('apps/edp/frd/frd002/frd002_zh-CN');
// var frd002biz = require('apps/edp/frd/frd002/frd002');
// var pageDicttpl = require('text!apps/edp/frd/frd002/pageDict.tpl');
// var pageDict = require('apps/edp/frd/frd002/pageDict');
var allobjs = {
// frd002locale: frd002locale,
// frd002biz: frd002biz,
// pageDicttpl: pageDicttpl,
// pageDict: pageDict
};
var funccodeList = [
// 'frd002'
];
return {
allobjs: allobjs,
funccodeList: funccodeList,
useFunccodeList: true // false情况下都走allobjs压缩模式,true时通过funccodelist判断
}
})