/**
*
* ER图
* @author wangting
*/
layui.define(['layer','element'],function(exports){
var Class = function(){
this.MODULENAME = "platform/objectService/er/erContent";
this.moduleKey = "erContent";
this.id='erContent';
this.sourceData={};
this.columns = [];
this.backPath = configData.compatibility?path:configData.objectServicePath;
this.getContent=function(oid){
var that = this;
var html = "";
html = [
'
',
'
'
].join("");
return html;
};
this.init=function(oid,options){//基础的html被添加后,再执行初始化
var that = this;
$webUtil.copyConfig(that,that.moduleKey);
$webUtil.ajax('get', options.url, {id: options.id}, function (res) {
if (res.success) {
that.tabViewList = res.obj.tabViewList;
that.tabRelViewList = res.obj.tabRelViewList;
top.erData = {
tabViewList: that.tabViewList,
tabRelViewList: that.tabRelViewList
};
$('#view_' + oid ).html('');
$('#view_' + oid ).append('');
} else {
$webUtil.showErrorMsg(res.msg);
}
}, function (xhr, error) {
$webUtil.showErrorMsg("请求出现了错误,可能是服务没有启动");
}, that.backPath);
};
this.refresh = function () {
};
};
var cs = new Class();
exports(cs.MODULENAME, cs);
});