This commit is contained in:
cun-nan 2024-03-07 11:31:53 +08:00
parent 470fed9d7c
commit 69c0516825
2 changed files with 15 additions and 5 deletions

View File

@ -34,7 +34,7 @@
plain plain
icon="el-icon-plus" icon="el-icon-plus"
size="mini" size="mini"
@click="open = true" @click="addDatas"
>新增</el-button> >新增</el-button>
</el-col> </el-col>
</el-row> </el-row>
@ -241,8 +241,9 @@
<el-table-column label="活动状态 " align="center" prop="status" > <el-table-column label="活动状态 " align="center" prop="status" >
<template slot-scope="scope"> <template slot-scope="scope">
<span style="cursor: pointer;" v-if="scope.row.status == 0"> <el-tag>在线</el-tag > </span> <span style="cursor: pointer;" v-if="scope.row.status == 0"> <el-tag>进行中</el-tag > </span>
<span style="cursor: pointer;" v-if="scope.row.status == 1"> <el-tag type="danger">下线</el-tag> </span> <span style="cursor: pointer;" v-if="scope.row.status == 1"> <el-tag type="danger">待生效</el-tag> </span>
<span style="cursor: pointer;" v-if="scope.row.status == 2"> <el-tag type="danger">已结束</el-tag> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="赠送积分" align="center" prop="adaptUserType" > <el-table-column label="赠送积分" align="center" prop="adaptUserType" >
@ -628,6 +629,15 @@ export default {
}) })
}, },
addDatas(){
this.open = true
this.form = {
id:"",
tableDatas:[],
courtesyReward:[],
activeNewlywedsChildList:[],
}
},
qrcodelook(url) { qrcodelook(url) {
this.loadingdialog = true this.loadingdialog = true
this.centerDialogVisible = true this.centerDialogVisible = true
@ -820,7 +830,7 @@ export default {
Deleteshan(row){ Deleteshan(row){
const ids = row.id || this.ids; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除消费有礼活动编号为"' + ids + '"的数据项?').then(function() { this.$modal.confirm('是否确认删除消费有礼活动编号为"' + ids + '"的数据项?').then(function() {
return delActiveFullminus(ids); return delActiveNewlyweds(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");

View File

@ -108,7 +108,7 @@ public class ActiveNewlywedsController extends BaseController {
* @return * @return
*/ */
@DeleteMapping("delById/{ids}") @DeleteMapping("delById/{ids}")
public ResponseObject delete(@PathVariable Long ids) { public ResponseObject delete(@PathVariable Integer ids) {
return getSuccessResult(this.activeNewlywedsService.removeById(ids)); return getSuccessResult(this.activeNewlywedsService.removeById(ids));
} }