Authored by 陶雨

... ... @@ -8,23 +8,27 @@ module.exports=function(app) {
/*首页*/
app.get("/guang/article/index","guang.info.Index", function () {
this.$extend = {
iscreate: true
iscreate: true,
moduleName: "资讯管理",
pageName: "资讯列表管理"
};
});
/*添加*/
app.get("/guang/article/contentAdd","guang.infoManager.Edit", function () {
app.get("/guang/article/contentAdd","guang.info.Edit", function () {
this.$extend = {
action:"/guang/article/addArticle",
pageTitle:"添加文章"
moduleName: "文章管理",
pageName: "添加文章"
};
});
/*编辑*/
app.get("/guang/article/contentEdit/:id","guang.infoManager.Edit", function () {
app.get("/guang/article/contentEdit/:id","guang.info.Edit", function () {
this.$extend = {
action:"/guang/article/updateArticle",
pageTitle:"修改文章"
moduleName: "文章管理",
pageName: "修改文章"
};
});
... ...
... ... @@ -21,9 +21,9 @@ module.exports={
{name: 'size', type: 'Number'}
]
},
updateArticle:{
operation:{
title: "资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐)",
url: '/guang/article/operation',
url: '/guang/article/updateArticle',
params: [
{name: 'id', type: 'Number'},
{name: 'articleTitle', type: 'String'},
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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="/guang/article/index">文章管理</a></li>
<li><%pageTitle%></li>
</ul>
<div>
<h4><%pageTitle%></h4>
</div>
</div>
</div>
<!-- media -->
</div>
<div class="contentpanel">
<div class="rows">
<div class="col-md-12">
... ...
<%include '../../../common/views/__ui/header'%>
<%include '../../../common/views/__partail/ListHeader'%>
<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-heading">
... ...
var $ = require('jquery'),
common = require('../common/common');
require('../common/umeditor.config');
require('../common/umeditor');
require('../common/zh-cn');
common = require('../../../common/common');
require('../../../common/umeditor.config');
require('../../../common/umeditor');
require('../../../common/zh-cn');
var baidu;
... ...
... ... @@ -2,8 +2,8 @@
* Created by wangqianjun on 16/3/22.
*/
var $ = require('jquery');
common = require('../common/common');
datepicker = require('../util/datepicker');
common = require('../../../common/common');
datepicker = require('../../../common/util/datepicker');
var ENUM = {
GenderEnum: {
... ... @@ -195,7 +195,7 @@ $(document).on('click', '.info-close', function () {
status: -1
}
}, function (res) {
console.log(111111);
if (res.code == 200) {
common.util.__tip('关闭资讯成功', 'success');
g.reload();
... ...