- 注册时间
- 2018-10-10
- 最后登录
- 2021-5-26
- 阅读权限
- 10
- 积分
- 47
- 精华
- 0
- 帖子
- 3
|
felt 发表于 2021-5-13 16:32
贴这2列的html代码。
都是什么编辑器? 使用动态列写的
{ field: "principalName", displayField:"principalName_name",width: 150, headerAlign: "center", allowSort: false, header: "责任人", editor: { type: "buttonedit",showClose:true,onbuttonclick:"selectPrincipal()",oncloseclick:"clearPrincipal()",allowInput:false} },//责任人
{ field: "departmentName", width: 150, headerAlign: "center", allowSort: false, header: "责任部门", editor: { type: "buttonedit",onbuttonclick:"selectDepartment()",allowInput:false} },//责任部门
function clearPrincipal() {
var row = planOrganizationMini.getSelected();
planOrganizationMini.updateRow(row,{displayField:"",principalName_name:"",principalName:"",principal:"",departmentName:"",department:""});
}
planOrganizationMini.on("drawcell", function (e) {
var record = e.record;
var field = e.field;
var column = e.column;
if(field == "principalName"){
e.column.editor.value = record.principalName;
e.column.editor.text = record.principalName;
}
}) |
|