FineReport V9.0 认证接口扩展示例。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
762 B

/**
* Created by richie on 16/7/19.
*/
FS.Plugin.AuthenticateTypePool.push({
defineTypeString: function () {
return 'cas'
},
defineTitleString: function () {
return 'Cas认证';
},
defineRowHeightNumber: function () {
return 21;
},
defineUI: function () {
return [{}, {}, {type: 'text', widgetName: 'cas', watermark: 'Cas认证地址'}];
},
saveDataSync: function (container) {
return FS.Async.ajax({
url: FR.servletURL + '?op=cas&cmd=save',
data: {
name : container.getWidgetByName('cas').getValue()
}
});
},
populateData:function (container) {
alert(container.getWidgetByName('cas').getValue());
}
});