|
发表于 2016-6-23 10:42:53
|
显示全部楼层
1./UI2/system/service/process/dialog/processDialog.m.js中的Model.prototype.initNoticeData = function(control){方法如下修改
- Model.prototype.initNoticeData = function(control){
- var noticeContent = {rows: []};
- var executorContent = {rows: []};
- var noticeData = this.comp("noticeData");
- var items = control.getNoticeItems() || [];
- for (var i=0; i<items.length; i++){
-
- this.addNotice(noticeContent.rows, executorContent.rows, items[i], control);
- }
- noticeData.loadData(noticeContent);
- if(noticeContent.rows.length>0){
- noticeData.first();
- }
- this.comp("executorData").loadData(executorContent, true);
- };
复制代码
2.就是上面说的方案环节的checkbox的改变事件中如下设置
- Model.prototype.checkbox2Change = function(event){
- var context = justep.Bind.contextFor(event.source.domNode).$object;
- this.control.updateActivityStatus(context.val("rowid"), event.checked);
- if(context.val("label") == '活动环节4'){
- var data = this.comp("noticeData");
- data.setValue("selected",false);
- }
- var self = this;
- context.data.each(function(options){
- var row = options.row;
- var id = row.val("rowid");
- var activity = self.control.getActivityByID(id);
- row.ref("selected").set(activity.isSelected());
- });
-
- };
复制代码
context.val("label") == '活动环节4'这就是判断是那个环节的是设置通知不选 |
|