diff --git a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue
index 0f48d826a..87926a4b8 100644
--- a/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/cardFavorable/index.vue
@@ -134,6 +134,12 @@
v-if="scope.row.isonline == 0"
@click="ordai(scope.row)"
>下线
+ 删除
@@ -589,6 +595,14 @@ export default {
this.loading = false;
});
},
+ handleDelete1(data){
+ delFavorable(data.id).then(res => {
+ if (res.code==200){
+ this.$modal.msgSuccess("删除成功");
+ this.getList();
+ }
+ })
+ },
// 取消按钮
cancel() {
this.open = false;
@@ -681,9 +695,9 @@ export default {
})
},
- ordai(row){
+ async ordai(row){
// 获取详情
- getcardFavorable(row.id).then(res=>{
+ await getcardFavorable(row.id).then(res=>{
console.log(res)
if(res.code == 200){
this.form = res.data;
@@ -691,7 +705,7 @@ export default {
}
})
// 执行修改
- updateFavorable(this.form).then(response => {
+ await updateFavorable(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableController.java
index bcb0c5284..d553bf7cb 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/controller/CardFavorableController.java
@@ -97,12 +97,12 @@ public class CardFavorableController extends BaseController {
/**
* 删除数据
*
- * @param idList 主键结合
+ * @param id 主键结合
* @return 删除结果
*/
- @DeleteMapping
- public ResponseObject delete(@RequestParam("idList") List idList) {
- return getSuccessResult(this.cardFavorableService.removeByIds(idList));
+ @DeleteMapping("/{id}")
+ public ResponseObject delete(@PathVariable Integer id) {
+ return getSuccessResult(this.cardFavorableService.removeById(id));
}
/**