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