Bernice 发表于 2020-12-8 16:23:38

select 去读数据字典报错

最简单的一级select,代码如下;预览报错说没有长度;同一个表单,另外一个select样例是正常的;纳了闷了,麻烦管理员看下,谢谢。
var dict_Yinzhang = new this.Dict("DICT_yongyinleixing");    //DICT_yongyinleixing 数据字典的名称
var Yinzhang_arr = dict.get("Yinzhang");       //用印类型:Yinzhang
return Yinzhang_arr;                        //返回

数据字典如下
http://www.o2oa.net:20020/x_file_assemble_control/jaxrs/file/b6a6ac4a-787f-42bb-a6cf-2a626802a0d4/download/stream

报错如下:
Uncaught TypeError: Cannot read property 'getSize' of null
    at Object.setContentSize (<anonymous>:1:766)
    at Object.i.extend.$owner (o2.min.js?v=-713ba53:5)
    at Object.<anonymous> (<anonymous>:1:173335)
    at Array.forEach (<anonymous>)
    at Function.forEach (o2.min.js?v=-713ba53:5)
    at Array.each (o2.min.js?v=-713ba53:5)
    at Object.fireEvent (<anonymous>:1:173295)
    at Object.i.extend.$owner (o2.min.js?v=-713ba53:5)
    at Object.fireAppEvent (<anonymous>:1:174064)
    at Object.i.extend.$owner (o2.min.js?v=-713ba53:5)

论坛管理员 发表于 2020-12-9 12:14:19

您好:从您的设置看起来是没有问题。或者您重新建立查阅一下是否存在一样的问题!
有点怀疑您的数据被破坏了!
http://www.o2oa.net:20020/x_file_assemble_control/jaxrs/file/40002b86-eccd-43e3-ab62-3f9cf3ae5604/download/stream
http://www.o2oa.net:20020/x_file_assemble_control/jaxrs/file/eaad5967-7567-4020-bf05-0368c62083a8/download/stream

Bernice 发表于 2020-12-15 17:27:36

非常感谢,重新建了个应用就好了,不知道为啥
页: [1]
查看完整版本: select 去读数据字典报错