Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
cust_web
Commits
060b4d61
Commit
060b4d61
authored
Dec 23, 2024
by
曹泽华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
话题管理
parent
438d5aaf
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1272 additions
and
5 deletions
+1272
-5
topic.js
src/api/contentManagement/topic.js
+100
-0
allPageData.js
src/utils/allPageData.js
+6
-1
index.vue
src/views/contentManagement/topic/index.vue
+640
-4
index.vue
src/views/contentManagement/topic/info/index.vue
+526
-0
No files found.
src/api/contentManagement/topic.js
0 → 100644
View file @
060b4d61
import
request
from
'@/utils/request'
import
Qs
from
'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询话题列表
export
function
listOpmTopic
(
query
)
{
return
request
({
url
:
'/opmTopic/queryOpmTopicByPagination'
,
method
:
'get'
,
params
:
query
})
}
// 2. 查询新闻资讯详细信息
export
function
getOpmTopic
(
businessId
)
{
return
request
({
url
:
'/opmTopic/detail/'
+
businessId
,
method
:
'get'
})
}
// 3. 新增新闻资讯
export
function
addOpmTopic
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/opmTopic/add'
,
method
:
'post'
,
data
:
data
})
}
// 4. 修改新闻资讯
export
function
updateOpmTopic
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/opmTopic/update/'
+
businessId
,
method
:
'post'
,
data
})
}
// 5. 逻辑删除新闻资讯
export
function
delOpmTopic
(
businessId
)
{
return
request
({
url
:
'/opmTopic/delete/'
+
businessId
,
method
:
'delete'
})
}
// 6. 导出新闻资讯
export
function
exportOpmTopic
(
query
)
{
return
request
({
url
:
'/opmTopic/export'
,
method
:
'get'
,
params
:
query
,
responseType
:
'blob'
})
}
// 7. 修改新闻资讯状态
export
function
updateStatus
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/opmTopic/updateStatus/'
+
businessId
,
method
:
'post'
,
data
:
data
})
}
// 7. 修改审核状态
export
function
updateExamStatus
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/opmTopic/updateExamStatus/'
+
businessId
,
method
:
'post'
,
data
:
data
})
}
export
function
updateNoExamStatus
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/opmTopic/updateNoExamStatus/'
+
businessId
,
method
:
'post'
,
data
:
data
})
}
src/utils/allPageData.js
View file @
060b4d61
// 命名导出
export
{
typeField
,
enableOrDisable
,
yesOrNo
}
export
{
typeField
,
enableOrDisable
,
yesOrNo
,
isExam
}
/** banner管理*/
/** 分类*/
const
typeField
=
[
...
...
@@ -17,3 +17,8 @@ const yesOrNo = [
{
value
:
0
,
label
:
'是'
},
{
value
:
1
,
label
:
'否'
}
]
const
isExam
=
[
{
value
:
'0'
,
label
:
'未审核'
},
{
value
:
'1'
,
label
:
'已审核'
}
]
src/views/contentManagement/topic/index.vue
View file @
060b4d61
This diff is collapsed.
Click to expand it.
src/views/contentManagement/topic/info/index.vue
0 → 100644
View file @
060b4d61
This diff is collapsed.
Click to expand it.
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