|
版本: |
BeX5V3.5 |
小版本号: |
|
|
|
数据库: |
Oracle |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 7 |
浏览器: |
Chrome |
|
|
本帖最后由 VincentZee 于 2019-10-29 10:00 编辑
用户在登录页弹出 Script error
忽略以上报错登录到主页面弹出Cannot read property 'prototype' of undefined 和 Script error
忽略以上报错点击功能弹出如下错误:
- index.w:113 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
- (anonymous) @ VM31 index.w?device=pc:113
- visitdsttime%3D1/ Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- 111.194.255.173:8081/ip-js/js/ipjs.js?visitDstTime=1&_d=0&_zxcvb_upn=OrZR4DWR7JiXIi44fw1ouA%3D%3D:114 Uncaught TypeError: Cannot read property 'uuid' of null
- at doResponseGetFirstPageConfig (111.194.255.173:8081/ip-js/js/ipjs.js?visitDstTime=1&_d=0&_zxcvb_upn=OrZR4DWR7JiXIi44fw1ouA%3D%3D:114)
- at XMLHttpRequest.xhr.onreadystatechange (111.194.255.173:8081/ip-js/js/ipjs.js?visitDstTime=1&_d=0&_zxcvb_upn=OrZR4DWR7JiXIi44fw1ouA%3D%3D:216)
- :8480/x5/UI2/v_5173_nol_zh_CNs_desktopd_pc/portal/pc/main/main.js:1 Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
- (anonymous) @ :8480/x5/UI2/v_5173_nol_zh_CNs_desktopd_pc/portal/pc/main/main.js:1
- core.min.js:65 加载/x5/UI2/v_5173_nol_zh_CNs_desktopd_pc/portal/pc/main/main.w?$pageType=model出错
- core.min.js:65 TypeError: Cannot read property 'prototype' of undefined
- at Function._extend (core.min.js:65)
- at :8480/x5/UI2/v_5173_nol_zh_CNs_desktopd_pc/portal/pc/main/main.w?$pageType=model:11
- at Object.execCb (require.2.1.10.js:2200)
- at Module.check (require.2.1.10.js:1208)
- at Module.<anonymous> (require.2.1.10.js:1461)
- at require.2.1.10.js:398
- at require.2.1.10.js:1504
- at each (require.2.1.10.js:323)
- at Module.emit (require.2.1.10.js:1503)
- at Module.check (require.2.1.10.js:1264)
- core.min.js:65 TypeError: Cannot read property 'prototype' of undefined
- at Function._extend (core.min.js:65)
- at :8480/x5/UI2/v_5173_nol_zh_CNs_desktopd_pc/portal/pc/main/main.w?$pageType=model:11
- at Object.execCb (require.2.1.10.js:2200)
- at Module.check (require.2.1.10.js:1208)
- at Module.<anonymous> (require.2.1.10.js:1461)
- at require.2.1.10.js:398
- at require.2.1.10.js:1504
- at each (require.2.1.10.js:323)
- at Module.emit (require.2.1.10.js:1503)
- at Module.check (require.2.1.10.js:1264)
- core.min.js:65 Uncaught TypeError: Cannot read property 'prototype' of undefined
- at Function._extend (core.min.js:65)
- at :8480/x5/UI2/v_5173_nol_zh_CNs_desktopd_pc/portal/pc/main/main.w?$pageType=model:11
- at Object.execCb (require.2.1.10.js:2200)
- at Module.check (require.2.1.10.js:1208)
- at Module.<anonymous> (require.2.1.10.js:1461)
- at require.2.1.10.js:398
- at require.2.1.10.js:1504
- at each (require.2.1.10.js:323)
- at Module.emit (require.2.1.10.js:1503)
- at Module.check (require.2.1.10.js:1264)
- 111.194.255.173:8081/ip-js/js/ipjs.js?visitDstTime=1&_d=0&_zxcvb_upn=OrZR4DWR7JiXIi44fw1ouA%3D%3D:114 Uncaught TypeError: Cannot read property 'uuid' of null
- at doResponseGetFirstPageConfig (111.194.255.173:8081/ip-js/js/ipjs.js?visitDstTime=1&_d=0&_zxcvb_upn=OrZR4DWR7JiXIi44fw1ouA%3D%3D:114)
- at XMLHttpRequest.xhr.onreadystatechange (111.194.255.173:8081/ip-js/js/ipjs.js?visitDstTime=1&_d=0&_zxcvb_upn=OrZR4DWR7JiXIi44fw1ouA%3D%3D:216)
- core.min.js:65 restore closing state by timeout in showpage
- (anonymous) @ core.min.js:65
- core.min.js:65 Error: Mismatched anonymous define() module: function (require){
- var biz = require("$UI/system/lib/biz");
-
- var defaultLayout = {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6',
- widgets: ["TaskWaiting"]
-
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6',
- widgets: ["TaskSubmit"]
- }
- };
- var layouts = {
- layout1: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- }
- },
- layout2: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column3 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- }
- },
- layout3: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-12 col-lg-12'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- },
- column3 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- },
- },
- layout4: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-12 col-lg-12'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column3 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column4 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- }
- }
- };
-
- var Model = function(){
- this.callParent();
- };
- Model.prototype.modelLoad = function(event){
- if(this.getContext().isDebug())
- $(".debug-mode",this.getRootNode()).removeClass('hide');
- var me = this;
- this.layoutID = 'layout1';
- var widgetList = this.getContext().data.widgetList ||
- (window.__justep.__portalContext && window.__justep.__portalContext.data.widgetList)
- if(!widgetList)
- throw '系统没有获得widget列表';
- this.widgetList = widgetList.menu.$children;
- this.widgetsComp = this.comp('widgets');
- var customCfg = this.getCustomLayout();
- if(customCfg && customCfg.layoutID)
- this.layoutID = customCfg.layoutID;
- var widgetConfig = this.getWidgetConfigs(customCfg || justep.Util.clone(defaultLayout));
- this.widgetsComp.load(widgetConfig);
- this.widgetsComp.on('change', function(event){
- me.saveCustomLayout();
- });
- };
-
- Model.prototype.getCustomLayout = function(){
- //获取个人布局信息
- var result;
- var params = new biz.Request.ActionParam();
- var pID = this.getContext().getCurrentPersonID();
- params.setString("personID", pID);
- var options = {};
- options.context = this.getContext();
- options.action = "selectPortal3ProfilesAction";
- options.parameters = params;
- options.directExecute = true;
- options.contentType = biz.Request.JSON_TYPE;
- options.dataType = biz.Request.JSON_TYPE;
- options.process = "/portal2/process/portal/portalProcess";
- options.activity = "index";
- options.callback = function(options) {
- if (options.state) {
- if(options.response.sPortal){
- eval('result = ' + options.response.sPortal);
- }
- }
- };
- biz.Request.sendBizRequest(options);
- return result;
- };
-
- Model.prototype.saveCustomLayout = function(){
- //获取个人布局信息
- var params = new biz.Request.ActionParam();
- var pID = this.getContext().getCurrentPersonID();
- params.setString("personID", pID);
- var config = this.widgetsComp.getWidgetConfig();
- config.layoutID = this.layoutID;
- params.setString('portal', JSON.stringify(config));
- var options = {};
- options.context = this.getContext();
- options.action = "savePortal3ProfilesAction";
- options.parameters = params;
- options.directExecute = true;
- options.contentType = biz.Request.JSON_TYPE;
- options.dataType = biz.Request.JSON_TYPE;
- options.process = "/portal2/process/portal/portalProcess";
- options.activity = "index";
- options.callback = function(options) {
- if (options.state) {
- }
- };
- biz.Request.sendBizRequest(options);
- };
-
- Model.prototype._getLayoutConfig = function(){
- var config = this.widgetsComp.getWidgetConfig();
- config.layoutID = this.layoutID;
- return config;
- };
-
- Model.prototype.getWidgetConfigs = function(layout){
- for(var col in layout){
- if(layout.hasOwnProperty(col)){
- var widgets = layout[col].widgets;
- if(widgets)
- for(var i=0; i<widgets.length; i++){
- var widget = widgets[i];
- if(typeof widget == 'string')
- widget = {id: widget};
- widget = this.getWidgetConfig(widget);
- widgets[i] = widget;
- }
- }
- }
- return layout;
- };
-
- Model.prototype.getWidgetConfig = function(widget){
- if(typeof widget == 'string')
- widget = {id: widget};
- var config = this.getWidget(widget.id);
- if(config){
- widget.title = config.title;
- widget.refreshable = config.refresh;
- widget.url = config.url;
- widget.activity = config.activity;
- widget.process = config.process;
- widget.height = config.height;
- widget.psmCount = config.psmCount;
- if(config.$children && config.$children.length > 0){
- for(var j=0; j<config.$children.length; j++){
- var childCfg = config.$children[j];
- if(childCfg.$name == 'more'){
- widget.more = childCfg;
- }
- }
- }
- }else{
- widget.illegal = true;
- }
- return widget;
- };
-
- Model.prototype.getWidget = function(id){
- function walk(list){
- var item;
- for(var i=0; i<list.length; i++){
- item = list[i];
- if(item.id === id)
- return item;
- if(item.$children){
- item = walk(item.$children);
- if(item)
- return item;
- }
- }
- }
- return this.widgetList? walk(this.widgetList) : null;
- };
- Model.prototype.configBtnClick = function(event){
- this.comp("configDialog").open({data: {id: this.layoutID}});
- };
- Model.prototype.configDialogReceive = function(event){
- var widgets = this.comp('widgets');
- if(this.layoutID !== event.data.layoutID){
- var config = layouts[event.data.layoutID];
- if(config){
- this.layoutID = event.data.layoutID;
- widgets.setLayout(config);
- this.saveCustomLayout();
- }
- }
- var opened = event.data.opened;
- if(opened){
- for(var id in opened){
- if(opened.hasOwnProperty(id)){
- if(opened[id] === false && widgets.hasWidget(id))
- widgets.removeWidget(id);
- }
- }
- for(var id in opened){
- if(opened.hasOwnProperty(id)){
- if(opened[id] === true && !widgets.hasWidget(id)){
- var config = this.getWidgetConfig(id);
- widgets.openWidget(config);
- }
- }
- }
- }
- };
- return Model;
- }
- http://requirejs.org/docs/errors.html#mismatch
- at makeError (require.2.1.10.js:432)
- at intakeDefines (require.2.1.10.js:1569)
- at localRequire (require.2.1.10.js:1750)
- at Object.<anonymous> (core.min.js:65)
- at Function.Deferred (core.min.js:65)
- at Object.defer (core.min.js:65)
- at Object.acquire (core.min.js:65)
- at Object.<anonymous> (core.min.js:65)
- at Function.Deferred (core.min.js:65)
- at Object.defer (core.min.js:65)
- core.min.js:65 Uncaught Error: Unable to process binding "component: function (){return {name:'$model/UI2/system/components/justep/windowContainer/windowContainer'} }"
- Message: Mismatched anonymous define() module: function (require){
- var biz = require("$UI/system/lib/biz");
-
- var defaultLayout = {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6',
- widgets: ["TaskWaiting"]
-
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6',
- widgets: ["TaskSubmit"]
- }
- };
- var layouts = {
- layout1: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- }
- },
- layout2: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column3 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- }
- },
- layout3: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-12 col-lg-12'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- },
- column3 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-6 col-lg-6'
- },
- },
- layout4: {
- column1 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-12 col-lg-12'
- },
- column2 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column3 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- },
- column4 : {
- cls: 'x-column col-xs-12 col-sm-12 col-md-4 col-lg-4'
- }
- }
- };
-
- var Model = function(){
- this.callParent();
- };
- Model.prototype.modelLoad = function(event){
- if(this.getContext().isDebug())
- $(".debug-mode",this.getRootNode()).removeClass('hide');
- var me = this;
- this.layoutID = 'layout1';
- var widgetList = this.getContext().data.widgetList ||
- (window.__justep.__portalContext && window.__justep.__portalContext.data.widgetList)
- if(!widgetList)
- throw '系统没有获得widget列表';
- this.widgetList = widgetList.menu.$children;
- this.widgetsComp = this.comp('widgets');
- var customCfg = this.getCustomLayout();
- if(customCfg && customCfg.layoutID)
- this.layoutID = customCfg.layoutID;
- var widgetConfig = this.getWidgetConfigs(customCfg || justep.Util.clone(defaultLayout));
- this.widgetsComp.load(widgetConfig);
- this.widgetsComp.on('change', function(event){
- me.saveCustomLayout();
- });
- };
-
- Model.prototype.getCustomLayout = function(){
- //获取个人布局信息
- var result;
- var params = new biz.Request.ActionParam();
- var pID = this.getContext().getCurrentPersonID();
- params.setString("personID", pID);
- var options = {};
- options.context = this.getContext();
- options.action = "selectPortal3ProfilesAction";
- options.parameters = params;
- options.directExecute = true;
- options.contentType = biz.Request.JSON_TYPE;
- options.dataType = biz.Request.JSON_TYPE;
- options.process = "/portal2/process/portal/portalProcess";
- options.activity = "index";
- options.callback = function(options) {
- if (options.state) {
- if(options.response.sPortal){
- eval('result = ' + options.response.sPortal);
- }
- }
- };
- biz.Request.sendBizRequest(options);
- return result;
- };
-
- Model.prototype.saveCustomLayout = function(){
- //获取个人布局信息
- var params = new biz.Request.ActionParam();
- var pID = this.getContext().getCurrentPersonID();
- params.setString("personID", pID);
- var config = this.widgetsComp.getWidgetConfig();
- config.layoutID = this.layoutID;
- params.setString('portal', JSON.stringify(config));
- var options = {};
- options.context = this.getContext();
- options.action = "savePortal3ProfilesAction";
- options.parameters = params;
- options.directExecute = true;
- options.contentType = biz.Request.JSON_TYPE;
- options.dataType = biz.Request.JSON_TYPE;
- options.process = "/portal2/process/portal/portalProcess";
- options.activity = "index";
- options.callback = function(options) {
- if (options.state) {
- }
- };
- biz.Request.sendBizRequest(options);
- };
-
- Model.prototype._getLayoutConfig = function(){
- var config = this.widgetsComp.getWidgetConfig();
- config.layoutID = this.layoutID;
- return config;
- };
-
- Model.prototype.getWidgetConfigs = function(layout){
- for(var col in layout){
- if(layout.hasOwnProperty(col)){
- var widgets = layout[col].widgets;
- if(widgets)
- for(var i=0; i<widgets.length; i++){
- var widget = widgets[i];
- if(typeof widget == 'string')
- widget = {id: widget};
- widget = this.getWidgetConfig(widget);
- widgets[i] = widget;
- }
- }
- }
- return layout;
- };
-
- Model.prototype.getWidgetConfig = function(widget){
- if(typeof widget == 'string')
- widget = {id: widget};
- var config = this.getWidget(widget.id);
- if(config){
- widget.title = config.title;
- widget.refreshable = config.refresh;
- widget.url = config.url;
- widget.activity = config.activity;
- widget.process = config.process;
- widget.height = config.height;
- widget.psmCount = config.psmCount;
- if(config.$children && config.$children.length > 0){
- for(var j=0; j<config.$children.length; j++){
- var childCfg = config.$children[j];
- if(childCfg.$name == 'more'){
- widget.more = childCfg;
- }
- }
- }
- }else{
- widget.illegal = true;
- }
- return widget;
- };
-
- Model.prototype.getWidget = function(id){
- function walk(list){
- var item;
- for(var i=0; i<list.length; i++){
- item = list[i];
- if(item.id === id)
- return item;
- if(item.$children){
- item = walk(item.$children);
- if(item)
- return item;
- }
- }
- }
- return this.widgetList? walk(this.widgetList) : null;
- };
- Model.prototype.configBtnClick = function(event){
- this.comp("configDialog").open({data: {id: this.layoutID}});
- };
- Model.prototype.configDialogReceive = function(event){
- var widgets = this.comp('widgets');
- if(this.layoutID !== event.data.layoutID){
- var config = layouts[event.data.layoutID];
- if(config){
- this.layoutID = event.data.layoutID;
- widgets.setLayout(config);
- this.saveCustomLayout();
- }
- }
- var opened = event.data.opened;
- if(opened){
- for(var id in opened){
- if(opened.hasOwnProperty(id)){
- if(opened[id] === false && widgets.hasWidget(id))
- widgets.removeWidget(id);
- }
- }
- for(var id in opened){
- if(opened.hasOwnProperty(id)){
- if(opened[id] === true && !widgets.hasWidget(id)){
- var config = this.getWidgetConfig(id);
- widgets.openWidget(config);
- }
- }
- }
- }
- };
- return Model;
- }
- http://requirejs.org/docs/errors.html#mismatch
- at makeError (require.2.1.10.js:432)
- at intakeDefines (require.2.1.10.js:1569)
- at localRequire (require.2.1.10.js:1750)
- at Object.<anonymous> (core.min.js:65)
- at Function.Deferred (core.min.js:65)
- at Object.defer (core.min.js:65)
- at Object.acquire (core.min.js:65)
- at Object.<anonymous> (core.min.js:65)
- at Function.Deferred (core.min.js:65)
- at Object.defer (core.min.js:65)
- VM119 index.w?device=pc:1 This page includes a password or credit card input in a non-secure context. A warning has been added to the URL bar. For more information, see https://goo.gl/zmWq3m.
复制代码
PS:部分用户反馈有这个问题,帮他们换了不同版本的谷歌浏览器,还是不行。
|
|