文章列表显示阅读数
This commit is contained in:
parent
3838368919
commit
76886227c4
@ -175,7 +175,7 @@ class Article extends BaseController
|
||||
$res = ArticleList::strict(false)->field(true)->update($param);
|
||||
$aid = $param['id'];
|
||||
if ($res) {
|
||||
//关联角色
|
||||
//关联关键字
|
||||
if (isset($param['keyword_names']) && $param['keyword_names']) {
|
||||
Db::name('ArticleKeywords')->where(['aid'=>$aid])->delete();
|
||||
$keywordArray = explode(',', $param['keyword_names']);
|
||||
@ -211,7 +211,7 @@ class Article extends BaseController
|
||||
}
|
||||
$aid = ArticleList::strict(false)->field(true)->insertGetId($param);
|
||||
if ($aid) {
|
||||
//关联角色
|
||||
//关联关键字
|
||||
if (isset($param['keyword_names']) && $param['keyword_names']) {
|
||||
Db::name('ArticleKeywords')->where(['aid'=>$aid])->delete();
|
||||
$keywordArray = explode(',', $param['keyword_names']);
|
||||
|
@ -62,27 +62,32 @@
|
||||
field: 'sort',
|
||||
title: '排序',
|
||||
align: 'center',
|
||||
width: 80
|
||||
width: 60
|
||||
}, {
|
||||
field: 'cate_title',
|
||||
title: '分类',
|
||||
width: 200
|
||||
width: 160
|
||||
}, {
|
||||
field: 'title',
|
||||
title: '文章标题',
|
||||
templet: '<div><a href="/home/index/index/id/{{d.id}}.html" class="layui-table-link" target="_blank">{{d.title}}</a></div>'
|
||||
},{
|
||||
field: 'read',
|
||||
title: '阅读数',
|
||||
align: 'center',
|
||||
width: 80
|
||||
}, {
|
||||
field: 'status',
|
||||
title: '状态',
|
||||
toolbar: '#status',
|
||||
align: 'center',
|
||||
width: 66
|
||||
width: 60
|
||||
}, {
|
||||
field: 'is_home',
|
||||
title: '首页显示',
|
||||
toolbar: '#is_home',
|
||||
align: 'center',
|
||||
width: 90
|
||||
width: 80
|
||||
}, {
|
||||
field: 'right',
|
||||
title: '操作',
|
||||
|
Loading…
x
Reference in New Issue
Block a user