pengjing 5 hónapja
szülő
commit
62261b3f81
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      h5app/src/components/companySelect.vue

+ 4 - 0
h5app/src/components/companySelect.vue

@@ -49,6 +49,7 @@ import {arrowBackOutline, searchOutline} from 'ionicons/icons';
 import {IonIcon, onIonViewDidEnter} from '@ionic/vue';
 import BEmpty from "@/components/empty.vue";
 import {getCompanyList} from "@/api/company";
+import {useUserStore} from "@/store/modules/user";
 
 export default defineComponent({
   name: 'companySelect',
@@ -66,6 +67,7 @@ export default defineComponent({
       pageIndex: 1,
       pageSize: 30,
       companyName: '',
+      loginUserID: ''
     });
     const isOpen = ref(false);
     const dataList = ref<any>([]);
@@ -86,6 +88,8 @@ export default defineComponent({
 
         reloadBool.value = false;
         loading.value = true;
+        const loginUserInfo = useUserStore().getUserInfo;
+        searchParams.loginUserID = loginUserInfo.userID || '';
         getCompanyList(searchParams).then(data => {
           dataList.value = data.list;
           total.value = data.total;