Browse Source

调整冗余

10.0
hugh 3 years ago
parent
commit
ea61561bce
  1. 6
      src/main/resources/com/tptj/demo/hg/connection/js/main.js

6
src/main/resources/com/tptj/demo/hg/connection/js/main.js

@ -80,7 +80,6 @@
} }
}); });
BI.shortcut(DemoEditName, DemoEdit); BI.shortcut(DemoEditName, DemoEdit);
BI.constant('dec.constant.database.conf.connect.form.demo.edit', DemoEditName);
//显示配置 //显示配置
var DemoShowName = 'dec.dcm.connection.plugin.demo.show'; var DemoShowName = 'dec.dcm.connection.plugin.demo.show';
@ -119,15 +118,14 @@
}); });
BI.shortcut(DemoShowName, DemoShow); BI.shortcut(DemoShowName, DemoShow);
BI.constant('dec.constant.database.conf.connect.form.demo.show', DemoShowName);
//注册 //注册
BI.config('dec.connection.provider.datebase', function(provider){ BI.config('dec.connection.provider.datebase', function(provider){
provider.registerDatabaseType({ provider.registerDatabaseType({
text: 'Demo Conn', text: 'Demo Conn',
databaseType: 'demo_con', databaseType: 'demo_con',
iconUrl: 'com/tptj/demo/hg/connection/images/demo.jpg', iconUrl: 'com/tptj/demo/hg/connection/images/demo.jpg',
edit: 'dec.dcm.connection.plugin.demo.edit', edit: DemoEditName,
show: 'dec.dcm.connection.plugin.demo.show', show: DemoShowName,
}); });
}); });
})(); })();
Loading…
Cancel
Save