diff --git a/src/api/system/article.js b/src/api/article/article.js similarity index 100% rename from src/api/system/article.js rename to src/api/article/article.js diff --git a/src/api/article/articlecategory.js b/src/api/article/articlecategory.js new file mode 100644 index 0000000..cd9a8d1 --- /dev/null +++ b/src/api/article/articlecategory.js @@ -0,0 +1,80 @@ +import request from '@/utils/request' + +/** + * 文章目录分页查询 + * @param {查询条件} data + */ +export function listArticleCategory(query) { + return request({ + url: 'article/ArticleCategory/list', + method: 'get', + params: query, + }) +} + +/** + * 文章目录tree查询 + * @param {查询条件} data + */ +export function treelistArticleCategory(query) { + return request({ + url: 'article/ArticleCategory/treelist', + method: 'get', + params: query, + }) +} + +/** + * 新增文章目录 + * @param data + */ +export function addArticleCategory(data) { + return request({ + url: 'article/ArticleCategory', + method: 'post', + data: data, + }) +} + +/** + * 修改文章目录 + * @param data + */ +export function updateArticleCategory(data) { + return request({ + url: 'article/ArticleCategory', + method: 'PUT', + data: data, + }) +} + +/** + * 获取文章目录详情 + * @param {Id} + */ +export function getArticleCategory(id) { + return request({ + url: 'article/ArticleCategory/' + id, + method: 'get' + }) +} + +/** + * 删除文章目录 + * @param {主键} pid + */ +export function delArticleCategory(pid) { + return request({ + url: 'article/ArticleCategory/' + pid, + method: 'delete' + }) +} + +// 导出文章目录 +export function exportArticleCategory(query) { + return request({ + url: 'article/ArticleCategory/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/index_v1.vue b/src/views/index_v1.vue index 0b32187..d32dc3b 100644 --- a/src/views/index_v1.vue +++ b/src/views/index_v1.vue @@ -119,7 +119,7 @@ import RaddarChart from './dashboard/RaddarChart' import PieChart from './dashboard/PieChart' import BarChart from './dashboard/BarChart' import { Vue3SeamlessScroll } from 'vue3-seamless-scroll' -import { listNewArticle } from '@/api/system/article.js' +import { listNewArticle } from '@/api/article/article.js' const data = { newVisitis: { diff --git a/src/views/system/article/articleCategory.vue b/src/views/system/article/articleCategory.vue new file mode 100644 index 0000000..3927c87 --- /dev/null +++ b/src/views/system/article/articleCategory.vue @@ -0,0 +1,315 @@ + + + diff --git a/src/views/system/article/manager.vue b/src/views/system/article/manager.vue index ff64525..289321c 100644 --- a/src/views/system/article/manager.vue +++ b/src/views/system/article/manager.vue @@ -58,7 +58,7 @@