PMCORE-2505
This commit is contained in:
@@ -28,13 +28,14 @@
|
|||||||
<script>
|
<script>
|
||||||
import CustomSidebar from "./../components/menu/CustomSidebar";
|
import CustomSidebar from "./../components/menu/CustomSidebar";
|
||||||
import MyCases from "./MyCases";
|
import MyCases from "./MyCases";
|
||||||
|
import MyDocuments from "./MyDocuments";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "Home",
|
name: "Home",
|
||||||
components: {
|
components: {
|
||||||
CustomSidebar,
|
CustomSidebar,
|
||||||
MyCases
|
MyCases,
|
||||||
|
MyDocuments
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -53,7 +54,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
OnClickSidebarItem(item) {
|
OnClickSidebarItem(item) {
|
||||||
console.log(item);
|
this.page= item.item.page || "MyCases"
|
||||||
},
|
},
|
||||||
onResize() {
|
onResize() {
|
||||||
if (window.innerWidth <= 767) {
|
if (window.innerWidth <= 767) {
|
||||||
@@ -83,6 +84,4 @@ export default {
|
|||||||
.container {
|
.container {
|
||||||
max-width: 1500px;
|
max-width: 1500px;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
44
resources/assets/js/home/MyDocuments.vue
Normal file
44
resources/assets/js/home/MyDocuments.vue
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<iframe
|
||||||
|
:width="width"
|
||||||
|
ref="xCaseFrame"
|
||||||
|
frameborder="0"
|
||||||
|
:src="path"
|
||||||
|
:height="height"
|
||||||
|
allowfullscreen
|
||||||
|
></iframe>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "MyDocuments",
|
||||||
|
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/casesStartPage?action=documents",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
classBtn(cls) {
|
||||||
|
return "btn v-btn-request " + cls;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
</style>
|
||||||
@@ -1,130 +1,137 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"header": true,
|
"header": true,
|
||||||
"title": "Home",
|
"title": "Home",
|
||||||
"hiddenOnCollapse": true
|
"hiddenOnCollapse": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"href": "/",
|
"href": "/",
|
||||||
"title": "My Cases",
|
"title": "My Cases",
|
||||||
"icon": "fas fa-sliders-h"
|
"icon": "fas fa-sliders-h"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"href": "/advanced-search",
|
"href": "/advanced-search",
|
||||||
"title": "Advanced Search",
|
"title": "Advanced Search",
|
||||||
"icon": "fas fa-search"
|
"icon": "fas fa-search"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"header": true,
|
"header": true,
|
||||||
"title": "Tasks",
|
"title": "Tasks",
|
||||||
"hiddenOnCollapse": true
|
"hiddenOnCollapse": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"href": "/todo",
|
"href": "/todo",
|
||||||
"title": "Todo",
|
"title": "Todo",
|
||||||
"icon": "far fa-check-circle",
|
"icon": "far fa-check-circle",
|
||||||
"badge": {
|
"badge": {
|
||||||
"text": "23",
|
"text": "23",
|
||||||
"class": "badge-custom"
|
"class": "badge-custom"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/draft",
|
|
||||||
"title": "Draft",
|
|
||||||
"icon": "far fa-edit",
|
|
||||||
"badge": {
|
|
||||||
"text": "1",
|
|
||||||
"class": "badge-custom"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/paused",
|
|
||||||
"title": "Paused",
|
|
||||||
"icon": "far fa-pause-circle",
|
|
||||||
"badge": {
|
|
||||||
"text": "7",
|
|
||||||
"class": "badge-custom"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/unassigned",
|
|
||||||
"title": "Unassigned",
|
|
||||||
"icon": "fas fa-crosshairs",
|
|
||||||
"badge": {
|
|
||||||
"text": "99+",
|
|
||||||
"class": "badge-custom"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"header": true,
|
|
||||||
"title": "Supervisor Tasks",
|
|
||||||
"hiddenOnCollapse": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/batch-routing",
|
|
||||||
"title": "Batch Routing",
|
|
||||||
"icon": "fas fa-bars",
|
|
||||||
"disabled": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/task-Reassignments",
|
|
||||||
"title": "Task Reassignments",
|
|
||||||
"icon": "fas fa-arrows-alt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/page",
|
|
||||||
"title": "Dropdown Page",
|
|
||||||
"icon": "fa fa-list-ul",
|
|
||||||
"child": [
|
|
||||||
{
|
|
||||||
"href": "/page/sub-page-1",
|
|
||||||
"title": "Sub Page 01",
|
|
||||||
"icon": "fa fa-file-alt"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"href": "/page/sub-page-2",
|
|
||||||
"title": "Sub Page 02",
|
|
||||||
"icon": "fa fa-file-alt"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Multiple Level",
|
|
||||||
"icon": "fa fa-list-alt",
|
|
||||||
"child": [
|
|
||||||
{
|
|
||||||
"title": "page"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Level 2 ",
|
|
||||||
"child": [
|
|
||||||
{
|
|
||||||
"title": "page"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Page"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Page"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Another Level 2",
|
|
||||||
"child": [
|
|
||||||
{
|
|
||||||
"title": "Level 3",
|
|
||||||
"child": [
|
|
||||||
{
|
|
||||||
"title": "Page"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Page"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
|
{
|
||||||
|
"href": "/draft",
|
||||||
|
"title": "Draft",
|
||||||
|
"icon": "far fa-edit",
|
||||||
|
"badge": {
|
||||||
|
"text": "1",
|
||||||
|
"class": "badge-custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"href": "/paused",
|
||||||
|
"title": "Paused",
|
||||||
|
"icon": "far fa-pause-circle",
|
||||||
|
"badge": {
|
||||||
|
"text": "7",
|
||||||
|
"class": "badge-custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"href": "/unassigned",
|
||||||
|
"title": "Unassigned",
|
||||||
|
"icon": "fas fa-crosshairs",
|
||||||
|
"badge": {
|
||||||
|
"text": "99+",
|
||||||
|
"class": "badge-custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"header": true,
|
||||||
|
"title": "Supervisor Tasks",
|
||||||
|
"hiddenOnCollapse": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"href": "/batch-routing",
|
||||||
|
"title": "Batch Routing",
|
||||||
|
"icon": "fas fa-bars",
|
||||||
|
"disabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"href": "/my-documents",
|
||||||
|
"title": "My Documents",
|
||||||
|
"page": "my-documents",
|
||||||
|
"icon": "fas fa-bars",
|
||||||
|
"disabled": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"href": "/task-Reassignments",
|
||||||
|
"title": "Task Reassignments",
|
||||||
|
"icon": "fas fa-arrows-alt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"href": "/page",
|
||||||
|
"title": "Dropdown Page",
|
||||||
|
"icon": "fa fa-list-ul",
|
||||||
|
"child": [
|
||||||
|
{
|
||||||
|
"href": "/page/sub-page-1",
|
||||||
|
"title": "Sub Page 01",
|
||||||
|
"icon": "fa fa-file-alt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"href": "/page/sub-page-2",
|
||||||
|
"title": "Sub Page 02",
|
||||||
|
"icon": "fa fa-file-alt"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Multiple Level",
|
||||||
|
"icon": "fa fa-list-alt",
|
||||||
|
"child": [
|
||||||
|
{
|
||||||
|
"title": "page"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Level 2 ",
|
||||||
|
"child": [
|
||||||
|
{
|
||||||
|
"title": "page"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Page"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Page"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Another Level 2",
|
||||||
|
"child": [
|
||||||
|
{
|
||||||
|
"title": "Level 3",
|
||||||
|
"child": [
|
||||||
|
{
|
||||||
|
"title": "Page"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Page"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
use Eusebiu\JavaScript\Facades\ScriptVariables;
|
use Eusebiu\JavaScript\Facades\ScriptVariables;
|
||||||
use Illuminate\Support\Facades\View;
|
use Illuminate\Support\Facades\View;
|
||||||
|
use ProcessMaker\Core\System;
|
||||||
|
|
||||||
$conf = new Configurations();
|
$conf = new Configurations();
|
||||||
|
|
||||||
@@ -147,8 +148,12 @@ if (HIGHLIGHT_HOME_FOLDER_ENABLE) {
|
|||||||
// echo View::make('welcome');
|
// echo View::make('welcome');
|
||||||
$userCanAccess = 1;
|
$userCanAccess = 1;
|
||||||
global $translation;
|
global $translation;
|
||||||
// print 'var TRANSLATIONS = ' . G::json_encode($translation) . ';';
|
|
||||||
// echo view('Templates::Home.home', compact("userCanAccess"));
|
$pmDynaform = new PmDynaform();
|
||||||
|
ScriptVariables::add('SYS_CREDENTIALS', $pmDynaform->getCredentials());
|
||||||
|
ScriptVariables::add('SYS_SERVER', System::getHttpServerHostnameRequestsFrontEnd());
|
||||||
|
ScriptVariables::add('SYS_WORKSPACE', config("system.workspace"));
|
||||||
|
ScriptVariables::add('SYS_URI', SYS_URI);
|
||||||
ScriptVariables::add('SYS_LANG', SYS_LANG);
|
ScriptVariables::add('SYS_LANG', SYS_LANG);
|
||||||
ScriptVariables::add('TRANSLATIONS', $translation);
|
ScriptVariables::add('TRANSLATIONS', $translation);
|
||||||
echo View::make('Views::home.home', compact("userCanAccess"))->render();
|
echo View::make('Views::home.home', compact("userCanAccess"))->render();
|
||||||
|
|||||||
Reference in New Issue
Block a user