|
|
|
|
@ -55,6 +55,11 @@
|
|
|
|
|
@click="toDraw(2,row)">中奖结果
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Poptip v-if="row.draw_logs_count > 0" :transfer="true" confirm placement="bottom" title="确认要删除吗" @on-ok="deleteByPrize(row)">
|
|
|
|
|
<Button style="margin-left: 4px;" ghost size="small" type="error">删除记录
|
|
|
|
|
</Button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
@ -67,7 +72,8 @@
|
|
|
|
|
import {
|
|
|
|
|
index,
|
|
|
|
|
destroy,
|
|
|
|
|
show
|
|
|
|
|
show,
|
|
|
|
|
destroyByPrize
|
|
|
|
|
} from "@/api/activity/drawPrize";
|
|
|
|
|
import {
|
|
|
|
|
index as activityIndex
|
|
|
|
|
@ -197,6 +203,14 @@
|
|
|
|
|
this.$Message.success("操作成功");
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
deleteByPrize(row) {
|
|
|
|
|
destroyByPrize({
|
|
|
|
|
id: row.id
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.load();
|
|
|
|
|
this.$Message.success("操作成功");
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
pageChange(e) {
|
|
|
|
|
this.select.page = e
|
|
|
|
|
this.load()
|
|
|
|
|
|