bug
This commit is contained in:
parent
7293a918a5
commit
519155c263
@ -46,7 +46,7 @@ export function updateExchange(data) {
|
|||||||
// 删除兑换券
|
// 删除兑换券
|
||||||
export function delExchange(id) {
|
export function delExchange(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/exchange/' + id,
|
url: '/business/marketingActivity/cardExchange/' + id,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -125,7 +125,16 @@
|
|||||||
@click="handleXia(scope.row)"
|
@click="handleXia(scope.row)"
|
||||||
>下线
|
>下线
|
||||||
</el-button>
|
</el-button>
|
||||||
<!-- <el-button-->
|
<el-button
|
||||||
|
size="mini"
|
||||||
|
type="text"
|
||||||
|
icon="el-icon-delete"
|
||||||
|
v-if="scope.row.isonline == 1"
|
||||||
|
@click="handleDelete(scope.row)"
|
||||||
|
>删除
|
||||||
|
</el-button>
|
||||||
|
|
||||||
|
<!-- <el-button-->
|
||||||
<!-- size="mini"-->
|
<!-- size="mini"-->
|
||||||
<!-- type="text"-->
|
<!-- type="text"-->
|
||||||
<!-- icon="el-icon-delete"-->
|
<!-- icon="el-icon-delete"-->
|
||||||
@ -225,7 +234,7 @@ import {
|
|||||||
delExchange,
|
delExchange,
|
||||||
addExchange,
|
addExchange,
|
||||||
updateExchange,
|
updateExchange,
|
||||||
getqueryGoods, exchangeInfo
|
getqueryGoods
|
||||||
} from '@/api/EventMarketing/cardExchange'
|
} from '@/api/EventMarketing/cardExchange'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -395,7 +404,7 @@ export default {
|
|||||||
/** 修改按钮操作 */
|
/** 修改按钮操作 */
|
||||||
handleUpdate(row) {
|
handleUpdate(row) {
|
||||||
this.reset()
|
this.reset()
|
||||||
exchangeInfo(row.id).then(res => {
|
getExchange(row.id).then(res => {
|
||||||
this.form = res.data
|
this.form = res.data
|
||||||
})
|
})
|
||||||
// this.form = row
|
// this.form = row
|
||||||
@ -434,6 +443,15 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
handleDelete(data){
|
||||||
|
delExchange(data.id).then(res => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
this.$message.success('删除成功')
|
||||||
|
this.getList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
/** 上线操作 */
|
/** 上线操作 */
|
||||||
handleShang(row) {
|
handleShang(row) {
|
||||||
let data = row
|
let data = row
|
||||||
|
@ -88,12 +88,12 @@ public class CardExchangeController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 删除数据
|
* 删除数据
|
||||||
*
|
*
|
||||||
* @param idList 主键结合
|
* @param id 主键结合
|
||||||
* @return 删除结果
|
* @return 删除结果
|
||||||
*/
|
*/
|
||||||
@DeleteMapping
|
@DeleteMapping("/{id}")
|
||||||
public ResponseObject delete(@RequestParam("idList") List<Long> idList) {
|
public ResponseObject delete(@PathVariable Long id) {
|
||||||
return getSuccessResult(this.cardExchangeService.removeByIds(idList));
|
return getSuccessResult(this.cardExchangeService.removeById(id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user