Check ulang integrasi api dan master data, master config dan drp

This commit is contained in:
Titan Hadiyan
2023-06-01 11:14:45 +07:00
parent 0cd6aa1189
commit 9db7846edb
25 changed files with 106 additions and 707 deletions

View File

@@ -65,10 +65,13 @@
<DxFilterRow :visible="false" />
<DxColumn data-field="id" caption="No" :width="45"></DxColumn>
<DxColumn data-field="instansiId" caption="Instansi">
<DxLookup display-expr="instansi" value-expr="id" :data-source="instansis" :search-enabled="true" />
<DxLookup
:data-source="instansis"
display-expr="instansi"
value-expr="id"/>
</DxColumn>
<DxColumn data-field="bidangId" caption="Bidang">
<DxLookup display-expr="bidang" value-expr="id" :data-source="bidangs" :search-enabled="true" />
<DxLookup display-expr="bidang" value-expr="id" :data-source="bidangs"/>
</DxColumn>
<DxColumn data-field="jabatan" caption="Nama Jabatan"></DxColumn>
<DxColumn data-field="keterangan" caption="Keterangan"></DxColumn>
@@ -110,7 +113,7 @@ const instansiOptions = new CustomStore({
key: 'id',
load:() => {
return fetch(URL_instansi+'?size=1000')
return fetch(URL_instansi+process.env.VUE_APP_PAGE_SIZE)
.then((response) => response.json())
.then(response => {
console.log(response.data);
@@ -141,7 +144,7 @@ const bidangOptions = new CustomStore({
key: 'id',
load:() => {
return fetch(URL_bidang+'?size=1000')
return fetch(URL_bidang+process.env.VUE_APP_PAGE_SIZE)
.then((response) => response.json())
.then(response => {
console.log(response.data);
@@ -172,7 +175,7 @@ const dataSource = new CustomStore({
key: 'id',
load: () => {
return fetch(URL+'?size=100')
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
.then((response) => response.json())
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
},