|
在UI的js增加var biz = require("$UI/system/lib/biz");
在UI模型里的按钮bind-disable里增加biz.Util.isDisabledAction($model, ‘saveCI_IY_InspectAreaAction’)后
打开界面报以下错误,和解?
Unable to parse bindings.
Bindings value: component:{name:'$model/UI2/system/components/justep/button/button'},disable:biz.Util.isDisabledAction($model, ‘saveCI_IY_InspectAreaAction’)
Message: Invalid or unexpected token;
View: $model/UI2/ciyms/inspection/process/inspectArea/mainActivity.w?activity=mainActivity&process=%2Fciyms%2Finspection%2Fprocess%2FinspectArea%2FinspectAreaProcess&bsessionid=39141D0ACC5E5FD071B08DB04C21F324;
[url=]隐藏详细[/url]
SyntaxError: Unable to parse bindings. Bindings value: component:{name:'$model/UI2/system/components/justep/button/button'},disable:biz.Util.isDisabledAction($model, ‘saveCI_IY_InspectAreaAction’) Message: Invalid or unexpected token; View: $model/UI2/ciyms/inspection/process/inspectArea/mainActivity.w?activity=mainActivity&process=%2Fciyms%2Finspection%2Fprocess%2FinspectArea%2FinspectAreaProcess&bsessionid=39141D0ACC5E5FD071B08DB04C21F324; at new Function (<anonymous>) at u.bindingProvider.parseBindingsString (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:147222) at u.bindingProvider.getBindingAccessors (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:146720) at d.u.dependentObservable.disposeWhenNodeIsRemoved [as readFunction] (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:149527) at d.evaluateImmediate (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:134032) at new d (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:131721) at Object.u.computed.u.dependentObservable (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:135156) at l (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:149476) at a (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:148534) at o (http://localhost:8080/x5/UI2/v_d33da8bef7a64f14a04f47f5afebddbdl_zh_CNs_desktopd_pc/system/core.min.js:71:148082)
|
|