WIP
This commit is contained in:
@@ -2,6 +2,81 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 class="content-block main-title">Penyusunan DRP</h3>
|
<h3 class="content-block main-title">Penyusunan DRP</h3>
|
||||||
<p class="content-block">Penyusunan DRP</p>
|
<p class="content-block">Penyusunan DRP</p>
|
||||||
|
<Popup v-model:visible="isPopupUploadDokumenPendukungOpen" title="Upload Dokumen Pendukung">
|
||||||
|
<DxScrollView
|
||||||
|
>
|
||||||
|
<DxTextBox
|
||||||
|
:disabled="true"
|
||||||
|
:value="popupUploadDokumenPendukungData.tahun"
|
||||||
|
:width="100"
|
||||||
|
/>
|
||||||
|
<div style="display: flex; justify-content: space-between;">
|
||||||
|
<h3>Dokumen RKAP *</h3>
|
||||||
|
<button @click="openTambahDokumenRKAP">Tambah</button>
|
||||||
|
</div>
|
||||||
|
<DxDataGrid>
|
||||||
|
<DxToolbar>
|
||||||
|
<DxItem name="groupPanel" />
|
||||||
|
<DxItem name="searchPanel" location="before" />
|
||||||
|
<DxItem name="addRowButton" show-text="always" css-class="">
|
||||||
|
<DxTexts add-row="Tambah"></DxTexts>
|
||||||
|
</DxItem>
|
||||||
|
<DxItem name="exportButton" />
|
||||||
|
<DxItem name="columnChooserButton" />
|
||||||
|
</DxToolbar>
|
||||||
|
</DxDataGrid>
|
||||||
|
|
||||||
|
<div style="display: flex; justify-content: space-between;">
|
||||||
|
<h3>Dokumen Pendukung *</h3>
|
||||||
|
<button @click="openTambahDokumenPendukung">Tambah</button>
|
||||||
|
</div>
|
||||||
|
<DxDataGrid>
|
||||||
|
<DxToolbar>
|
||||||
|
<DxItem name="groupPanel" />
|
||||||
|
<DxItem name="searchPanel" location="before" />
|
||||||
|
<DxItem name="addRowButton" show-text="always" css-class="">
|
||||||
|
<DxTexts add-row="Tambah"></DxTexts>
|
||||||
|
</DxItem>
|
||||||
|
<DxItem name="exportButton" />
|
||||||
|
<DxItem name="columnChooserButton" />
|
||||||
|
</DxToolbar>
|
||||||
|
</DxDataGrid>
|
||||||
|
|
||||||
|
</DxScrollView>
|
||||||
|
</Popup>
|
||||||
|
|
||||||
|
|
||||||
|
<Popup v-model:visible="isPopupTambahDokumenPendukungOpen">
|
||||||
|
<DxScrollView>
|
||||||
|
<div>
|
||||||
|
<label>Jenis Dokumen</label>
|
||||||
|
<select name="" id="">
|
||||||
|
<option value="">1</option>
|
||||||
|
<option value="">2</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label>File/Dokumen</label>
|
||||||
|
<input type="file" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label>Keterangan</label>
|
||||||
|
<select name="" id="">
|
||||||
|
<option value="">1</option>
|
||||||
|
<option value="">2</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</DxScrollView>
|
||||||
|
</Popup>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="content-block">
|
<div class="content-block">
|
||||||
<div class="dx-card responsive-paddings">
|
<div class="dx-card responsive-paddings">
|
||||||
<div id="app-container">
|
<div id="app-container">
|
||||||
@@ -203,7 +278,7 @@
|
|||||||
text="Dokumen"
|
text="Dokumen"
|
||||||
icon="attach"
|
icon="attach"
|
||||||
hint="Dokumen Pendukung DRP"
|
hint="Dokumen Pendukung DRP"
|
||||||
:on-click="linkDokumen"
|
:on-click="openPopupUploadDokumenPendukung"
|
||||||
/>
|
/>
|
||||||
<DxButton
|
<DxButton
|
||||||
text="Detil"
|
text="Detil"
|
||||||
@@ -246,6 +321,7 @@ import DxDataGrid, {
|
|||||||
DxFilterRow,
|
DxFilterRow,
|
||||||
DxPager,
|
DxPager,
|
||||||
DxPaging,
|
DxPaging,
|
||||||
|
DxPopup,
|
||||||
DxSearchPanel,
|
DxSearchPanel,
|
||||||
DxToolbar,
|
DxToolbar,
|
||||||
DxTexts,
|
DxTexts,
|
||||||
@@ -254,9 +330,11 @@ import DxDataGrid, {
|
|||||||
DxLookup,
|
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";
|
||||||
import { DxPopup, DxToolbarItem, DxPosition } from "devextreme-vue/popup";
|
import DxTextBox from 'devextreme-vue/text-box';
|
||||||
|
import { DxPopup as Popup, DxToolbarItem, DxPosition } from "devextreme-vue/popup";
|
||||||
import { DxScrollView } from "devextreme-vue/scroll-view";
|
import { DxScrollView } from "devextreme-vue/scroll-view";
|
||||||
import { DxSelectBox } from "devextreme-vue/select-box";
|
import { DxSelectBox } from "devextreme-vue/select-box";
|
||||||
|
// import { DxGroupItem } from 'devextreme-vue/form';
|
||||||
|
|
||||||
const approveStatus = [
|
const approveStatus = [
|
||||||
{ name: "Penyusunan", value: 0 },
|
{ name: "Penyusunan", value: 0 },
|
||||||
@@ -339,8 +417,18 @@ export default {
|
|||||||
DxToolbarItem,
|
DxToolbarItem,
|
||||||
DxPosition,
|
DxPosition,
|
||||||
DxSelectBox,
|
DxSelectBox,
|
||||||
|
Popup,
|
||||||
|
DxTextBox,
|
||||||
|
// DxGroupItem,
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
openPopupUploadDokumenPendukung($event) {
|
||||||
|
this.isPopupUploadDokumenPendukungOpen = true;
|
||||||
|
this.popupUploadDokumenPendukungData = $event.row.data;
|
||||||
|
},
|
||||||
|
openTambahDokumenPendukung() {
|
||||||
|
this.isPopupTambahDokumenPendukungOpen = true;
|
||||||
|
},
|
||||||
linkDokumen($event) {
|
linkDokumen($event) {
|
||||||
console.log("event: ", $event.row.values);
|
console.log("event: ", $event.row.values);
|
||||||
this.popupVisible = true;
|
this.popupVisible = true;
|
||||||
@@ -362,6 +450,9 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//jsonUrl: URL,
|
//jsonUrl: URL,
|
||||||
|
isPopupUploadDokumenPendukungOpen: false,
|
||||||
|
popupUploadDokumenPendukungData: {},
|
||||||
|
isPopupTambahDokumenPendukungOpen: false,
|
||||||
dataSource,
|
dataSource,
|
||||||
dropdown: "",
|
dropdown: "",
|
||||||
popupVisible: false,
|
popupVisible: false,
|
||||||
@@ -396,4 +487,12 @@ export default {
|
|||||||
.dx-link.dx-icon-movetofolder.dx-link-icon {
|
.dx-link.dx-icon-movetofolder.dx-link-icon {
|
||||||
color: #0996c2;
|
color: #0996c2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#scrollview {
|
||||||
|
height: auto;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 300px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
19
src/views/drp/upload-dokumen-pendukung-form.vue
Normal file
19
src/views/drp/upload-dokumen-pendukung-form.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
Reference in New Issue
Block a user