diff --git a/src/api/base/banner/index.js b/src/api/base/banner/index.js new file mode 100644 index 0000000..5f4a363 --- /dev/null +++ b/src/api/base/banner/index.js @@ -0,0 +1,37 @@ +import request from "@/utils/request"; + +const preUrl = "/base/banner" + +// 分页 +export function getBannerPage(params){ + return request({ + url: preUrl + "/page", + method: "get", + params + }) +} + +// 新增、修改 +export function updateBanner(data){ + return request({ + url: preUrl + "/update", + method: "post", + data + }) +} + +// 删除 +export function deleteBannerById(id){ + return request({ + url: preUrl + "/remove?id=" + id, + method: "delete", + }) +} + +// 查看一条 +export function getBannerById(id){ + return request({ + url: preUrl + "/get?id=" + id, + method: "get" + }) +} diff --git a/src/views/base/banner/BannerManager.vue b/src/views/base/banner/BannerManager.vue new file mode 100644 index 0000000..f50b24d --- /dev/null +++ b/src/views/base/banner/BannerManager.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/views/base/banner/Form/BannerManagerForm.vue b/src/views/base/banner/Form/BannerManagerForm.vue new file mode 100644 index 0000000..f5e004d --- /dev/null +++ b/src/views/base/banner/Form/BannerManagerForm.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/src/views/repair/banner/RepairBanner.vue b/src/views/repair/banner/RepairBanner.vue new file mode 100644 index 0000000..0020d66 --- /dev/null +++ b/src/views/repair/banner/RepairBanner.vue @@ -0,0 +1,22 @@ + + + + +