|
@@ -103,12 +103,28 @@ export default {
|
|
|
methods: {
|
|
|
|
|
|
deleteOne (row) {
|
|
|
+ this.$confirm('此操作将永久删除该用户, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: '删除成功!'
|
|
|
+ });
|
|
|
+ this.$http.get('/sc-community-web/scResident/unboundHouse/batchDelete', [row.id]).then(({ data, msg, status }) => {
|
|
|
+ this.mixins_search();
|
|
|
+ }).catch(() => { });
|
|
|
+
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消删除'
|
|
|
+ });
|
|
|
+ });
|
|
|
// alert(1)
|
|
|
// var res = [];
|
|
|
// res.push(row.id)
|
|
|
- this.$http.post('/sc-community-web/scResident/unboundHouse/batchDelete', [row.id]).then(({ status, data, msg }) => {
|
|
|
- this.mixins_search();
|
|
|
- });
|
|
|
},
|
|
|
// 删除
|
|
|
deleteRow () {
|