From 25cd5cb0031678247bd621fb37c6151187f0f7fb Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Tue, 23 Jan 2024 09:26:10 +0800 Subject: [PATCH] bug --- fuintAdmin_zt/src/views/indexBanner/index.vue | 9 ++++----- .../indexBanner/controller/IndexBannerController.java | 2 +- gasStation-uni/pages/index/index.vue | 7 +++++-- gasStation-uni/pages/refuel/refuel.vue | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/fuintAdmin_zt/src/views/indexBanner/index.vue b/fuintAdmin_zt/src/views/indexBanner/index.vue index ff255dec4..fa310f486 100644 --- a/fuintAdmin_zt/src/views/indexBanner/index.vue +++ b/fuintAdmin_zt/src/views/indexBanner/index.vue @@ -3,7 +3,7 @@ - + - + + :label="item.name" :value="item.id+''"> @@ -235,18 +235,17 @@ export default { if (valid) { if (this.form.id){ updateIndexBanner(this.form).then(res => { - console.log(res) if (res.data==1){ this.$modal.msgSuccess("修改成功") this.dialogVisible = false this.flag = false + this.queryParams.page = 1 this.getList() this.getStoreList() } }) }else { addIndexBanner(this.form).then(res => { - console.log(res) if (res.data==1){ this.$modal.msgSuccess("添加成功") this.dialogVisible = false diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/indexBanner/controller/IndexBannerController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/indexBanner/controller/IndexBannerController.java index f89ce22a3..3f4a46ae7 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/indexBanner/controller/IndexBannerController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/indexBanner/controller/IndexBannerController.java @@ -56,7 +56,7 @@ public class IndexBannerController extends BaseController { */ @PostMapping public ResponseObject add(@RequestBody IndexBanner indexBanner){ - return getSuccessResult(indexBannerService.insertIndexBanner(indexBanner,null)); + return getSuccessResult(indexBannerService.insertIndexBanner(indexBanner,indexBanner.getStoreId())); } /** diff --git a/gasStation-uni/pages/index/index.vue b/gasStation-uni/pages/index/index.vue index 509e08877..ac7873cd9 100644 --- a/gasStation-uni/pages/index/index.vue +++ b/gasStation-uni/pages/index/index.vue @@ -9,8 +9,10 @@ - - + + + + @@ -271,6 +273,7 @@ import { callWithErrorHandling } from "vue" _this.list1[i].bannerUrl = _this.baseUrl + res.data[i].bannerUrl } } + console.log(_this.list1); }) } }, diff --git a/gasStation-uni/pages/refuel/refuel.vue b/gasStation-uni/pages/refuel/refuel.vue index 331438966..a69194c0e 100644 --- a/gasStation-uni/pages/refuel/refuel.vue +++ b/gasStation-uni/pages/refuel/refuel.vue @@ -8,7 +8,7 @@ - +