|
发表于 2024-1-30 11:06:21
|
显示全部楼层
本帖最后由 aqsj 于 2024-1-30 11:40 编辑
报错了 ,在字段组件的change里是可以运行的 放在datatable的afterDeleteLine事件里,报错了
var line = this.target.parentLine; //获取当前组件所在数据模板/数据表格的行(条目)对象
var dz_BusinessType = line.getModule("dz_BusinessType").getData(); //绩效类别
afterDeleteLine的事件里做以上的声明就会报'getModule'错误
VM19511:424 TypeError: Cannot read properties of undefined (reading 'getModule')
at MWF.Macro.scriptSpace.f_0 (<anonymous>:19:28)
at Object.exec (<anonymous>:1:568)
at Object.fire (<anonymous>:1:1690)
at i.extend.$owner [as fire] (mootools-1.6.0_all.js:1399:1)
at Object.<anonymous> (<anonymous>:1:9108)
at Object.<anonymous> (<anonymous>:1:183472)
at Array.forEach (<anonymous>)
at Function.forEach (mootools-1.6.0_all.js:235:1)
at Array.each (mootools-1.6.0_all.js:345:1)
at Object.fireEvent (<anonymous>:1:183432)
|
|