PMCORE-4027[28891-29654] Case history and case data showing previous case information

Corrections

add overlay

CR
This commit is contained in:
Fabio Guachalla
2022-12-21 11:10:01 -04:00
parent ab9e8d9bc0
commit 990f704f65
8 changed files with 24 additions and 19 deletions

View File

@@ -5,7 +5,7 @@
ref="IFrameCaseHistory" ref="IFrameCaseHistory"
title="IFrameCaseHistory" title="IFrameCaseHistory"
frameborder="0" frameborder="0"
:src="path" :src="url"
:height="height" :height="height"
allowfullscreen allowfullscreen
></iframe> ></iframe>
@@ -16,25 +16,22 @@
export default { export default {
name: "CaseHistory", name: "CaseHistory",
props: { props: {
data: Object, historyData: Object,
}, },
data() { data() {
return { return {
url: "",
height: "500px", height: "500px",
width: "100%", width: "100%",
diffHeight: 10, diffHeight: 10,
}; };
}, },
computed: { computed: {},
path() { mounted() {
let url = this.url = window.config.SYS_SERVER_AJAX +
window.config.SYS_SERVER_AJAX + window.config.SYS_URI +
window.config.SYS_URI + `cases/ajaxListener?action=caseHistory&appUid=` + this.data.APP_UID;
`cases/ajaxListener?action=caseHistory`;
return url;
},
}, },
mounted() {},
methods: { methods: {
classBtn(cls) { classBtn(cls) {
return "btn v-btn-request " + cls; return "btn v-btn-request " + cls;

View File

@@ -1,6 +1,6 @@
<template> <template>
<section <section
v-show="isActive" v-if="isActive"
:aria-hidden="!isActive" :aria-hidden="!isActive"
class="tabs-component-panel" class="tabs-component-panel"
:id="computedId" :id="computedId"

View File

@@ -66,7 +66,6 @@ export default {
const previousSelectedTabHash = expiringStorage.get(this.storageKey); const previousSelectedTabHash = expiringStorage.get(this.storageKey);
if (this.findTab(previousSelectedTabHash)) { if (this.findTab(previousSelectedTabHash)) {
this.selectTab(previousSelectedTabHash); this.selectTab(previousSelectedTabHash);
return;
} }
if ( if (
this.options.defaultTabHash !== null && this.options.defaultTabHash !== null &&

View File

@@ -25,6 +25,7 @@
<modal-new-request ref="newRequest"></modal-new-request> <modal-new-request ref="newRequest"></modal-new-request>
<settings-popover :options="formatColumnSettings(options.headings)" target="pm-dr-column-settings" @onUpdateColumnSettings="onUpdateColumnSettings" :key="random+1" :selected="formatColumnSelected(columns)"/> <settings-popover :options="formatColumnSettings(options.headings)" target="pm-dr-column-settings" @onUpdateColumnSettings="onUpdateColumnSettings" :key="random+1" :selected="formatColumnSelected(columns)"/>
<b-overlay :show="showOverlay" rounded="sm">
<v-server-table <v-server-table
:data="tableData" :data="tableData"
:columns="columns" :columns="columns"
@@ -79,6 +80,7 @@
</div> </div>
</div> </div>
</v-server-table> </v-server-table>
</b-overlay>
<vue-simple-context-menu <vue-simple-context-menu
:elementId="idContextMenu" :elementId="idContextMenu"
:options="contextMenuItems" :options="contextMenuItems"
@@ -201,7 +203,7 @@ export default {
}, },
sortable: ["case_number"], sortable: ["case_number"],
requestFunction(data) { requestFunction(data) {
return this.$parent.$parent.getCasesForVueTable(data); return this.$parent.$parent.$parent.getCasesForVueTable(data);
}, },
customFilters: ["myfilter"] customFilters: ["myfilter"]
}, },
@@ -214,7 +216,8 @@ export default {
"DRAFT": this.$i18n.t("ID_IN_DRAFT"), "DRAFT": this.$i18n.t("ID_IN_DRAFT"),
"PAUSED": this.$i18n.t("ID_PAUSED"), "PAUSED": this.$i18n.t("ID_PAUSED"),
"UNASSIGNED": this.$i18n.t("ID_UNASSIGNED") "UNASSIGNED": this.$i18n.t("ID_UNASSIGNED")
} },
showOverlay: false,
}; };
}, },
mounted() { mounted() {
@@ -239,6 +242,7 @@ export default {
}, 400); }, 400);
} else if (self.clickCount === 2) { } else if (self.clickCount === 2) {
clearTimeout(self.singleClickTimer); clearTimeout(self.singleClickTimer);
self.showOverlay = true;
self.clickCount = 0; self.clickCount = 0;
self.openCaseDetail(event.row); self.openCaseDetail(event.row);
} }

