Authored by dongjunjie

帮助管理模块

module.exports = function (app){
app.get("/erpproduct/brands/edit/:brandId", "shop.Edit", function (req,res){
this.$extend={
action: '/brand/edit'
}
});
app.get("/operations/helpcategory/index", "help.Category");
//所有帮助分类列表
app.post("/operations/helpcategory/getAllHelpCategory","helpCategory_getAllHelpCategory");
//添加帮助分类
app.post("/operations/helpcategory/addCategory","helpCategory_addCategory");
//保存修改帮助分类
app.post("/operations/helpcategory/updateHelpCategory","helpCategory_updateHelpCategory");
//删除帮助分类
app.post("/operations/helpcategory/deleteHelpCategory","helpCategory_deleteHelpCategory");
//帮助分类详情
app.post("/operations/helpcategory/getCategoryListByPid","helpCategory_getCategoryListByPid");
}
... ...
module.exports = function (app){
app.get("/operations/helpcategory/index", "shop.Edit", function (req,res){
this.$extend={
action: '/brand/edit'
}
});
app.get("/operations/helpcontent/index", "help.Content");
//帮助内容列表
app.post("/operations/helpcontent/getAllHelpContent","helpContent_getAllHelpContent");
//添加帮助内容
app.post("/operations/helpcontent/addHelpContent","helpContent_addHelpContent");
//保存编辑帮助内容
app.post("/operations/helpcontent/updateHelpContent","helpContent_updateHelpContent");
//删除帮助内容
app.post("/operations/helpcontent/deleteHelpContent","helpContent_deleteHelpContent");
//帮助内容详情
app.post("/operations/helpcontent/getHelpContentByCategoryId","helpContent_getHelpContentByCategoryId");
//二级帮助分类
app.post("/operations/helpcontent/getSecondCategoryList","helpContent_getSecondCategoryList");
//查询所有帮助分类
app.post("/operations/helpcontent/getAllHelpCategory","helpContent_getAllHelpCategory");
//查询帮助分类
app.post("/operations/helpcontent/getHelpCategory","helpContent_getHelpCategory");
}
... ...
module.exports= {
namespace: "helpCategory",
apis: {
getAllHelpCategory:{
title:"所有帮助分类列表",
url:"/HelpCategoryRest/getAllHelpCategory",
params:[]
},
addCategory:{
title:"添加帮助分类",
url:"/HelpCategoryRest/addCategory",
params:[
{name: 'categoryName', type: 'String'},
{name: 'parentId', type: 'Number'},
{name: 'platform', type: 'String'}
]
},
updateHelpCategory:{
title:"保存修改帮助分类",
url:"/HelpCategoryRest/updateHelpCategory",
params:[
{name: 'id', type: 'Number'},
{name: 'categoryName', type: 'String'},
{name: 'parentId', type: 'Number'},
{name: 'platform', type: 'String'}
]
},
deleteHelpCategory:{
title:"删除帮助分类",
url:"/HelpCategoryRest/deleteHelpCategory",
params:[
{name: 'id', type: 'Number'},
{name: 'parentId', type: 'Number'}
]
},
getCategoryListByPid:{
title:"帮助分类详情",
url:"/HelpCategoryRest/getCategoryListByPid",
params:[
{name: 'parentId', type: 'Number'}
]
}
}
}
\ No newline at end of file
... ...
module.exports= {
namespace: "helpContent",
apis: {
getAllHelpContent:{
title:"帮助内容列表",
url:"/HelpContentRest/getAllHelpContent",
params:[
{name: 'categoryId', type: 'Number'},
{name: 'platform', type: 'string'}
]
},
addHelpContent:{
title:"添加帮助内容",
url:"/HelpContentRest/addHelpContent",
params:[
{name: 'title', type: 'string'},
{name: 'categoryId', type: 'Number'},
{name: 'content', type: 'string'},
{name: 'platform', type: 'string'}
]
},
updateHelpContent:{
title:"保存编辑帮助内容",
url:"/HelpContentRest/updateHelpContent",
params:[
{name: 'id', type: 'Number'},
{name: 'title', type: 'string'},
{name: 'categoryId', type: 'Number'},
{name: 'content', type: 'string'},
{name: 'platform', type: 'string'}
]
},
deleteHelpContent:{
title:"删除帮助内容",
url:"/HelpContentRest/deleteHelpContent",
params:[
{name: 'id', type: 'Number'}
]
},
getHelpContentByCategoryId:{
title:"帮助内容详情",
url:"/HelpContentRest/getHelpContentByCategoryId",
params:[
{name: 'categoryId', type: 'Number'}
]
},
getSecondCategoryList:{
title:"二级帮助分类",
url:"/HelpCategoryRest/getSecondCategoryList",
params:[]
},
getAllHelpCategory:{
title:"查询所有帮助分类",
url:"/HelpCategoryRest/getAllHelpCategory",
params:[]
},
getHelpCategory:{
title:"查询帮助分类",
url:"/HelpCategoryRest/getHelpCategory",
params:[]
}
}
}
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">客服管理</a></li>
<li>黑名单限制</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>黑名单限制</h4>
</div>
</div>
</div>
</div>
</div>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body">
<div class="row">
<div class="panel-col-2">
<input placeholder="请输入用户uid" id="uid" class="form-control">
<a id="dismiss" href="javascript:;" class="btn btn-info">解除</a>
</div>
</div>
</div>
</div>
<div class="panel panel-primary-head">
<div class="dataTab_wrapper" id="basicTab"></div>
<div class="dataTab_wrapper" id="basicTable" ></div>
</div>
</div>
\ No newline at end of file