!function(self,arg){
var tip = view.get("#tip");
tip.set({
icon:"url(>skin>common/icons.gif) -80px -0px",
anchorTarget:self,
align:"right",
vAlign:"top",
style:{
background:"white",
color:"black",
},
content:[{
tagName:"p",
content:"确定"+self.get("text")+"该接口吗?",
},{
tagName:"p",
style:{
textAlign:"right",
},
content:[{
tagName:"button",
content:"取消",
className:"label-n",
style:{
marginRight:"5px",
},
onclick:function(){
tip.hide();
},
},{
tagName:"button",
content:"确认",
className:"label-n choose",
style:{
marginRight:"5px",
},
onclick:function(){
var param={};
var entity=view.get("#datagrid.currentEntity");
console.log(entity);
param.status=entity.get("statusString")=="禁用"?1:0;
param.accountApiConfigId=entity.get("accountApiConfigId");
action = view.get("#ajaxActionChangeStatus");
action.set("parameter",param).execute(function(){
tip.hide();
view.get("#dataset").flushAsync(function(){
view.get("#operate").set({
text:view.get("#dataset.data:#.statusString")=="正常"?"禁用":"恢复",
});
});
});
},
}],
}],
});
tip.show();
};