|
|
@@ -95,10 +95,12 @@ import facetofaceApi, {
|
|
|
TRADE_STATUS_LABEL,
|
|
|
TRADE_STATUS_OPTIONS,
|
|
|
} from "@/api/module_payment/facetoface";
|
|
|
-import { useEnterpriseStore } from "@/store";
|
|
|
-import { ref, reactive, onMounted } from "vue";
|
|
|
+import { useEnterpriseStore, useUserStore } from "@/store";
|
|
|
+import { ref, reactive, computed, onMounted } from "vue";
|
|
|
|
|
|
const enterpriseStore = useEnterpriseStore();
|
|
|
+const userStore = useUserStore();
|
|
|
+const isPlatformUser = computed(() => userStore.is_platform_user);
|
|
|
|
|
|
const loading = ref(false);
|
|
|
const list = ref<any[]>([]);
|
|
|
@@ -150,7 +152,9 @@ function handleSearchReset() {
|
|
|
|
|
|
onMounted(async () => {
|
|
|
await enterpriseStore.loadEnterpriseList();
|
|
|
- searchForm.enterprise_id = enterpriseStore.getCurrentEnterprise?.enterprise_id;
|
|
|
+ if (!isPlatformUser.value) {
|
|
|
+ searchForm.enterprise_id = enterpriseStore.getCurrentEnterprise?.enterprise_id;
|
|
|
+ }
|
|
|
fetchList();
|
|
|
});
|
|
|
</script>
|