|
@@ -43,7 +43,7 @@
|
|
|
<el-table-column fixed="right" label="操作" width="280" header-align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="listBtnBox">
|
|
|
- <div class="listDeleteBtn" @click="deleteRow(scope.row.id, tableData)"><i class="el-icon-delete"></i>移除</div>
|
|
|
+ <!-- <div class="listDeleteBtn" @click="deleteRow(scope.row.id, tableData)"><i class="el-icon-delete"></i>移除</div> -->
|
|
|
<div class="listEditBtn" @click="editRow(scope.row.id, scope.row.website_name)"><i class="el-icon-edit-outline"></i>编辑</div>
|
|
|
<div class="listMainBtn" @click="manageRow(scope.row.id, tableData)"><i class="el-icon-edit-outline"></i>详情</div>
|
|
|
</div>
|
|
@@ -225,13 +225,15 @@ export default {
|
|
|
},
|
|
|
//1.2 删除内容
|
|
|
deleteRow(id){
|
|
|
- this.$confirm('此操作将永久删除该条数据, 是否继续?', '提示', {
|
|
|
+ this.$confirm('删除后,该条信息及其绑定关系全部删除,确定吗?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
+ //website_id
|
|
|
+ //category_id
|
|
|
console.log("当前删除:" + id)
|
|
|
- this.$store.dispatch('pool/delWebsiteCategory',{id:id}).then(res=> {
|
|
|
+ this.$store.dispatch('pool/delWebsiteCategory',{category_id:id}).then(res=> {
|
|
|
this.getData();
|
|
|
this.$message({
|
|
|
type: 'success',
|