diff --git a/src/api/spring/blessing/scene/index.js b/src/api/spring/blessing/scene/index.js new file mode 100644 index 0000000..dbabc92 --- /dev/null +++ b/src/api/spring/blessing/scene/index.js @@ -0,0 +1,70 @@ +import request from '@/utils/request' + +export function getList(params) { + return request({ + url: '/management/api/spring/card-scene/list', + method: 'get', + params, + }) +} + +export function getAll(params) { + return request({ + url: '/management/api/spring/card-scene/all', + method: 'get', + params, + }) +} + +export function doAdd(data) { + return request({ + url: '/management/api/spring/card-scene/create', + method: 'post', + data, + }) +} + +export function doEdit(id, data) { + return request({ + url: `/management/api/spring/card-scene/update/${id}`, + method: 'put', + data, + }) +} + +export function doDelete(data) { + return request({ + url: '/management/api/spring/card-scene/delete', + method: 'put', + data, + }) +} + +export function doMoveUp(id) { + return request({ + url: `/management/api/spring/card-scene/moveUp/${id}`, + method: 'patch', + }) +} + +export function doMoveDown(id) { + return request({ + url: `/management/api/spring/card-scene/moveDown/${id}`, + method: 'patch', + }) +} + +export function doMoveToTop(id) { + return request({ + url: `/management/api/spring/card-scene/moveToTop/${id}`, + method: 'patch', + }) +} + +export function toggleEnable(id, isEnabled) { + return request({ + url: `/management/api/spring/card-scene/enable/${id}`, + method: 'patch', + data: { isEnabled }, + }) +} diff --git a/src/router/index.js b/src/router/index.js index c59c4da..02369be 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -125,6 +125,12 @@ export const asyncRoutes = [ permissions: ['admin'], }, children: [ + { + path: 'scene', + name: 'Scene', + component: () => import('@/views/spring/blessing/scene/index'), + meta: { title: '祝福卡场景' }, + }, { path: 'template', name: 'template', diff --git a/src/views/spring/blessing/scene/components/SceneEdit.vue b/src/views/spring/blessing/scene/components/SceneEdit.vue new file mode 100644 index 0000000..791b993 --- /dev/null +++ b/src/views/spring/blessing/scene/components/SceneEdit.vue @@ -0,0 +1,108 @@ + + + diff --git a/src/views/spring/blessing/scene/index.vue b/src/views/spring/blessing/scene/index.vue new file mode 100644 index 0000000..af78b26 --- /dev/null +++ b/src/views/spring/blessing/scene/index.vue @@ -0,0 +1,168 @@ + + +