1234567891011121314151617181920212223242526272829 |
- /**
- * Created by Tony on 2017/3/13.
- */
- let express = require('express');
- let rptRouter = express.Router();
- let reportController = require('./../controllers/rpt_controller');
- <<<<<<< HEAD
- rptRouter.post('/getReport', reportController.getReportAllPages);
- rptRouter.get('/getExcel/:id/:size/:rptName/:isOneSheet', reportController.getExcel);
- =======
- module.exports =function (app) {
- >>>>>>> 54307e7bc954a6c634a9960dab54b0f42578bc0f
- app.get('/report', function(req, res) {
- if (!req.session.userAccount) {
- res.redirect('/login');
- }
- else {
- res.render('maintain/report/rpt_test.html',
- {userAccount: req.session.userAccount,
- userID: req.session.userID});
- }
- });
- rptRouter.post('/getReport', reportController.getReportAllPages);
- rptRouter.get('/getExcel/:id/:size/:rptName', reportController.getExcel);
- app.use("/report_api", rptRouter);
- }
|