|
@@ -39,7 +39,7 @@
|
|
|
@click="changeState(scope.row.msgId, 1)">开启</el-button>
|
|
|
<el-button v-if="scope.row.status == 1" type="warning" size="small"
|
|
|
@click="changeState(scope.row.msgId, 0)">关闭</el-button>
|
|
|
- <el-button type="danger" size="mini" @click="handleDelete(scope.row.welfareId, -1)">删除</el-button>
|
|
|
+ <el-button type="danger" size="mini" @click="handleDelete(scope.row.msgId, -1)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -271,13 +271,13 @@ export default {
|
|
|
this.getList()
|
|
|
})
|
|
|
},
|
|
|
- handleDelete(welfareId, index) {
|
|
|
+ handleDelete(msgId, index) {
|
|
|
this.$confirm('确认删除吗?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- state({ welfareId: welfareId, status: index }).then(response => {
|
|
|
+ state({ msgId: msgId, status: index }).then(response => {
|
|
|
this.$notify({
|
|
|
title: '成功',
|
|
|
message: '删除成功',
|