ration_installation.js 833 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Created by zhang on 2018/2/24.
  3. */
  4. let ration_installation = {
  5. createNew: function (project) {
  6. // 用户定义private方法
  7. var tools = {};
  8. // 所有通过this访问的属性,都不应在此单元外部进行写入操作
  9. var ration_installation = function (proj) {
  10. // this.project = proj;
  11. this.datas = [];
  12. var sourceType = ModuleNames.ration_installation;
  13. this.getSourceType = function () {
  14. return sourceType;
  15. }
  16. proj.registerModule(ModuleNames.ration_installation, this);
  17. };
  18. // prototype用于定义public方法
  19. ration_installation.prototype.loadData = function (datas) {
  20. this.datas = datas;
  21. };
  22. return new ration_installation(project);
  23. }
  24. };