123456789101112131415161718192021222324252627282930313233343536373839404142 |
- 'use strict';
- /**
- * 计量相关控制器
- *
- * @author olym
- * @date 2018/2/11
- * @version
- */
- module.exports = app => {
- class MeasureController extends app.BaseController {
- /**
- * 构造函数
- *
- * @param {Object} ctx - egg全局变量
- * @return {void}
- */
- constructor(ctx) {
- super(ctx);
- ctx.showProject = true;
- ctx.showTender = true;
- ctx.showTitle = false;
- }
- /**
- * 中间计量页面
- *
- * @param {Object} ctx - egg全局变量
- * @return {void}
- */
- async middle(ctx) {
- const renderData = {};
- await this.layout('measure/middle.ejs', renderData);
- }
- }
- return MeasureController;
- };
|