- 注册时间
- 2013-8-5
- 最后登录
- 2013-8-20
- 阅读权限
- 10
- 积分
- 164
- 精华
- 0
- 帖子
- 59
|
factory 发表于 2013-8-17 08:54
http://www.miniui.com/demo/#src=datagrid/datagrid.html
参考demo中的编辑功能
<div field="V_ACCOUNT_OWNUNIT" displayField="name" width="100" allowSort="false">收入归属中心
<input property="editor" class="mini-buttonedit" onbuttonclick="openOwnUnit" style="width:100%;" allowInput="false" emptyText="请选择..."/>
</div>
function openOwnUnit(e) {
var btnEdit = this;
mini.open({
url: "fee.toOwnUnit.do",
showMaxButton: false,
title: "选择收入归属中心",
width: 350,
height: 350,
onload: function(){
var value = mini.get("ownUnit").getValue();
if(!value||null){}else
top["win"].setDefaultTree(value);
},
ondestroy: function (action) {
if (action == "ok") {
var iframe = this.getIFrameEl();
var data = iframe.contentWindow.GetData();
data = mini.clone(data);
if (data) {
btnEdit.setValue(data.uuid);
btnEdit.setText(data.name);
}
}
}
});
}
top["win"] = window;
function setDefaultTree(e){
tree.checkNode(e);
tree.expandPath(e);
}
但是mini.get("V_ACCOUNT_OWNUNIT")是空的,为什么 |
|