diff --git a/Yi.BBS.Vue3/src/apis/articleApi.js b/Yi.BBS.Vue3/src/apis/articleApi.js
new file mode 100644
index 00000000..ec189ba9
--- /dev/null
+++ b/Yi.BBS.Vue3/src/apis/articleApi.js
@@ -0,0 +1,41 @@
+import myaxios from '@/utils/request'
+export function getList(data){
+ return myaxios({
+ url: '/article',
+ method: 'get',
+ params:data
+ })
+};
+export function get(id){
+ return myaxios({
+ url: `/article/${id}`,
+ method: 'get'
+ })
+};
+export function add(data){
+ return myaxios({
+ url: `/article`,
+ method: 'post',
+ data:data
+ })
+};
+export function update(id,data){
+ return myaxios({
+ url: `/article/${id}`,
+ method: 'put',
+ data:data
+ })
+};
+export function del(ids){
+ return myaxios({
+ url: `/article/${ids}`,
+ method: 'delete'
+ })
+};
+export function all(discussId)
+{
+ return myaxios({
+ url: `/article/all/discuss-id/${discussId}`,
+ method: 'get'
+ })
+}
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/apis/discussApi.js b/Yi.BBS.Vue3/src/apis/discussApi.js
index d0f55cfe..9b45d15f 100644
--- a/Yi.BBS.Vue3/src/apis/discussApi.js
+++ b/Yi.BBS.Vue3/src/apis/discussApi.js
@@ -26,3 +26,9 @@ export function update(id,data){
data:data
})
};
+export function del(ids){
+ return myaxios({
+ url: `/discuss/${ids}`,
+ method: 'delete'
+ })
+};
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/components/TreeArticleInfo.vue b/Yi.BBS.Vue3/src/components/TreeArticleInfo.vue
new file mode 100644
index 00000000..862bdf3c
--- /dev/null
+++ b/Yi.BBS.Vue3/src/components/TreeArticleInfo.vue
@@ -0,0 +1,42 @@
+
+
+
+
+
+ {{ node.label }}
+
+ 删除
+
+
+
+
+
+
diff --git a/Yi.BBS.Vue3/src/layout/AppBody.vue b/Yi.BBS.Vue3/src/layout/AppBody.vue
index 7ef3b9fb..47f5ca73 100644
--- a/Yi.BBS.Vue3/src/layout/AppBody.vue
+++ b/Yi.BBS.Vue3/src/layout/AppBody.vue
@@ -16,9 +16,9 @@ background-color:#F0F2F5;
}
.content-main{
- /* max-width:1200px; */
margin: 0 auto;
display: flex;
justify-content: center;
+ min-height: 1150px;
}
\ No newline at end of file
diff --git a/Yi.BBS.Vue3/src/router/index.js b/Yi.BBS.Vue3/src/router/index.js
index 7b04241c..83a35572 100644
--- a/Yi.BBS.Vue3/src/router/index.js
+++ b/Yi.BBS.Vue3/src/router/index.js
@@ -33,7 +33,7 @@ const router = createRouter({
//artType:discuss主题、article文章
//operType:create创建、update更新
name:'editArt',
- path:'/editArt/:artType/:operType/:id',
+ path:'/editArt',
component:()=>import('../views/EditArticle.vue')
}
]
diff --git a/Yi.BBS.Vue3/src/views/Article.vue b/Yi.BBS.Vue3/src/views/Article.vue
index 96772ccf..1b775bb7 100644
--- a/Yi.BBS.Vue3/src/views/Article.vue
+++ b/Yi.BBS.Vue3/src/views/Article.vue
@@ -1,320 +1,332 @@
-
-
-
-
-
-
-
-
-
-
- 首页
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{discuss.title}}
-
-
-
-
-
-
-
- 4
-
- 0
-
- 分享
-
- 操作
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
- 编辑
-
- -
- 分类: 文章
-
- 标签: 文章
- 资源
-
-
-
-
-
-
-
-
-
-
- -
- {{ `${i+1} : ${item}` }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 首页
+ 添加子文章
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+ {{ discuss.title }}
+
+
+
+
+
+ 4
+ 0
+ 分享
+ 操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+ 编辑
+ 删除
+
+ - 分类: 文章
+ 标签:
+ 文章
+ 资源
+
+
+
+
+
+
+
+
+
+
+ -
+ {{ `${i + 1} : ${item}` }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Yi.BBS.Vue3/src/views/Discuss.vue b/Yi.BBS.Vue3/src/views/Discuss.vue
index 1a961beb..16073292 100644
--- a/Yi.BBS.Vue3/src/views/Discuss.vue
+++ b/Yi.BBS.Vue3/src/views/Discuss.vue
@@ -104,7 +104,13 @@ const loadDiscussList=async()=>{
//进入添加主题页面
const enterEditArticle=()=>{
- router.push(`/editArt/discuss/create/${route.params.plateId}`)
+ //跳转路由
+var routerPer= { path: '/editArt', query: {
+ operType: 'create',
+ artType:'discuss',
+ plateId:route.params.plateId,
+ }}
+router.push(routerPer);
}