|
bex5 3.8版本,用的attachmentSimple组件,页面加载时就会报错并关闭页面
attachmentSimple组件报错内容如下:
- core.min.js:71 Uncaught TypeError: Unable to process binding "style: function(){return {backgroundImage:($model.previewPicture.bind($model,$object))()} }"
- Message: Cannot read property 'get' of undefined
- at n.getPictureUrl (eval at <anonymous> (core.min.js:71), <anonymous>:68:139509)
- at n.previewPicture (eval at <anonymous> (core.min.js:71), <anonymous>:68:140885)
- at style (eval at parseBindingsString (core.min.js:71), <anonymous>:3:196)
- at update (core.min.js:71)
- at d.u.dependentObservable.disposeWhenNodeIsRemoved [as readFunction] (core.min.js:71)
- at d.evaluateImmediate (core.min.js:71)
- at new d (core.min.js:71)
- at Object.u.computed.u.dependentObservable (core.min.js:71)
- at core.min.js:71
- at Object.arrayForEach (core.min.js:71)
复制代码 如果换成attachmentPC,报错内容如下
- Uncaught TypeError: Unable to process binding "style: function(){return {opacity:$model.$access.get() % 4 >= 2 || $model.$state.get() =='remove'?'1.0':'0.5',backgroundImage:($model.previewPicture.bind($model,$object))()} }"
- Message: Cannot read property 'get' of undefined
- at n.getPictureUrl (eval at <anonymous> (core.min.js:71), <anonymous>:6:20255)
- at n.previewPicture (eval at <anonymous> (core.min.js:71), <anonymous>:6:20172)
- at style (eval at parseBindingsString (core.min.js:71), <anonymous>:3:406)
- at update (core.min.js:71)
- at d.u.dependentObservable.disposeWhenNodeIsRemoved [as readFunction] (core.min.js:71)
- at d.evaluateImmediate (core.min.js:71)
- at new d (core.min.js:71)
- at Object.u.computed.u.dependentObservable (core.min.js:71)
- at core.min.js:71
- at Object.arrayForEach (core.min.js:71)
- core.min.js:71 TypeError: Cannot read property 'DataTable' of null
- at n.dataTableApi (eval at <anonymous> (core.min.js:71), <anonymous>:68:109600)
- at n.getRow (eval at <anonymous> (core.min.js:71), <anonymous>:68:109166)
- at n.setSelection (eval at <anonymous> (core.min.js:71), <anonymous>:68:107687)
- at n._eventHandles.__data_index_changed__ (eval at <anonymous> (core.min.js:71), <anonymous>:68:105666)
- at n.fire (core.min.js:71)
- at n.fireEvent (core.min.js:71)
- at n.to (common.min.js:15)
- at n.first (common.min.js:15)
- at n.doRefreshAfter (common.min.js:15)
- at Object.callback (biz.common.min.js:12)
复制代码
|
|