bug
This commit is contained in:
parent
632ec70cca
commit
56b4579524
@ -134,6 +134,12 @@
|
||||
v-if="scope.row.isonline == 0"
|
||||
@click="ordai(scope.row)"
|
||||
>下线</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
v-if="scope.row.isonline == 1"
|
||||
@click="handleDelete1(scope.row)"
|
||||
>删除</el-button>
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -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();
|
||||
|
@ -97,12 +97,12 @@ public class CardFavorableController extends BaseController {
|
||||
/**
|
||||
* 删除数据
|
||||
*
|
||||
* @param idList 主键结合
|
||||
* @param id 主键结合
|
||||
* @return 删除结果
|
||||
*/
|
||||
@DeleteMapping
|
||||
public ResponseObject delete(@RequestParam("idList") List<Long> idList) {
|
||||
return getSuccessResult(this.cardFavorableService.removeByIds(idList));
|
||||
@DeleteMapping("/{id}")
|
||||
public ResponseObject delete(@PathVariable Integer id) {
|
||||
return getSuccessResult(this.cardFavorableService.removeById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user