在:
Model.prototype.modelLoad = function(event) {
var mainData = this.comp("mainData");
if (this.isStart(event)) {
var gridSelect5 = this.comp("gridSelect5");
if ("是" == mainData.getValue("COMPANYLEADERP")) {
gridSelect5.set({
"disabled" : false
});
} else {
gridSelect5.set({
"disabled" : true
});
}
} else {
// data 设置只读
mainData.setReadonly(true);
}
};
报错:
core.min.js:65 Uncaught TypeError: mainData.setReadonly is not a function
at n.Model.modelLoad (mainActivity.js:221)
at n.fire (core.min.js:65)
at n.fireEvent (core.min.js:65)
at n.callParent (core.min.js:65)
at n.fireEvent (common.min.js:15)
at n._fireEvent (common.min.js:15)
at n.fire (core.min.js:65)
at n.fireEvent (core.min.js:65)
at n.attached (core.min.js:65)
at Object.triggerAttach (core.min.js:65)