|
|
|
@ -20,7 +20,7 @@
|
|
|
|
<Input v-model="select.keyword" placeholder="请输入关键字" style="width: 180px"></Input>
|
|
|
|
<Input v-model="select.keyword" placeholder="请输入关键字" style="width: 180px"></Input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<Button style="margin-left: 10px" type="primary" @click="select={page:1,keyword:''}">重置
|
|
|
|
<Button style="margin-left: 10px" type="primary" @click="doRest">重置
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
<Button style="margin-left: 10px" type="primary" @click="doSearch">查询</Button>
|
|
|
|
<Button style="margin-left: 10px" type="primary" @click="doSearch">查询</Button>
|
|
|
|
<Button style="margin-left: 10px" type="primary" @click="add">新增</Button>
|
|
|
|
<Button style="margin-left: 10px" type="primary" @click="add">新增</Button>
|
|
|
|
@ -38,12 +38,12 @@
|
|
|
|
<template v-slot:btns v-else>
|
|
|
|
<template v-slot:btns v-else>
|
|
|
|
<el-table-column fixed="right" header-align="center" label="操作" width="200">
|
|
|
|
<el-table-column fixed="right" header-align="center" label="操作" width="200">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<template #default="{ row }">
|
|
|
|
<Poptip :transfer="true" confirm placement="bottom" title="确认要删除吗" @on-ok="deleteitem(row)">
|
|
|
|
<Poptip :transfer="true" confirm placement="bottom" v-if='!(row.draw_logs_count > 0)' title="确认要删除吗" @on-ok="deleteitem(row)">
|
|
|
|
<Button ghost size="small" type="error">删除
|
|
|
|
<Button ghost size="small" type="error">删除
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
</Poptip>
|
|
|
|
</Poptip>
|
|
|
|
|
|
|
|
|
|
|
|
<Button style="margin-left: 4px;" size="small" type="primary" ghost
|
|
|
|
<Button style="margin-left: 4px;" size="small" v-if='!(row.draw_logs_count > 0)' type="primary" ghost
|
|
|
|
@click="$refs['addDrawPrize'].id = row.id,$refs['addDrawPrize'].isShow = true,$refs['addDrawPrize'].type = 'editor'">编辑
|
|
|
|
@click="$refs['addDrawPrize'].id = row.id,$refs['addDrawPrize'].isShow = true,$refs['addDrawPrize'].type = 'editor'">编辑
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
|
|
@ -142,6 +142,10 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
doRest(){
|
|
|
|
|
|
|
|
this.select.page=1;
|
|
|
|
|
|
|
|
this.select.keyword="";
|
|
|
|
|
|
|
|
},
|
|
|
|
toDraw (type = 1, row) {
|
|
|
|
toDraw (type = 1, row) {
|
|
|
|
if (type === 1) {
|
|
|
|
if (type === 1) {
|
|
|
|
window.open(this.$router.resolve({path: '/mdLotteryDraw/'+row.id}).href,'_blank')
|
|
|
|
window.open(this.$router.resolve({path: '/mdLotteryDraw/'+row.id}).href,'_blank')
|
|
|
|
|