PMCORE-2509

This commit is contained in:
Henry Jordan
2020-12-03 12:39:57 +00:00
parent 7304da3651
commit 1ef8804ab2
4 changed files with 92 additions and 45 deletions

View File

@@ -0,0 +1,44 @@
<template>
<div>
<iframe
:width="width"
ref="xIFrame"
frameborder="0"
:src="path"
:height="height"
allowfullscreen
></iframe>
</div>
</template>
<script>
export default {
name: "BatchRouting",
components: {},
props: {
data: Object,
},
mounted() {
this.height = window.innerHeight - this.diffHeight;
},
data() {
return {
height: "100%",
width: "100%",
diffHeight: 10,
path:
window.config.SYS_SERVER +
window.config.SYS_URI +
"cases/casesConsolidatedListExtJs?action=consolidated",
};
},
methods: {
classBtn(cls) {
return "btn v-btn-request " + cls;
},
},
};
</script>
<style>
</style>

View File

@@ -23,17 +23,19 @@
import CustomSidebar from "./../components/menu/CustomSidebar"; import CustomSidebar from "./../components/menu/CustomSidebar";
import MyCases from "./MyCases"; import MyCases from "./MyCases";
import MyDocuments from "./MyDocuments"; import MyDocuments from "./MyDocuments";
import BatchRouting from "./BatchRouting";
export default { export default {
name: "Home", name: "Home",
components: { components: {
CustomSidebar, CustomSidebar,
MyCases, MyCases,
MyDocuments MyDocuments,
BatchRouting,
}, },
data() { data() {
return { return {
page:"MyCases", page: "MyCases",
menu: [], menu: [],
hideToggle: true, hideToggle: true,
collapsed: false, collapsed: false,
@@ -48,7 +50,7 @@ export default {
}, },
methods: { methods: {
OnClickSidebarItem(item) { OnClickSidebarItem(item) {
this.page= item.item.page || "MyCases" this.page = item.item.id || "MyCases";
}, },
onResize() { onResize() {
if (window.innerWidth <= 767) { if (window.innerWidth <= 767) {
@@ -66,7 +68,7 @@ export default {
*/ */
onToggleCollapse(collapsed) { onToggleCollapse(collapsed) {
this.collapsed = collapsed; this.collapsed = collapsed;
} },
}, },
}; };
</script> </script>

View File

@@ -2,7 +2,7 @@
<div> <div>
<iframe <iframe
:width="width" :width="width"
ref="xCaseFrame" ref="xIFrame"
frameborder="0" frameborder="0"
:src="path" :src="path"
:height="height" :height="height"

View File

@@ -63,13 +63,14 @@
{ {
"href": "/batch-routing", "href": "/batch-routing",
"title": "Batch Routing", "title": "Batch Routing",
"id": "batch-routing",
"icon": "fas fa-bars", "icon": "fas fa-bars",
"disabled": true "disabled": false
}, },
{ {
"href": "/my-documents", "href": "/my-documents",
"title": "My Documents", "title": "My Documents",
"page": "my-documents", "id": "my-documents",
"icon": "fas fa-bars", "icon": "fas fa-bars",
"disabled": false "disabled": false
}, },