提交 2bd9986b 编写于 作者: U unknown

include 增加名称、别名、id的缓存,避免重新加载

上级 b5baeb0a
......@@ -877,7 +877,19 @@ MWF.xScript.CMSEnvironment = function(ev){
//名称、别名、id
json.data.importedList.each( function ( flag ) {
includedScripts.push( type + "-" + json.applicationName + "-" + flag );
if( type === "portal" ){
includedScripts.push( type + "-" + json.data.portal + "-" + flag );
if( json.data.portalName )includedScripts.push( type + "-" + json.data.portalName + "-" + flag );
if( json.data.portalAlias )includedScripts.push( type + "-" + json.data.portalAlias + "-" + flag );
}else if( type === "cms" ){
includedScripts.push( type + "-" + json.data.appId + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}else if( type === "process" ){
includedScripts.push( type + "-" + json.data.application + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}
});
includedScripts = includedScripts.concat(json.data.importedList);
......
......@@ -929,7 +929,19 @@ debugger;
//名称、别名、id
json.data.importedList.each( function ( flag ) {
includedScripts.push( type + "-" + json.applicationName + "-" + flag );
if( type === "portal" ){
includedScripts.push( type + "-" + json.data.portal + "-" + flag );
if( json.data.portalName )includedScripts.push( type + "-" + json.data.portalName + "-" + flag );
if( json.data.portalAlias )includedScripts.push( type + "-" + json.data.portalAlias + "-" + flag );
}else if( type === "cms" ){
includedScripts.push( type + "-" + json.data.appId + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}else if( type === "process" ){
includedScripts.push( type + "-" + json.data.application + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}
});
includedScripts = includedScripts.concat(json.data.importedList);
......
......@@ -814,7 +814,19 @@ MWF.xScript.PageEnvironment = function (ev) {
//名称、别名、id
json.data.importedList.each( function ( flag ) {
includedScripts.push( type + "-" + json.applicationName + "-" + flag );
if( type === "portal" ){
includedScripts.push( type + "-" + json.data.portal + "-" + flag );
if( json.data.portalName )includedScripts.push( type + "-" + json.data.portalName + "-" + flag );
if( json.data.portalAlias )includedScripts.push( type + "-" + json.data.portalAlias + "-" + flag );
}else if( type === "cms" ){
includedScripts.push( type + "-" + json.data.appId + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}else if( type === "process" ){
includedScripts.push( type + "-" + json.data.application + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}
});
includedScripts = includedScripts.concat(json.data.importedList);
......
......@@ -730,7 +730,19 @@ MWF.xScript.ViewEnvironment = function (ev) {
//名称、别名、id
json.data.importedList.each( function ( flag ) {
includedScripts.push( type + "-" + json.applicationName + "-" + flag );
if( type === "portal" ){
includedScripts.push( type + "-" + json.data.portal + "-" + flag );
if( json.data.portalName )includedScripts.push( type + "-" + json.data.portalName + "-" + flag );
if( json.data.portalAlias )includedScripts.push( type + "-" + json.data.portalAlias + "-" + flag );
}else if( type === "cms" ){
includedScripts.push( type + "-" + json.data.appId + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}else if( type === "process" ){
includedScripts.push( type + "-" + json.data.application + "-" + flag );
if( json.data.appName )includedScripts.push( type + "-" + json.data.appName + "-" + flag );
if( json.data.appAlias )includedScripts.push( type + "-" + json.data.appAlias + "-" + flag );
}
});
includedScripts = includedScripts.concat(json.data.importedList);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册