LuChongMei hai 7 meses
pai
achega
821bb7aedf
Modificáronse 1 ficheiros con 2 adicións e 8 borrados
  1. 2 8
      src/views/activityMan/personList.vue

+ 2 - 8
src/views/activityMan/personList.vue

@@ -141,12 +141,7 @@ export default {
       nativePlace: "",
       currentResidence: "",
     });
-    if (
-      props.value.siteId != "" &&
-      searchForm.value.location.id != props.value.siteId
-    ) {
-      searchForm.value.location.id = props.siteId;
-    }
+    searchForm.value.location.id = props.value.siteId;
     // 搜索
     const onCancel = () => {
       list.value = [];
@@ -169,7 +164,6 @@ export default {
     // 全选
     const checkAll = () => {
       checkboxGroup.value.toggleAll(true);
-      console.log("checked", checked);
       emit("selected", checked.value, 1);
     };
     // 取消全选
@@ -235,7 +229,7 @@ export default {
               !loading.value &&
               searchForm.value.location.id != ""
             ) {
-              checked.value.push(...list.value);
+              checkAll();
             }
           } else {
             index++;