diff --git a/src/api/spring/blessing/template/index.js b/src/api/spring/blessing/template/index.js new file mode 100644 index 0000000..f202204 --- /dev/null +++ b/src/api/spring/blessing/template/index.js @@ -0,0 +1,47 @@ +import request from '@/utils/request' + +export function getList(data) { + return request({ + url: '/management/api/spring/blessing/template/list', + method: 'get', + params: data, + }) +} + +export function doAdd(data) { + return request({ + url: '/management/api/spring/blessing/template', + method: 'post', + data, + }) +} + +export function doEdit(id, data) { + return request({ + url: `/management/api/spring/blessing/template/${id}`, + method: 'put', + data, + }) +} + +export function doDelete(data) { + return request({ + url: '/management/api/spring/blessing/template/delete', + method: 'put', + data, + }) +} + +export function doMoveUp(id) { + return request({ + url: `/management/api/spring/blessing/template/moveUp/${id}`, + method: 'patch', + }) +} + +export function doMoveDown(id) { + return request({ + url: `/management/api/spring/blessing/template/moveDown/${id}`, + method: 'patch', + }) +} diff --git a/src/api/spring/fortune/card/index.js b/src/api/spring/fortune/card/index.js index 97ea88f..b745b5e 100644 --- a/src/api/spring/fortune/card/index.js +++ b/src/api/spring/fortune/card/index.js @@ -17,7 +17,6 @@ export function doAdd(data) { } export function doEdit(id, data) { - console.log(22222, id, data) return request({ url: `/management/api/spring/fortune/card/${id}`, method: 'put', diff --git a/src/router/index.js b/src/router/index.js index 4f9ad54..0dda200 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -55,6 +55,26 @@ export const asyncRoutes = [ name: 'SpringMini', meta: { title: '新春祝福', icon: 'gift', permissions: ['admin'] }, children: [ + { + path: 'blessing', + component: EmptyLayout, + alwaysShow: true, + redirect: 'noRedirect', + name: 'Blessing', + meta: { + title: '祝福卡片', + icon: 'clover', + permissions: ['admin'], + }, + children: [ + { + path: 'template', + name: 'template', + component: () => import('@/views/spring/blessing/template/index'), + meta: { title: '祝福卡模版' }, + }, + ], + }, { path: 'fortune', component: EmptyLayout, diff --git a/src/views/spring/blessing/template/components/AppManagementEdit.vue b/src/views/spring/blessing/template/components/AppManagementEdit.vue new file mode 100644 index 0000000..8370fc0 --- /dev/null +++ b/src/views/spring/blessing/template/components/AppManagementEdit.vue @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/views/spring/blessing/template/index.vue b/src/views/spring/blessing/template/index.vue new file mode 100644 index 0000000..b1251a1 --- /dev/null +++ b/src/views/spring/blessing/template/index.vue @@ -0,0 +1,150 @@ + + + + + 添加 + + + + + + + + + + + + + + + 查询 + + + + + + + + + + + + + + + + + + + + {{ row.isEnabled ? '是' : '否' }} + + + + + 编辑 + 删除 + + + + + + + + +