PMCORE-2816: Direct link is not opening the case, after the task is being routed to the next task

complete pause unnassigned

fix unnassigned
This commit is contained in:
Rodrigo Quelca
2021-01-28 19:49:35 +00:00
parent 5ea5f16916
commit 12786d5790
3 changed files with 44 additions and 4 deletions

View File

@@ -137,7 +137,10 @@ export default {
} }
}; };
}, },
mounted() {}, mounted() {
// force to open case
this.openDefaultCase();
},
watch: {}, watch: {},
computed: { computed: {
/** /**
@@ -150,7 +153,22 @@ export default {
updated() {}, updated() {},
beforeCreate() {}, beforeCreate() {},
methods: { methods: {
/** /**
* Open a case when the component was mounted
*/
openDefaultCase() {
let params;
if(this.defaultOption) {
params = utils.getAllUrlParams(this.defaultOption);
if (params && params.app_uid && params.del_index) {
this.openCase({
APP_UID: params.app_uid,
DEL_INDEX: params.del_index
});
}
}
},
/**
* On row click event handler * On row click event handler
* @param {object} event * @param {object} event
*/ */

View File

@@ -130,7 +130,10 @@ export default {
} }
}; };
}, },
mounted() {}, mounted() {
// force to open case
this.openDefaultCase();
},
watch: {}, watch: {},
computed: { computed: {
/** /**

View File

@@ -58,6 +58,7 @@ import TaskCell from "../components/vuetable/TaskCell.vue";
import CasesFilter from "../components/search/CasesFilter"; import CasesFilter from "../components/search/CasesFilter";
import ModalClaimCase from "./modal/ModalClaimCase.vue"; import ModalClaimCase from "./modal/ModalClaimCase.vue";
import api from "./../api/index"; import api from "./../api/index";
import utils from "./../utils/utils";
export default { export default {
name: "Paused", name: "Paused",
@@ -130,7 +131,10 @@ export default {
} }
}; };
}, },
mounted() {}, mounted() {
// force to open case
this.openDefaultCase();
},
watch: {}, watch: {},
computed: { computed: {
/** /**
@@ -143,6 +147,21 @@ export default {
updated() {}, updated() {},
beforeCreate() {}, beforeCreate() {},
methods: { methods: {
/**
* Open a case when the component was mounted
*/
openDefaultCase() {
let params;
if(this.defaultOption) {
params = utils.getAllUrlParams(this.defaultOption);
if (params && params.app_uid && params.del_index) {
this.openCase({
APP_UID: params.app_uid,
DEL_INDEX: params.del_index
});
}
}
},
/** /**
* On row click event handler * On row click event handler
* @param {object} event * @param {object} event