Hwt vor 3 Jahren
Ursprung
Commit
5f9db434a9
1 geänderte Dateien mit 2 neuen und 26 gelöschten Zeilen
  1. 2 26
      operationSupport/src/views/ownerManagement/houselessHolds/index.vue

+ 2 - 26
operationSupport/src/views/ownerManagement/houselessHolds/index.vue

@@ -112,7 +112,7 @@ export default {
           type: 'success',
           message: '删除成功!'
         });
-        this.$http.get('/sc-community-web/scResident/unboundHouse/batchDelete', [row.id]).then(({ data, msg, status }) => {
+        this.$http.post('/sc-community-web/scResident/unboundHouse/batchDelete', [row.id]).then(({ data, msg, status }) => {
           this.mixins_search();
         }).catch(() => { });
 
@@ -126,31 +126,7 @@ export default {
       // var res = [];
       // res.push(row.id)
     },
-    // 删除
-    deleteRow () {
-      // 获取选中列表的ids
-      let ids = [];
-      if (!this.selectRow.length) {
-        this.$message.error('您尚未选择要删除的记录,请选择后再操作批量删除');
-        return;
-      }
-      this.selectRow.forEach((v) => {
-        ids.push(v.id);
-      });
-      this.$msgBox(`删除`, '删除后将无法恢复,请问是否继续?')
-        .then((_) => {
-          this.$http.post('/sc-community-web/scResident/unboundHouse/batchDelete', ids).then(({ status, data, msg }) => {
-            if (0 === status) {
-              this.$message({
-                type: 'success',
-                message: '删除成功!'
-              });
-              this.mixins_search();
-            }
-          });
-        })
-        .catch(() => { });
-    },
+
     selectionChange (val) {
       this.selectRow = val;
     },