查看: 9224|回复: 1

datatemplate控件数据保存问题

升级   6.48%

44

主题

46

回帖

648

积分

注册会员

Rank: 2

积分
648
发表于 2023-5-10 17:33:05 | 显示全部楼层 |阅读模式
流程表单中使用多个datatemplate控件嵌套使用。保存数据不会报错。但是再重新打开该流程时总是出现错误:


Uncaught (in promise) TypeError: this.data.data.each is not a function
    at Object._loadLineList (<anonymous>:1:411469)
    at i.extend.$owner (mootools-1.6.0_all.js:1399:1)
    at Object.<anonymous> (<anonymous>:1:411095)
    at Object.then (o2.js:2515:1)
    at Object._loadDatatable (<anonymous>:1:411054)
    at i.extend.$owner (mootools-1.6.0_all.js:1399:1)
    at Object.loadDatatable (<anonymous>:1:405778)
    at i.extend.$owner [as loadDatatable] (mootools-1.6.0_all.js:1399:1)
    at Object._loadUserInterface (<anonymous>:1:405628)
    at i.extend.$owner [as _loadUserInterface] (mootools-1.6.0_all.js:1399:1)

datatemplate控件嵌套使用有限制吗?我嵌套了5层。
回复

使用道具 举报

升级   100%

139

主题

1万

回帖

4万

积分

超级版主

Rank: 8Rank: 8

积分
41458
发表于 2023-5-11 09:51:11 | 显示全部楼层
可以嵌套的,看起来是您加载的时候有脚本报错,您看看您是否有写this.data.data.each这样的自定义脚本,应该是没有取到data导致的
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系客服 关注微信 下载APP 返回顶部 返回列表
viewthread