单页->文章

dev
truthhun 1 year ago
parent 3df3f87403
commit b38efbe09c

@ -47,10 +47,10 @@ func getPermissions() (permissions []Permission) {
{Title: "恢复回收站文档", Description: "", Method: "GRPC", Path: "/api.v1.RecycleAPI/RecoverRecycleDocument"},
{Title: "清空回收站文档", Description: "", Method: "GRPC", Path: "/api.v1.RecycleAPI/ClearRecycleDocument"},
{Title: "删除回收站文档", Description: "", Method: "GRPC", Path: "/api.v1.RecycleAPI/DeleteRecycleDocument"},
{Title: "文章/单页管理", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/ListArticle"},
{Title: "更新文章/单页", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/UpdateArticle"},
{Title: "删除文章/单页", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/DeleteArticle"},
{Title: "创建文章/单页", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/CreateArticle"},
{Title: "文章管理", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/ListArticle"},
{Title: "更新文章", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/UpdateArticle"},
{Title: "删除文章", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/DeleteArticle"},
{Title: "创建文章", Description: "", Method: "GRPC", Path: "/api.v1.ArticleAPI/CreateArticle"},
{Title: "上传文章图片和音视频", Description: "", Method: "POST", Path: "/api/v1/upload/article"},
{Title: "上传文档分类封面", Description: "", Method: "POST", Path: "/api/v1/upload/category"},
{Title: "上传配置图片文件", Description: "", Method: "POST", Path: "/api/v1/upload/config"},

@ -169,7 +169,7 @@ export default {
},
{
page: '/admin/article',
title: '单页管理',
title: '文章管理',
icon: 'el-icon-discover',
},
{

@ -25,7 +25,22 @@
@selectRow="selectRow"
@editRow="editRow"
@deleteRow="deleteRow"
/>
>
<!-- 查看文章 -->
<template slot="actions" slot-scope="scope">
<nuxt-link
target="_blank"
:to="{
name: 'article-id',
params: { id: scope.row.identifier },
}"
>
<el-button type="text" size="mini" icon="el-icon-view"
>查看</el-button
>
</nuxt-link>
</template>
</TableList>
</el-card>
<el-card shadow="never" class="mgt-20px">
<div class="text-right">
@ -93,7 +108,7 @@ export default {
},
head() {
return {
title: `单页管理 - ${this.settings.system.sitename}`,
title: `文章管理 - ${this.settings.system.sitename}`,
}
},
computed: {

@ -68,7 +68,7 @@ const cumstomPermissionMap = {
pages: ['/admin/config'],
},
'api.v1.ArticleAPI': {
label: '单页管理',
label: '文章管理',
path: 'ListArticle',
children: [],
pages: ['/admin/article'],

Loading…
Cancel
Save