|
|
|
|
@ -47,11 +47,11 @@
|
|
|
|
|
@click="$refs['addDrawPrize'].id = row.id,$refs['addDrawPrize'].isShow = true,$refs['addDrawPrize'].type = 'editor'">编辑
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button v-if="row.activity_list_id === 8 && (row.draw_logs_count < row.total)" style="margin-left: 4px;" size="small" type="primary" ghost
|
|
|
|
|
<Button v-if="row.activity_list_id === 8 && !(row.draw_logs_count > 0)" style="margin-left: 4px;" size="small" type="primary" ghost
|
|
|
|
|
@click="toDraw(1,row)">抽奖
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<Button v-if="row.activity_list_id === 8 && !(row.draw_logs_count < row.total)" style="margin-left: 4px;" size="small" type="primary" ghost
|
|
|
|
|
<Button v-if="row.activity_list_id === 8 && (row.draw_logs_count > 0)" style="margin-left: 4px;" size="small" type="primary" ghost
|
|
|
|
|
@click="toDraw(2,row)">中奖结果
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
@ -184,6 +184,13 @@
|
|
|
|
|
mounted() {
|
|
|
|
|
this.load();
|
|
|
|
|
this.loadActivity()
|
|
|
|
|
|
|
|
|
|
window.onfocus = () => {
|
|
|
|
|
this.load();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
window.onfocus = null;
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
let type = parseInt(this.$route.path.split("_")[1]);
|
|
|
|
|
|