|
@@ -30,12 +30,9 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button @click="handleEdit(scope.$index, scope.row)">编辑
|
|
|
</el-button>
|
|
|
- <!-- <el-popconfirm
|
|
|
- title="这是一段内容确定删除吗?"
|
|
|
- @onConfirm="handleDelete(scope.$index, scope.row)"
|
|
|
- > -->
|
|
|
- <el-button slot="reference" type="danger" >删除</el-button>
|
|
|
- <!-- </el-popconfirm> -->
|
|
|
+
|
|
|
+ <el-button @click="handleDelete(scope.$index, scope.row)" slot="reference" type="danger" >删除</el-button>
|
|
|
+
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -233,13 +230,19 @@
|
|
|
}
|
|
|
},
|
|
|
handleDelete(index, row) {
|
|
|
- console.log(row)
|
|
|
- let params = {
|
|
|
- idList:row.id
|
|
|
- }
|
|
|
- deleteProtocol(params,res=>{
|
|
|
-
|
|
|
- })
|
|
|
+ this.$confirm("删除后无法恢复,是否需要删除?", "提示", {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ console.log(row)
|
|
|
+ let params = [row.Id]
|
|
|
+ deleteProtocol(params,res=>{
|
|
|
+ this.getTxOption()
|
|
|
+ })
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message("取消删除")
|
|
|
+ })
|
|
|
},
|
|
|
handleChangeProtocolType(val) {
|
|
|
},
|