Fix lookup approval status
This commit is contained in:
parent
33c1247c85
commit
d1362cc6fd
@ -48,7 +48,7 @@
|
|||||||
<DxPager
|
<DxPager
|
||||||
:visible="true"
|
:visible="true"
|
||||||
:allowed-page-sizes="[5, 10, 50]"
|
:allowed-page-sizes="[5, 10, 50]"
|
||||||
:display-mode="compact"
|
display-mode="compact"
|
||||||
:show-page-size-selector="true"
|
:show-page-size-selector="true"
|
||||||
:show-info="true"
|
:show-info="true"
|
||||||
:show-navigation-buttons="true"
|
:show-navigation-buttons="true"
|
||||||
@ -56,8 +56,8 @@
|
|||||||
<DxFilterRow :visible="true" />
|
<DxFilterRow :visible="true" />
|
||||||
<DxColumn cell-template="row-cell-template" caption="No" :width="45"></DxColumn>
|
<DxColumn cell-template="row-cell-template" caption="No" :width="45"></DxColumn>
|
||||||
<DxColumn data-field="tahun" caption="Tahun DRP"></DxColumn>
|
<DxColumn data-field="tahun" caption="Tahun DRP"></DxColumn>
|
||||||
<DxColumn data-field="isApprove" caption="Status Approve" editor-type="dxCheckBox">
|
<DxColumn data-field="approveStatus" caption="Status Approve" editor-type="dxCheckBox">
|
||||||
<dx-lookup
|
<DxLookup
|
||||||
display-expr="name"
|
display-expr="name"
|
||||||
value-expr="value"
|
value-expr="value"
|
||||||
:data-source="approveStatus"
|
:data-source="approveStatus"
|
||||||
@ -75,7 +75,7 @@
|
|||||||
text="Detil"
|
text="Detil"
|
||||||
icon="search"
|
icon="search"
|
||||||
hint="Detil/Konten DRP "
|
hint="Detil/Konten DRP "
|
||||||
:on-click="linkDetil"
|
:on-click="linkDetail"
|
||||||
/>
|
/>
|
||||||
<DxButton
|
<DxButton
|
||||||
text="Kirim"
|
text="Kirim"
|
||||||
@ -88,7 +88,7 @@
|
|||||||
<DxButton hint="detail" icon="copy"/>
|
<DxButton hint="detail" icon="copy"/>
|
||||||
</DxColumn>
|
</DxColumn>
|
||||||
<template #row-cell-template="{ data }">
|
<template #row-cell-template="{ data }">
|
||||||
<DxText>{{ data.rowIndex +1 }}</DxText>
|
<DxTexts>{{ data.rowIndex +1 }}</DxTexts>
|
||||||
</template>
|
</template>
|
||||||
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" :width="300" placeholder="Cari Penyusunan DRP..."/>
|
<DxSearchPanel :visible="true" :highlight-case-sensitive="true" :width="300" placeholder="Cari Penyusunan DRP..."/>
|
||||||
</DxDataGrid>
|
</DxDataGrid>
|
||||||
@ -112,10 +112,12 @@ import DxDataGrid, {
|
|||||||
DxToolbar,
|
DxToolbar,
|
||||||
DxTexts,
|
DxTexts,
|
||||||
DxButton,
|
DxButton,
|
||||||
DxRequiredRule
|
DxRequiredRule,
|
||||||
|
DxLookup,
|
||||||
} from "devextreme-vue/data-grid";
|
} from "devextreme-vue/data-grid";
|
||||||
import CustomStore from "devextreme/data/custom_store";
|
import CustomStore from "devextreme/data/custom_store";
|
||||||
|
|
||||||
|
|
||||||
const approveStatus = [
|
const approveStatus = [
|
||||||
{ name: "Penyusunan", value: 0 },
|
{ name: "Penyusunan", value: 0 },
|
||||||
{ name: "Approval VP", value: 1 },
|
{ name: "Approval VP", value: 1 },
|
||||||
@ -189,7 +191,8 @@ export default {
|
|||||||
DxToolbar,
|
DxToolbar,
|
||||||
DxTexts,
|
DxTexts,
|
||||||
DxButton,
|
DxButton,
|
||||||
DxRequiredRule
|
DxRequiredRule,
|
||||||
|
DxLookup,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
linkDokumen : function() {
|
linkDokumen : function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user