View File

@@ -27,6 +27,7 @@
:key="random + 1" :key="random + 1"
:selected="formatColumnSelected(columns)" :selected="formatColumnSelected(columns)"
/> />
<b-overlay :show="showOverlay" rounded="sm">
<v-server-table <v-server-table
:data="tableData" :data="tableData"
:columns="columns" :columns="columns"
@@ -76,6 +77,7 @@
</div> </div>
</div> </div>
</v-server-table> </v-server-table>
</b-overlay>
<ModalComments <ModalComments
ref="modal-comments" ref="modal-comments"
@postNotes="onPostNotes" @postNotes="onPostNotes"
@@ -206,7 +208,7 @@ export default {
? this.settings.orderBy ? this.settings.orderBy
: {}, : {},
requestFunction(data) { requestFunction(data) {
return this.$parent.$parent.getCasesForVueTable(data); return this.$parent.$parent.$parent.getCasesForVueTable(data);
}, },
settings: { settings: {
actions: { actions: {
@@ -235,6 +237,7 @@ export default {
UNASSIGNED: this.$i18n.t("ID_UNASSIGNED"), UNASSIGNED: this.$i18n.t("ID_UNASSIGNED"),
}, },
clearSortState: this.settings && this.settings.orderBy && this.settings.orderBy.column, clearSortState: this.settings && this.settings.orderBy && this.settings.orderBy.column,
showOverlay: false,
}; };
}, },
mounted() { mounted() {
@@ -323,6 +326,7 @@ export default {
}, 400); }, 400);
} else if (self.clickCount === 2) { } else if (self.clickCount === 2) {
clearTimeout(self.singleClickTimer); clearTimeout(self.singleClickTimer);
self.showOverlay = true;
self.clickCount = 0; self.clickCount = 0;
self.openCaseDetail(event.row); self.openCaseDetail(event.row);
} }

View File

@@ -15,7 +15,7 @@
</ProcessMap> </ProcessMap>
</tab> </tab>
<tab :name="$t('ID_CASE_HISTORY')"> <tab :name="$t('ID_CASE_HISTORY')">
<CaseHistory :data="dataCase"> </CaseHistory> <CaseHistory :historyData="dataCase"> </CaseHistory>
</tab> </tab>
<tab :name="$t('ID_DYNAFORM_HISTORY')"> <tab :name="$t('ID_DYNAFORM_HISTORY')">
<ChangeLog :caseData="dataCase"> </ChangeLog> <ChangeLog :caseData="dataCase"> </ChangeLog>

View File

@@ -8,7 +8,7 @@ $actionAjax = isset($_REQUEST['actionAjax']) ? $_REQUEST['actionAjax'] : null;
switch ($actionAjax) { switch ($actionAjax) {
case 'historyGridList_JXP': case 'historyGridList_JXP':
global $G_PUBLISH; global $G_PUBLISH;
$appUid = $_SESSION['APPLICATION']; $appUid = isset($_REQUEST['appUid']) ? $_REQUEST['appUid'] : $_SESSION['APPLICATION'];
$case = new ClassesCases(); $case = new ClassesCases();
$fields = $case->loadCase($appUid); $fields = $case->loadCase($appUid);
$criteria = Cases::getTransferHistoryCriteria($fields['APP_NUMBER']); $criteria = Cases::getTransferHistoryCriteria($fields['APP_NUMBER']);

View File

@@ -179,11 +179,12 @@
//!!historyGridList|changeLog //!!historyGridList|changeLog
function historyGridList(){ function historyGridList(){
var appUid = this.window.location.search.substr(27);
store = new Ext.data.GroupingStore({ store = new Ext.data.GroupingStore({
proxy : new Ext.data.HttpProxy proxy : new Ext.data.HttpProxy
( (
{ {
url: 'caseHistory_Ajax.php?actionAjax=historyGridList_JXP' url: 'caseHistory_Ajax.php?actionAjax=historyGridList_JXP&appUid=' + appUid
} }
), ),