From ec1c43866835c02c0a3e429100cfac4d7dec3e89 Mon Sep 17 00:00:00 2001
From: cun-nan <19819293608@163.com>
Date: Fri, 8 Mar 2024 15:15:34 +0800
Subject: [PATCH] bug
---
.../EventMarketing/cardFavorable/index.vue | 43 ++++++++++++-------
.../EventMarketing/storeOilBlock/index.vue | 22 +++++-----
.../controller/CardFuelDieselController.java | 2 +-
3 files changed, 40 insertions(+), 27 deletions(-)
diff --git a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue
index e03f8e094..06f442435 100644
--- a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue
@@ -385,6 +385,7 @@
import QRCode from 'qrcodejs2'
import { listFavorable, getFavorable,getcardFavorable,getcount,getcountList, delFavorable, addFavorable, updateFavorable } from "@/api/EventMarketing/cardFavorable";
import { getoilName, } from "@/api/EventMarketing/activeConsumption";
+ import {deleteById} from "@/api/EventMarketing/oilBlock";
export default {
name: "Favorable",
data() {
@@ -597,12 +598,13 @@ export default {
});
},
handleDelete1(data){
- delFavorable(data.id).then(res => {
- if (res.code==200){
- this.$modal.msgSuccess("删除成功");
- this.getList();
- }
- })
+
+ this.$modal.confirm('确定删除此条优惠券信息?').then(function() {
+ return delFavorable(data.id);
+ }).then(() => {
+ this.$modal.msgSuccess("删除成功");
+ this.getList();
+ }).catch(() => {});
},
// 取消按钮
cancel() {
@@ -698,19 +700,28 @@ export default {
},
async ordai(row){
// 获取详情
- await getcardFavorable(row.id).then(res=>{
- console.log(res)
- if(res.code == 200){
- this.form = res.data;
- this.form.isonline = 1
- }
- })
- // 执行修改
- await updateFavorable(this.form).then(response => {
+ // await getcardFavorable(row.id).then(res=>{
+ // console.log(res)
+ // if(res.code == 200){
+ // this.form = res.data;
+ // this.form.isonline = 1
+ //
+ // }
+ // })
+ this.$modal.confirm('确定下线此条优惠券信息?').then(function() {
+ return updateFavorable({id:row.id,isonline:1});
+ }).then(() => {
+ console.log(111)
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
- });
+ }).catch(() => {console.log(222)});
+ // 执行修改
+ // await updateFavorable(this.form).then(response => {
+ // this.$modal.msgSuccess("修改成功");
+ // this.open = false;
+ // this.getList();
+ // });
},
diff --git a/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue b/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue
index 6ca832dd4..317cc7c06 100644
--- a/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/storeOilBlock/index.vue
@@ -222,12 +222,12 @@
-
+
元/升
-
+
元
@@ -296,6 +296,7 @@