1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 'use strict';
- /**
- * 台账相关控制器
- *
- * @author CaiAoLin
- * @date 2017/11/30
- * @version
- */
- module.exports = app => {
- class LedgerController extends app.BaseController {
- /**
- * 构造函数
- *
- * @param {Object} ctx - egg全局变量
- * @return {void}
- */
- constructor(ctx) {
- super(ctx);
- ctx.showProject = true;
- ctx.showTitle = true;
- ctx.showTender = true;
- }
- /**
- * 台账分解页面
- *
- * @param {Object} ctx - egg全局变量
- * @return {void}
- */
- async explode(ctx) {
- const renderData = {};
- await this.layout('ledger/explode.ejs', renderData);
- }
- }
- return LedgerController;
- };
|