PMCORE-3442:FE The PMFCaseLink does not work when the action=sent

Error index

Corrections
This commit is contained in:
Fabio Guachalla
2021-10-22 16:21:04 -04:00
committed by fabio
parent 9242c78268
commit 7e77ecb5a2
8 changed files with 38 additions and 23 deletions

View File

@@ -65,7 +65,7 @@ import TaskReassignments from "./TaskReassignments";
import AdvancedSearch from "./AdvancedSearch/AdvancedSearch.vue";
import LegacyFrame from "./LegacyFrame";
import CustomCaseList from "./CustomCaseList/CustomCaseList.vue"
import utils from "../utils/utils"
import api from "./../api/index";
import eventBus from './EventBus/eventBus'
import _ from "lodash";
@@ -286,7 +286,8 @@ export default {
* Set default cases menu option
*/
setDefaultCasesMenu(data) {
let menuItem = _.find(data, function(o) {
let params,
menuItem = _.find(data, function(o) {
return o.id === window.config._nodeId;
});
if (menuItem && menuItem.href) {
@@ -295,8 +296,8 @@ export default {
} else {
this.page = "MyCases";
}
if (window.config._nodeId === "CASES_SENT" && this.defaultOption.indexOf('openApplicationUid') > 0) {
this.cleanDefaultOption();
params = utils.getAllUrlParams(this.defaultOption);
if (params.action === 'mycases' && params.filter === '') {
this.showAlert(this.$i18n.t("ID_NO_PERMISSION_NO_PARTICIPATED_CASES"));
}
this.settings = this.config.setting[this.page];