feat: migrate query agency volume procedure
This commit is contained in:
parent
bae2de2478
commit
59efebd022
|
@ -4,7 +4,7 @@ import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
import VnTable from 'src/components/ui/VnTable.vue';
|
import VnTable from 'src/components/ui/VnTable.vue';
|
||||||
|
|
||||||
const jApi = inject('jApi');
|
const api = inject('api');
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
||||||
const packages = ref([]);
|
const packages = ref([]);
|
||||||
|
@ -43,7 +43,12 @@ const columns = computed(() => [
|
||||||
|
|
||||||
const getPackages = async () => {
|
const getPackages = async () => {
|
||||||
try {
|
try {
|
||||||
const data = await jApi.query('CALL vn.agencyVolume()');
|
const { data } = await api.post(
|
||||||
|
'applications/agencyVolume/execute-proc',
|
||||||
|
{
|
||||||
|
schema: 'vn'
|
||||||
|
}
|
||||||
|
);
|
||||||
packages.value = data;
|
packages.value = data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
Loading…
Reference in New Issue