Authored by dongjunjie

修改文件夹

module.exports = function (app){
app.get("/supplier/store/index", "shop.Index", function (req,res){
app.get("/supplier/shop/index", "shop.Index", function (req,res){
this.$extend={
gridurl:'/supplier/store/indexPage',
moduleName:"店铺管理",
pageName:"创建店铺",
gridurl:'/supplier/shop/indexPage',
authority:'{"btn":false,"info":"info","create":true,"operationStatus":1,"checkStatusArr":"100,200,900"}',
add:true,
pagetitle:{
level1title:"店铺管理",
level2title:"创建店铺管理",
level3title:"创建店铺列表"
},
searchStatus:[
{value:"100",name:"暂存"},
{value:"200",name:"待审核"},
... ... @@ -17,25 +14,25 @@ module.exports = function (app){
};
});
app.get("/supplier/store/update/:shopsId", "shop.Edit", function (req,res){
app.get("/supplier/shop/update/:shopsId", "shop.Edit", function (req,res){
this.$extend={
pageTitel:"修改店铺",
action:'/store/update'
action:'/shop/update'
}
});
app.get("/supplier/store/info/:shopsId", "shop.Edit", function (req,res){
app.get("/supplier/shop/info/:shopsId", "shop.Edit", function (req,res){
this.$extend={
pageTitel:"创建店铺",
action:'/store/add',
action:'/shop/add',
data:{
shopId:0
}
}
});
app.get("/supplier/store/add", "shop.Info");
app.get("/supplier/shop/add", "shop.Info");
//添加店铺
app.post("/store/add","shopAdd_addShops");
app.post("/shop/add","shopAdd_addShops");
}
... ...
<div class="pageheader">
<div class="media">
<div class="pageicon pull-left">
<i class="fa fa-th-list"></i>
</div>
{{#pagetitle}}
<div class="media-body">
<ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li><a href="">{{level1title}}</a></li>
<li>{{level2title}}</li>
</ul>
<div>
<div style="width: 30%;float: left;">
<h4>{{level3title}}</h4>
</div>
</div>
</div>
{{/pagetitle}}
</div>
</div>
<%include '../../common/views/__ui/header'%>
<%include '../../common/views/__partail/ListHeader'%>
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
... ... @@ -31,15 +11,7 @@
<div class="panel-body">
<div class="row">
<!-- {{#dropCheckStatus}}
<select name="status" id="status" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="-1" selected="">选择提交状态</option>
<option value="100">暂存</option>
<option value="200">待审核</option>
<option value="900">驳回</option>
</select>
{{/dropCheckStatus}} -->
{{# selectShop}}
<div class="panel-col2">
<select name="shop-name" id="shop-name" style="width: 280px;" tabindex="-1" title="" class="form-control">
... ... @@ -92,4 +64,6 @@
<input type="hidden" id="gridurl" value="{{gridurl}}">
<input type="hidden" id="authority" value="{{authority}}" />
<%include '../../common/views/__ui/footer'%>
... ...