template_controller.js 479 B

12345678910111213141516171819202122232425
  1. 'use strict';
  2. /**
  3. * 指标模板控制器
  4. *
  5. * @author Mai
  6. * @data 2018/4/19
  7. * @version
  8. */
  9. module.exports = app => {
  10. class TemplateController extends app.BaseController {
  11. /**
  12. * 指标模板页面
  13. *
  14. * @param {object} ctx - egg全局context
  15. * @return {void}
  16. */
  17. async index (ctx) {
  18. await this.layout('template/index.ejs', {}, 'template/modal.ejs');
  19. }
  20. }
  21. return TemplateController;
  22. }