Initialize Master Template
This commit is contained in:
@@ -20,7 +20,10 @@ import PermissionsConfig from './views/master-config/permissions-config';
|
|||||||
import User from './views/user-page';
|
import User from './views/user-page';
|
||||||
|
|
||||||
/* Master Template */
|
/* Master Template */
|
||||||
import RksDaftar from './views/rks-daftar';
|
import RksDaftar from './views/master-template/rks-daftar.vue';
|
||||||
|
import RksTemplate from './views/master-template/rks-template.vue';
|
||||||
|
import KontrakDaftar from './views/master-template/kontrak-daftar.vue';
|
||||||
|
import KontrakTemplate from './views/master-template/kontrak-template.vue';
|
||||||
|
|
||||||
/* DRP */
|
/* DRP */
|
||||||
import DrpPenyusunan from './views/drp/drp-penyusunan';
|
import DrpPenyusunan from './views/drp/drp-penyusunan';
|
||||||
@@ -282,7 +285,7 @@ const router = new createRouter({
|
|||||||
component: PermissionsConfig
|
component: PermissionsConfig
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/rks-daftar",
|
path: "/master-template/rks-daftar",
|
||||||
name: "rks-daftar",
|
name: "rks-daftar",
|
||||||
meta: {
|
meta: {
|
||||||
requiresAuth: true,
|
requiresAuth: true,
|
||||||
@@ -290,6 +293,33 @@ const router = new createRouter({
|
|||||||
},
|
},
|
||||||
component: RksDaftar
|
component: RksDaftar
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/master-template/rks-template",
|
||||||
|
name: "rks-template",
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
layout: defaultLayout
|
||||||
|
},
|
||||||
|
component: RksTemplate,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/master-template/kontrak-daftar",
|
||||||
|
name: "kontrak-daftar-isi",
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
layout: defaultLayout
|
||||||
|
},
|
||||||
|
component: KontrakDaftar,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/master-template/kontrak-template",
|
||||||
|
name: "kontrak-template",
|
||||||
|
meta: {
|
||||||
|
requiresAuth: true,
|
||||||
|
layout: defaultLayout
|
||||||
|
},
|
||||||
|
component: KontrakTemplate,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/drp/drp-penyusunan",
|
path: "/drp/drp-penyusunan",
|
||||||
name: "drp-penyusunan",
|
name: "drp-penyusunan",
|
||||||
|
5
src/views/master-template/kontrak-daftar.vue
Normal file
5
src/views/master-template/kontrak-daftar.vue
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
5
src/views/master-template/kontrak-template.vue
Normal file
5
src/views/master-template/kontrak-template.vue
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
@@ -6,7 +6,7 @@
|
|||||||
<div class="dx-card responsive-paddings">
|
<div class="dx-card responsive-paddings">
|
||||||
<div id="app-container">
|
<div id="app-container">
|
||||||
<DxDataGrid ref="currDataGrid"
|
<DxDataGrid ref="currDataGrid"
|
||||||
:data-source="customDataSource"
|
:data-source="customDataSource"
|
||||||
key-expr="id"
|
key-expr="id"
|
||||||
:allow-column-reordering="true"
|
:allow-column-reordering="true"
|
||||||
:column-auto-width="true"
|
:column-auto-width="true"
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
:use-icons="true"
|
:use-icons="true"
|
||||||
form="popup"
|
form="popup"
|
||||||
mode="popup">
|
mode="popup">
|
||||||
<DxTexts
|
<DxTexts
|
||||||
add-row="Tambah"
|
add-row="Tambah"
|
||||||
edit-row="Ubah"
|
edit-row="Ubah"
|
||||||
delete-row="Hapus"
|
delete-row="Hapus"
|
||||||
@@ -58,12 +58,12 @@
|
|||||||
<DxItem name="columnChooserButton" />
|
<DxItem name="columnChooserButton" />
|
||||||
</DxToolbar>
|
</DxToolbar>
|
||||||
<DxPaging :page-size="5" />
|
<DxPaging :page-size="5" />
|
||||||
<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"
|
||||||
info-text="Hal {0} dari {1} ({2} data)" />
|
info-text="Hal {0} dari {1} ({2} data)" />
|
||||||
<DxFilterRow :visible="false" />
|
<DxFilterRow :visible="false" />
|
||||||
@@ -90,7 +90,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DxDataGrid, {
|
import DxDataGrid, {
|
||||||
DxEditing,
|
DxEditing,
|
||||||
DxItem,
|
DxItem,
|
||||||
@@ -199,13 +199,13 @@ export default {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
onCellPrepared(e) {
|
onCellPrepared(e) {
|
||||||
var isEditing = e.row.isEditing, $links = e.cellElement.find(".dx-link");
|
var isEditing = e.row.isEditing, $links = e.cellElement.find(".dx-link");
|
||||||
|
|
||||||
$links.text("");
|
$links.text("");
|
||||||
|
|
||||||
if(isEditing){
|
if(isEditing){
|
||||||
$links.filter(".dx-link-save").addClass("dx-icon-save").addClass("yellowClass");
|
$links.filter(".dx-link-save").addClass("dx-icon-save").addClass("yellowClass");
|
||||||
$links.filter(".dx-link-cancel").addClass("dx-icon-revert").addClass("yellowClass");
|
$links.filter(".dx-link-cancel").addClass("dx-icon-revert").addClass("yellowClass");
|
||||||
@@ -215,7 +215,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
//jsonUrl: URL,
|
//jsonUrl: URL,
|
5
src/views/master-template/rks-template.vue
Normal file
5
src/views/master-template/rks-template.vue
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
Reference in New Issue
Block a user