Authored by 陈峰

样式微调

@@ -7,9 +7,3 @@ export default { @@ -7,9 +7,3 @@ export default {
7 name: 'app' 7 name: 'app'
8 }; 8 };
9 </script> 9 </script>
10 -  
11 -<style lang="scss">  
12 -.tetst {  
13 - width: 100px;  
14 -}  
15 -</style>  
@@ -125,12 +125,6 @@ body { @@ -125,12 +125,6 @@ body {
125 transition: width .1s ease-in-out; 125 transition: width .1s ease-in-out;
126 } 126 }
127 127
128 -.ivu-table {  
129 - table {  
130 - }  
131 -}  
132 -  
133 -  
134 .layout-logo-left { 128 .layout-logo-left {
135 width: 90%; 129 width: 90%;
136 height: 30px; 130 height: 30px;
1 const _ = require('lodash'); 1 const _ = require('lodash');
2 -const Context = require('./context'); 2 +const Context = require('../framework/context');
3 const rp = require('request-promise'); 3 const rp = require('request-promise');
4 const request = require('request'); 4 const request = require('request');
5 5
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 */ 5 */
6 'use strict'; 6 'use strict';
7 7
8 -const Context = require('../common/context'); 8 +const Context = require('../framework/context');
9 const FileService = require('../service/file-service'); 9 const FileService = require('../service/file-service');
10 const Api = require('../common/api'); 10 const Api = require('../common/api');
11 const apiDomain = require('../common/api-domain'); 11 const apiDomain = require('../common/api-domain');
@@ -9,8 +9,7 @@ @@ -9,8 +9,7 @@
9 const Express = require('express'); 9 const Express = require('express');
10 const UserController = require('./user-controller'); 10 const UserController = require('./user-controller');
11 const FileController = require('./file-controller'); 11 const FileController = require('./file-controller');
12 -const OutputController = require('./output-controller');  
13 -const middleware = require('../common/middleware'); 12 +const middleware = require('../framework/middleware');
14 const multipart = require('connect-multiparty'); 13 const multipart = require('connect-multiparty');
15 const multipartMiddleware = multipart(); 14 const multipartMiddleware = multipart();
16 15
@@ -20,7 +19,5 @@ router.post('/login', middleware(UserController, 'login')); @@ -20,7 +19,5 @@ router.post('/login', middleware(UserController, 'login'));
20 router.post('/logout', middleware(UserController, 'logout')); 19 router.post('/logout', middleware(UserController, 'logout'));
21 router.post('/upload/image', multipartMiddleware, middleware(FileController, 'uploadImage')); 20 router.post('/upload/image', multipartMiddleware, middleware(FileController, 'uploadImage'));
22 21
23 -// router.get('/output/productList', middleware(OutputController, 'productList'));  
24 -  
25 22
26 module.exports = router; 23 module.exports = router;
1 1
2 -const Context = require('../common/context'); 2 +const Context = require('../framework/context');
3 const nodeExcel = require('excel-export'); 3 const nodeExcel = require('excel-export');
4 4
5 // 暂时弃用 5 // 暂时弃用
@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 */ 5 */
6 'use strict'; 6 'use strict';
7 7
8 -const Context = require('../common/context'); 8 +const Context = require('../framework/context');
9 const UserService = require('../service/user-service'); 9 const UserService = require('../service/user-service');
10 const _ = require('lodash'); 10 const _ = require('lodash');
11 11
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 * @date: 2017/04/13 4 * @date: 2017/04/13
5 */ 5 */
6 6
7 -const Context = require('./context'); 7 +const Context = require('../framework/context');
8 8
9 module.exports = (Type, action) => { 9 module.exports = (Type, action) => {
10 return (req, res, next) => { 10 return (req, res, next) => {
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 * @date: 2017/04/13 4 * @date: 2017/04/13
5 */ 5 */
6 const _ = require('lodash'); 6 const _ = require('lodash');
7 -const util = require('../common/util'); 7 +const util = require('../framework/util');
8 8
9 module.exports = (req, res, next) => { 9 module.exports = (req, res, next) => {
10 let yoho = { 10 let yoho = {
1 -const Context = require('../common/context'); 1 +const Context = require('../framework/context');
2 2
3 class FileService extends Context { 3 class FileService extends Context {
4 constructor() { 4 constructor() {
@@ -5,8 +5,7 @@ @@ -5,8 +5,7 @@
5 'use strict'; 5 'use strict';
6 6
7 const _ = require('lodash'); 7 const _ = require('lodash');
8 -const md5 = require('yoho-md5');  
9 -const Context = require('../common/context'); 8 +const Context = require('../framework/context');
10 const rp = require('request-promise'); 9 const rp = require('request-promise');
11 const Api = require('../common/api'); 10 const Api = require('../common/api');
12 const apiDomain = global.yoho.apiDomain; 11 const apiDomain = global.yoho.apiDomain;