Showing
13 changed files
with
34 additions
and
69 deletions
@@ -6,7 +6,12 @@ | @@ -6,7 +6,12 @@ | ||
6 | module.exports=function(app) { | 6 | module.exports=function(app) { |
7 | 7 | ||
8 | /*平台管理首页*/ | 8 | /*平台管理首页*/ |
9 | - app.get("/resource/platform/index","resource.platformManage.Index"); | 9 | + app.get("/resource/platform/index","resource.platformManage.Index", function () { |
10 | + this.$extend = { | ||
11 | + moduleName: "平台管理", | ||
12 | + pageName: "平台列表" | ||
13 | + } | ||
14 | + }); | ||
10 | 15 | ||
11 | /*平台管理列表*/ | 16 | /*平台管理列表*/ |
12 | app.post("/resources/findResPlatforms","platformManage_findResPlatforms"); | 17 | app.post("/resources/findResPlatforms","platformManage_findResPlatforms"); |
@@ -6,7 +6,12 @@ | @@ -6,7 +6,12 @@ | ||
6 | module.exports=function(app) { | 6 | module.exports=function(app) { |
7 | 7 | ||
8 | /*资源分类管理首页*/ | 8 | /*资源分类管理首页*/ |
9 | - app.get("/resource/sort/index","resource.resourceSortManage.Index"); | 9 | + app.get("/resource/sort/index","resource.resourceSortManage.Index", function () { |
10 | + this.$extend = { | ||
11 | + moduleName: "资源分类管理", | ||
12 | + pageName: "资源分类列表" | ||
13 | + } | ||
14 | + }); | ||
10 | 15 | ||
11 | /*资源分类管理列表*/ | 16 | /*资源分类管理列表*/ |
12 | app.post("/resources/resSortIndex","resourceSortManage_resSortIndex"); | 17 | app.post("/resources/resSortIndex","resourceSortManage_resSortIndex"); |
@@ -31,12 +31,9 @@ module.exports={ | @@ -31,12 +31,9 @@ module.exports={ | ||
31 | }, | 31 | }, |
32 | deleteResPlatform:{ | 32 | deleteResPlatform:{ |
33 | title: "删除平台", | 33 | title: "删除平台", |
34 | - url: '/resources/updateResPlatform', | 34 | + url: '/resources/deleteResPlatform', |
35 | params: [ | 35 | params: [ |
36 | - {name: 'platformId', type: 'number'}, | ||
37 | - {name: 'platformName', type: 'string'}, | ||
38 | - {name: 'platformFlag', type: 'string'}, | ||
39 | - {name: 'status', type: 'number'} | 36 | + {name: 'platformId', type: 'number'} |
40 | ] | 37 | ] |
41 | } | 38 | } |
42 | } | 39 | } |
1 | <%include '../../../common/views/__ui/header'%> | 1 | <%include '../../../common/views/__ui/header'%> |
2 | <%include '../../../common/views/__partail/ListHeader'%> | 2 | <%include '../../../common/views/__partail/ListHeader'%> |
3 | 3 | ||
4 | -<div class="pageheader"> | ||
5 | - <div class="media"> | ||
6 | - <div class="pageicon pull-left"> | ||
7 | - <i class="fa fa-th-list"></i> | ||
8 | - </div> | ||
9 | - <div class="media-body"> | ||
10 | - <ul class="breadcrumb"> | ||
11 | - <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li> | ||
12 | - <li><a href="">平台管理</a></li> | ||
13 | - <li>平台列表</li> | ||
14 | - </ul> | ||
15 | - | ||
16 | - <div> | ||
17 | - <div style="width: 30%;float: left;"> | ||
18 | - <h4>平台列表</h4> | ||
19 | - </div> | ||
20 | - </div> | ||
21 | - </div> | ||
22 | - </div> | ||
23 | -</div> | ||
24 | - | ||
25 | <div class="contentpanel"> | 4 | <div class="contentpanel"> |
26 | <div class="panel-heading"> | 5 | <div class="panel-heading"> |
27 | <a class="btn btn-success " id="add-platform"><i class="fa fa-plus"></i> 添加平台</a> | 6 | <a class="btn btn-success " id="add-platform"><i class="fa fa-plus"></i> 添加平台</a> |
@@ -37,15 +16,15 @@ | @@ -37,15 +16,15 @@ | ||
37 | <div class="form-group"> | 16 | <div class="form-group"> |
38 | <label class="col-sm-3 control-label">平台名称 <span class="asterisk">*</span></label> | 17 | <label class="col-sm-3 control-label">平台名称 <span class="asterisk">*</span></label> |
39 | <div class="col-sm-9"> | 18 | <div class="col-sm-9"> |
40 | - <input type="hidden" value="<%platformId%>", id="platformId" /> | ||
41 | - <input type="text" name="platform_name" class="form-control" value="<%platformName%>" id="platformName" placeholder="请填写平台名称" required="required"> | 19 | + <input type="hidden" value="[[platformId]]", id="platformId" /> |
20 | + <input type="text" name="platform_name" class="form-control" value="[[platformName]]" id="platformName" placeholder="请填写平台名称" required="required"> | ||
42 | </div> | 21 | </div> |
43 | </div> | 22 | </div> |
44 | 23 | ||
45 | <div class="form-group"> | 24 | <div class="form-group"> |
46 | <label class="col-sm-3 control-label">平台标志</label> | 25 | <label class="col-sm-3 control-label">平台标志</label> |
47 | <div class="col-sm-9"> | 26 | <div class="col-sm-9"> |
48 | - <input type="text" name="platform_flag" value="<%platformFlag%>" id="platformFlag" class="form-control"> | 27 | + <input type="text" name="platform_flag" value="[[platformFlag]]" id="platformFlag" class="form-control"> |
49 | </div> | 28 | </div> |
50 | </div> | 29 | </div> |
51 | 30 | ||
@@ -62,7 +41,7 @@ | @@ -62,7 +41,7 @@ | ||
62 | </div><!-- rdio --> | 41 | </div><!-- rdio --> |
63 | <label id="genderError" class="error"></label> | 42 | <label id="genderError" class="error"></label> |
64 | </div> | 43 | </div> |
65 | - <input type="hidden" value="<%status%>" id="status" for="radio" /> | 44 | + <input type="hidden" value="[[status]]" id="status" for="radio" /> |
66 | </div><!-- form-group --> | 45 | </div><!-- form-group --> |
67 | 46 | ||
68 | </div> | 47 | </div> |
1 | <%include '../../../common/views/__ui/header'%> | 1 | <%include '../../../common/views/__ui/header'%> |
2 | <%include '../../../common/views/__partail/ListHeader'%> | 2 | <%include '../../../common/views/__partail/ListHeader'%> |
3 | 3 | ||
4 | -<div class="pageheader"> | ||
5 | - <div class="media"> | ||
6 | - <div class="pageicon pull-left"> | ||
7 | - <i class="fa fa-th-list"></i> | ||
8 | - </div> | ||
9 | - <div class="media-body"> | ||
10 | - <ul class="breadcrumb"> | ||
11 | - <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li> | ||
12 | - <li><a href="">资源分类管理</a></li> | ||
13 | - <li>资源分类列表</li> | ||
14 | - </ul> | ||
15 | - | ||
16 | - <div> | ||
17 | - <div style="width: 30%;float: left;"> | ||
18 | - <h4>资源分类列表</h4> | ||
19 | - </div> | ||
20 | - </div> | ||
21 | - </div> | ||
22 | - </div> | ||
23 | -</div> | ||
24 | - | ||
25 | <div class="contentpanel"> | 4 | <div class="contentpanel"> |
26 | <div class="panel-heading"> | 5 | <div class="panel-heading"> |
27 | <a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源分类</a> | 6 | <a class="btn btn-success " id="add-resource"><i class="fa fa-plus"></i> 添加资源分类</a> |
@@ -37,19 +16,19 @@ | @@ -37,19 +16,19 @@ | ||
37 | <div class="form-group"> | 16 | <div class="form-group"> |
38 | <label class="col-sm-3 control-label">名称 <span class="asterisk">*</span></label> | 17 | <label class="col-sm-3 control-label">名称 <span class="asterisk">*</span></label> |
39 | <div class="col-sm-9"> | 18 | <div class="col-sm-9"> |
40 | - <input type="hidden" value="<%sortId%>", id="sortId" /> | ||
41 | - <input type="text" name="platform_name" class="form-control" value="<%sortName%>" id="sortName" placeholder="请填写平台名称" required="required"> | 19 | + <input type="hidden" value="[[sortId]]", id="sortId" /> |
20 | + <input type="text" name="platform_name" class="form-control" value="[[sortName]]" id="sortName" placeholder="请填写平台名称" required="required"> | ||
42 | </div> | 21 | </div> |
43 | </div> | 22 | </div> |
44 | 23 | ||
45 | <div class="form-group"> | 24 | <div class="form-group"> |
46 | <label class="col-sm-3 control-label">所属平台<span class="asterisk">*</span></label> | 25 | <label class="col-sm-3 control-label">所属平台<span class="asterisk">*</span></label> |
47 | <div class="col-sm-9"> | 26 | <div class="col-sm-9"> |
48 | - <select class="form-control attr_input" data-index='<%__index%>' value="<%platformId||''%>" id="platformId" required> | 27 | + <select class="form-control attr_input" data-index='[[__index]]' value="[[platformId||'']]" id="platformId" required> |
49 | <option value="">请选择</option> | 28 | <option value="">请选择</option> |
50 | - <%each platforms as item index%> | ||
51 | - <option value="<%item.platformId%>"><%item.platformName%></option> | ||
52 | - <%/each%> | 29 | + [[each platforms as item index]] |
30 | + <option value="[[item.platformId]]">[[item.platformName]]</option> | ||
31 | + [[/each]] | ||
53 | </select> | 32 | </select> |
54 | </div> | 33 | </div> |
55 | </div> | 34 | </div> |
@@ -67,7 +46,7 @@ | @@ -67,7 +46,7 @@ | ||
67 | </div><!-- rdio --> | 46 | </div><!-- rdio --> |
68 | <label id="genderError" class="error"></label> | 47 | <label id="genderError" class="error"></label> |
69 | </div> | 48 | </div> |
70 | - <input type="hidden" value="<%status%>" id="status" for="radio" /> | 49 | + <input type="hidden" value="[[status]]" id="status" for="radio" /> |
71 | </div><!-- form-group --> | 50 | </div><!-- form-group --> |
72 | 51 | ||
73 | </div> | 52 | </div> |
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | */ | 4 | */ |
5 | 5 | ||
6 | var $ = require('jquery'), | 6 | var $ = require('jquery'), |
7 | - common = require('../common/common'), | ||
8 | - util = require('../common/util'); | 7 | + common = require('../../../common/common'), |
8 | + util = require('../../../common/util'); | ||
9 | 9 | ||
10 | var g = new common.grid({ | 10 | var g = new common.grid({ |
11 | el: "#content-list", | 11 | el: "#content-list", |
@@ -63,15 +63,15 @@ var Bll = { | @@ -63,15 +63,15 @@ var Bll = { | ||
63 | function() { | 63 | function() { |
64 | e.submit(url,function(option){ | 64 | e.submit(url,function(option){ |
65 | //option.data; | 65 | //option.data; |
66 | - console.log(option.data); | 66 | + //console.log(option.data); |
67 | option.success=function(res){ | 67 | option.success=function(res){ |
68 | dialog.close(); | 68 | dialog.close(); |
69 | - util.__tip(res.data.message, 'success'); | 69 | + util.__tip(res.message, 'success'); |
70 | g.reload(); | 70 | g.reload(); |
71 | }; | 71 | }; |
72 | option.error=function(res){ | 72 | option.error=function(res){ |
73 | dialog.close(); | 73 | dialog.close(); |
74 | - util.__tip(res.data.message); | 74 | + util.__tip(res.message); |
75 | } | 75 | } |
76 | }); | 76 | }); |
77 | return false; | 77 | return false; |
@@ -4,8 +4,8 @@ | @@ -4,8 +4,8 @@ | ||
4 | */ | 4 | */ |
5 | 5 | ||
6 | var $ = require('jquery'), | 6 | var $ = require('jquery'), |
7 | - common = require('../common/common'), | ||
8 | - util = require('../common/util'); | 7 | + common = require('../../../common/common'), |
8 | + util = require('../../../common/util'); | ||
9 | 9 | ||
10 | var ENUM = []; | 10 | var ENUM = []; |
11 | var platformList = []; | 11 | var platformList = []; |
@@ -71,12 +71,12 @@ var Bll = { | @@ -71,12 +71,12 @@ var Bll = { | ||
71 | //console.log(option.data); | 71 | //console.log(option.data); |
72 | option.success=function(res){ | 72 | option.success=function(res){ |
73 | dialog.close(); | 73 | dialog.close(); |
74 | - util.__tip(res.data.message, 'success'); | 74 | + util.__tip(res.message, 'success'); |
75 | Bll.init(); | 75 | Bll.init(); |
76 | }; | 76 | }; |
77 | option.error=function(res){ | 77 | option.error=function(res){ |
78 | dialog.close(); | 78 | dialog.close(); |
79 | - util.__tip(res.data.message); | 79 | + util.__tip(res.message); |
80 | } | 80 | } |
81 | }); | 81 | }); |
82 | return false; | 82 | return false; |
-
Please register or login to post a comment