|
版本: |
|
小版本号: |
|
|
|
数据库: |
|
服务器操作系统: |
|
应用服务器: |
|
客户端操作系统: |
|
浏览器: |
|
|
|
第一个是controlGroup,bind-visible属性为 $model.mainData.val("fDoMethodID") =='rectify'第二个是labelEdit ,bind-visible属性为showPT(js)。
当第一个属性生效时,展开controlGroup,第二个label为空,默认的是false,感觉没有作用!
var Model = function() {
this.callParent();
Input.mobileDatePickerType = 'mobiscroll';
this.user = $.parseJSON(justep.Util.getCookie("user"));
this.flag = '0';
this.showPT = justep.Bind.observable(false);
this.showText = justep.Bind.observable(false);
};
Model.prototype.showPText = function(self, value) {
if (value == "yes") {
self.showPT.set(true);
self.showText.set(true);
} else {
self.showPT.set(false);
self.showText.set(false);
}
}
Model.prototype.controlGroup2Click = function(event) {
var mainData = this.comp("mainData");
var rowID = mainData.getCurrentRowID();
var fPunishment = mainData.getValueByID("fPunishment", rowID);
if (fPunishment && fPunishment != null && fPunishment != undefined) {
this.showPText(this, fPunishment);
}
};
|
|