|
|
|
|
@ -16,9 +16,24 @@
|
|
|
|
|
:total="total"
|
|
|
|
|
@pageSizeChange="e => select.pageSize = e"
|
|
|
|
|
@pageIndexChange="pageChange"
|
|
|
|
|
:table-item="table"
|
|
|
|
|
@delete="deleteActivity"
|
|
|
|
|
@editor="editorActivity"></xy-table>
|
|
|
|
|
:table-item="table">
|
|
|
|
|
<template v-slot:btns>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="220" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<Button type="primary" size="small" @click="editorActivity(scope.row.id,'editor')">编辑</Button>
|
|
|
|
|
<Button type="primary" size="small" style="margin-left: 10px;" @click="editorActivity(scope.row.id,'copy')">复制新增</Button>
|
|
|
|
|
<Poptip
|
|
|
|
|
transfer
|
|
|
|
|
confirm
|
|
|
|
|
title="确认要删除吗?"
|
|
|
|
|
@on-ok="deleteActivity(scope.row)">
|
|
|
|
|
<Button type="primary" style="margin-left: 10px;" size="small" ghost>删除</Button>
|
|
|
|
|
</Poptip>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
</xy-table>
|
|
|
|
|
|
|
|
|
|
<addActivity ref="addActivity" @refresh="getActivities"></addActivity>
|
|
|
|
|
<showActiveOrder :id="activeId" :name="activeName" :is-show.sync="isShowOrder"></showActiveOrder>
|
|
|
|
|
@ -225,9 +240,9 @@ export default {
|
|
|
|
|
this.getActivities()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
editorActivity(row){
|
|
|
|
|
this.$refs['addActivity'].id = row.id
|
|
|
|
|
this.$refs['addActivity'].type = 'editor'
|
|
|
|
|
editorActivity(id,type){
|
|
|
|
|
this.$refs['addActivity'].id = id
|
|
|
|
|
this.$refs['addActivity'].type = type
|
|
|
|
|
this.$refs['addActivity'].isShow = true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|