Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
court-inner
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
莫晓莉
court-inner
Commits
2738722c
Commit
2738722c
authored
Oct 22, 2021
by
莫晓莉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页搜索
parent
ce115153
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
src/api/homePage.js
+9
-0
src/views/homePage/index.vue
+0
-0
src/views/list/index.vue
+10
-3
src/views/zone/index.vue
+1
-1
No files found.
src/api/homePage.js
View file @
2738722c
...
...
@@ -107,3 +107,12 @@ export function latestNewOfGXCourt(data) {
})
}
//按栏目名搜索栏目
export
function
findBoard
(
data
)
{
return
request
({
url
:
`websiteCluster/web/findBoard`
,
method
:
'POST'
,
data
,
})
}
src/views/homePage/index.vue
View file @
2738722c
This diff is collapsed.
Click to expand it.
src/views/list/index.vue
View file @
2738722c
...
...
@@ -25,7 +25,7 @@
</ul>
-->
<!--
<el-tree
:data=
"dataTreeFile"
:props=
"defaultProps"
></el-tree>
-->
<div
style=
"height: 65vh;over-flow:hidden;overflow:auto;"
>
<el-tree
:data=
"dataTreeFile"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
></el-tree>
<el-tree
default-expand-all
:data=
"dataTreeFile"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
></el-tree>
</div>
</div>
</el-col>
...
...
@@ -182,6 +182,9 @@ import {
newsFromBoard
,
//获取栏目下的新闻列表
getSubLevelBoard
}
from
"@/api/list.js"
;
import
{
getSelectedBoardTree
,
//获取指定栏目树
}
from
"@/api/homePage.js"
export
default
{
name
:
"show"
,
...
...
@@ -313,8 +316,12 @@ export default {
getSubLevelBoardF
(
boardId
){
var
params
=
{};
params
.
boardId
=
boardId
;
getSubLevelBoard
(
JSON
.
stringify
(
params
)).
then
(
res
=>
{
console
.
log
(
res
);
// getSubLevelBoard(JSON.stringify(params)).then(res=>{
// console.log(res);
// this.dataTreeFile = res.data
// })
getSelectedBoardTree
(
params
).
then
(
res
=>
{
console
.
log
(
'获取指定栏目树='
,
res
);
this
.
dataTreeFile
=
res
.
data
})
},
...
...
src/views/zone/index.vue
View file @
2738722c
...
...
@@ -118,7 +118,7 @@ export default {
},
methods
:{
getLatestNewOfGXCourt
(){
this
.
pageInfo
.
deptId
=
32
;
//
this.pageInfo.deptId=32;
latestNewOfGXCourt
(
this
.
pageInfo
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
moreNewsList
=
res
.
data
.
records
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment