|
版本: |
BeX5V3.5 |
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
本帖最后由 tengfei 于 2017-7-4 22:50 编辑
Bex5 v36 ,tomcat, mysql, IE11
为了在table控件单元格(dataTables-$UI/system/components/justep/dataTables/dataTables)显示附件名称,根据文档用oncellrender,在打开时能正常实现,没有错误
if (event.colName === "fFJ" && event.colVal !== undefined) {//判断是附件这列并且有值
var jsonList = eval("("+event.colVal+")");//把值转换为json对象
var html = "";
但新增一条记录的时候报错,
SyntaxError: 语法错误 at Model.prototype.mainTablesCellRender (http://localhost:8080/zrwise/UI2/v_058aca5bf3a14377b8bee9e80e7a4948l_zh_CNs_desktopd_pc/BIMP/CLYB/process/CLYBDay/ybDataActivity.js:51:4) at fire (http://localhost:8080/zrwise/UI2/v_21702f2190154321bdd6e0aae11bd842l_zh_CNs_desktopd_pc/system/core.min.js:71:236425) at fireEvent (http://localhost:8080/zrwise/UI2/v_21702f2190154321bdd6e0aae11bd842l_zh_CNs_desktopd_pc/system/core.min.js:71:237566) at n.prototype.callParent (http://localhost:8080/zrwise/UI2/v_21702f2190154321bdd6e0aae11bd842l_zh_CNs_desktopd_pc/system/core.min.js:71:233867) at fireEvent (http://localhost:8080/zrwise/UI2/v_b47b2d8a3a7c43faa667b49f97cb8f3dl_zh_CNs_desktopd_pc/system/common.min.js:15:3653) at render (eval code:68:104060) at Anonymous function (eval code:68:7061) at o.fnGetData (eval code:68:3715) at K (eval code:68:6262) at ut (eval code:68:10192)
提示是这一行出错:var jsonList = eval("("+event.colVal+")");//把值转换为json对象
不知道如何处理?
|
|