mirror of
https://gitee.com/ZhongBangKeJi/crmeb_java.git
synced 2026-05-04 23:51:25 +08:00
更新代码
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<el-table-column label="操作" min-width="120" fixed="right" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button class="mr10" type="text" size="small" @click="onAdd(scope.row)">编辑</el-button>
|
||||
<!--<el-button type="text" size="small" @click="handleDelete(scope.row.id, scope.$index)" disable>删除</el-button>-->
|
||||
<el-button type="text" size="small" @click="handleDelete(scope.row.id, scope.$index)" disable>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -132,7 +132,7 @@
|
||||
},
|
||||
// 删除
|
||||
handleDelete(id, idx) {
|
||||
this.$modalSure().then(() => {
|
||||
this.$modalSure('删除吗?所有用户已经关联的数据都会清除').then(() => {
|
||||
this.$route.path.indexOf('group') !== -1 ? groupDeleteApi({id:id}).then(() => {
|
||||
this.$message.success('删除成功')
|
||||
this.tableData.data.splice(idx, 1)
|
||||
|
||||
Reference in New Issue
Block a user