zouling 2 vuotta sitten
vanhempi
commit
280c550670
2 muutettua tiedostoa jossa 8 lisäystä ja 6 poistoa
  1. 2 2
      src/api/system/residentss.js
  2. 6 4
      src/views/system/residentss/index.vue

+ 2 - 2
src/api/system/residentss.js

@@ -176,8 +176,8 @@ export function updateInfo(data) {
 export function updateInfohsxx(query) {
   return request({
     url: '/boman-web-core/core/jzdz/isFive',
-    method: 'get',
-    params: query
+    method: 'post',
+    data: query
   })
 }
 

+ 6 - 4
src/views/system/residentss/index.vue

@@ -752,7 +752,8 @@ export default {
 			loading: true,
       dch:false,
 			// 选中数组
-			ids: [],
+			ids: [],
+      cards:[],
 			// 非单个禁用
 			single: true,
 			// 非多个禁用
@@ -1977,7 +1978,8 @@ export default {
 		},
 		// 多选框选中数据
 		handleSelectionChange(selection) {
-			this.ids = selection.map(item => item.id);
+			this.ids = selection.map(item => item.id);
+      this.cards=selection.map(item => item.idCard);
 			this.single = selection.length !== 1;
 			this.multiple = !selection.length;
 		},
@@ -3401,9 +3403,9 @@ let reg = /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|
         this.$refs['formhs'].validate(valid => {
           let nhuesf = {}
           nhuesf.isNucleicAcidFive = this.formhs.isNucleicAcidFive
-          nhuesf.idCardList = this.ids.join(',')
+          nhuesf.idCardList = this.cards
           updateInfohsxx(nhuesf).then(response => {
-            console.log(response)
+            // console.log(response)
             if(response.code == 200){
                this.msgSuccess('操作成功');
                this.qyhss = false;