yanliming 3 rokov pred
rodič
commit
a4f7ef1be1

+ 9 - 1
src/api/base/memberInfo.js

@@ -80,6 +80,14 @@ function batchRemove(idList){
   });
 }
 
+function batchCheck(idList){
+  return request.post(constant.serverUrl + "/base/memberInfo/batchCheck",idList,{
+    headers: {
+      "Content-Type": "application/json"
+    }
+  });
+}
+
 function batchActivation(idList){
   return request.post(constant.serverUrl + "/base/memberInfo/batchActivation",idList,{
     headers: {
@@ -93,5 +101,5 @@ function batchActivation(idList){
 
 export default {
   pageList,create,edit,add,update,updateFaceImg,remove,batchRemove,list,view,checkPageList,checkMemberInfo,
-  pageListDel,activation,batchActivation
+  pageListDel,activation,batchActivation,batchCheck
 }

+ 54 - 1
src/views/base/memberCheck-list.vue

@@ -59,7 +59,7 @@
         size="small"
         plain
         icon="el-icon-circle-plus"
-        @click="handleAdd"
+        @click="handleBatchCheck"
         >批量通过</el-button
       >
       <el-button
@@ -457,6 +457,59 @@ export default {
             });
         })
     },
+
+    handleBatchCheck(){
+        var self = this;
+
+        var idList = this.multipleSelection.map((record) => {
+          return record.id;
+        });
+
+        self
+        .$confirm("审核通过?", "提示", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning",
+        })
+        .then(() => {
+          memberInfoApi.batchCheck(idList).then(function (response) {
+            var jsonData = response.data;
+
+            if (jsonData.result) {
+              self.changePage(self.pageIndex);
+
+              self.$message({
+                type: "success",
+                message: "审核成功!",
+              });
+            }
+          });
+            // (function () {
+
+            //     self.formModel.id = record.id
+
+            //     return memberInfoApi.batchCheck(self.formModel);
+                
+            // })().then(function (response) {
+            //     var jsonData = response.data;
+
+            //     if (jsonData.result) {
+            //         self.$message({
+            //             message: "审核成功!",
+            //             type: "success",
+            //         });
+
+            //         self.changePage(self.pageIndex);
+
+            //     } else {
+            //     self.$message({
+            //         message: jsonData.message + "",
+            //         type: "warning",
+            //     });
+            //     }
+            // });
+        })
+    },
     onDetailModalClose(refreshed) {
       //保存成功后回调
       this.showModal = false;