diff --git a/src/api/spring/index/topic.js b/src/api/spring/index/topic.js new file mode 100644 index 0000000..ac233be --- /dev/null +++ b/src/api/spring/index/topic.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +export function getList(data) { + return request({ + url: '/management/api/spring/card/special-topic/list', + method: 'get', + params: data, + }) +} + +export function createTopic(data) { + return request({ + url: '/management/api/spring/card/special-topic/create', + method: 'post', + data, + }) +} + +export function updateTopic(id, data) { + return request({ + url: `/management/api/spring/card/special-topic/update/${id}`, + method: 'put', + data, + }) +} + +export function enableTopic(id) { + return request({ + url: `/management/api/spring/card/special-topic/enable/${id}`, + method: 'patch', + }) +} + +export function disableTopic(id) { + return request({ + url: `/management/api/spring/card/special-topic/disable/${id}`, + method: 'patch', + }) +} diff --git a/src/router/index.js b/src/router/index.js index 86fcf30..e867661 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -73,6 +73,12 @@ export const asyncRoutes = [ component: () => import('@/views/spring/index/recommend/index'), meta: { title: '推介列表', icon: 'list' }, }, + { + path: 'topic', + name: 'Topic', + component: () => import('@/views/spring/index/topic/index'), + meta: { title: '贺卡专题', icon: 'list' }, + }, { path: 'tips', name: 'tips', diff --git a/src/views/spring/index/topic/components/TopicEdit.vue b/src/views/spring/index/topic/components/TopicEdit.vue new file mode 100644 index 0000000..f53d7a2 --- /dev/null +++ b/src/views/spring/index/topic/components/TopicEdit.vue @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/spring/index/topic/index.vue b/src/views/spring/index/topic/index.vue new file mode 100644 index 0000000..7d9c6b4 --- /dev/null +++ b/src/views/spring/index/topic/index.vue @@ -0,0 +1,139 @@ + + + + + 添加 + + + + + + + + 查询 + + + + + + + + + + + + + + + + + + + + + + + + + {{ formatTime(row.createdAt) }} + + + + + 编辑 + + + + + + + + +