feat : 文章管理crud功能完成

This commit is contained in:
2024-09-21 21:59:12 +08:00
parent 090e9a1ea8
commit 4f594b0bfd
7 changed files with 362 additions and 228 deletions

29
src/api/article/index.js Normal file
View File

@@ -0,0 +1,29 @@
import request from '@/utils/request.js'
export const getArticleDetail = (articleId) => {
return request({
url: `/workflow/mosr/article/${articleId}`,
method: "get"
});
};
export const addArticle= (data) => {
return request({
url: '/workflow/mosr/article/add',
method: "post",
data
});
};
export const editArticle= (data) => {
return request({
url: '/workflow/mosr/article/update',
method: "post",
data
});
};
export const deleteArticle = (articleIds) => {
return request({
url: `/workflow/mosr/article/${articleIds}`,
method: "delete"
});
};

View File

@@ -1,4 +1,12 @@
import request from '@/utils/request.js'
export const getResearchFundChart = () => {
return request({
url: '/workflow/mosr/rd/home',
method: 'get',
})
}
export const getResearchFundDetail = (rdFundId) => {
return request({
url: `/workflow/mosr/rd/${rdFundId}`,