diff --git a/src/api/system/servicePackage.js b/src/api/system/servicePackage.js new file mode 100644 index 0000000..bf4c34c --- /dev/null +++ b/src/api/system/servicePackage.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 创建服务套餐 +export function createServicePackage(data) { + return request({ + url: '/system/service-package/create', + method: 'post', + data: data + }) +} + +// 更新服务套餐 +export function updateServicePackage(data) { + return request({ + url: '/system/service-package/update', + method: 'put', + data: data + }) +} + +// 删除服务套餐 +export function deleteServicePackage(id) { + return request({ + url: '/system/service-package/delete?id=' + id, + method: 'delete' + }) +} + +// 获得服务套餐 +export function getServicePackage(id) { + return request({ + url: '/system/service-package/get?id=' + id, + method: 'get' + }) +} + +// 获得服务套餐分页 +export function getServicePackagePage(query) { + return request({ + url: '/system/service-package/page', + method: 'get', + params: query + }) +} + +// 获取服务套餐精简信息列表 +export function getServicePackageList() { + return request({ + url: '/system/service-package/get-simple-list', + method: 'get' + }) +} diff --git a/src/views/system/servicePackage/index.vue b/src/views/system/servicePackage/index.vue new file mode 100644 index 0000000..b04d103 --- /dev/null +++ b/src/views/system/servicePackage/index.vue @@ -0,0 +1,286 @@ + + +