PMCORE-2822: CaseLink does not work for parallel task

remove console.log

fix parallel

fix parallel unassigned

fix CR notes
This commit is contained in:
Rodrigo Quelca
2021-01-29 18:05:29 +00:00
parent 5d9b16c942
commit 0fd8747be5
6 changed files with 106 additions and 5 deletions

View File

@@ -236,6 +236,7 @@ export default {
self.searchTags.push(component.id); self.searchTags.push(component.id);
self.selected = component.id; self.selected = component.id;
self.itemModel[component.id] = component; self.itemModel[component.id] = component;
self.itemModel[component.id].autoShow = typeof item.autoShow !== "undefined" ? item.autoShow : true
} }
}); });
}, },

View File

@@ -143,6 +143,23 @@ export default {
}); });
this.$emit("cleanDefaultOption"); this.$emit("cleanDefaultOption");
} }
//force to search in the parallel tasks
if (params && params.openapplicationuid) {
this.onUpdateFilters({
params: [
{
fieldId: "caseNumber",
filterVar: "caseNumber",
label: "",
options:[],
value: params.openapplicationuid,
autoShow: false
}
],
refresh: true
});
this.$emit("cleanDefaultOption");
}
} }
}, },
/** /**
@@ -234,7 +251,7 @@ export default {
DEL_INDEX: item.DEL_INDEX, DEL_INDEX: item.DEL_INDEX,
PRO_UID: item.PRO_UID, PRO_UID: item.PRO_UID,
TAS_UID: item.TAS_UID, TAS_UID: item.TAS_UID,
ACTION: "draft", ACTION: "draft"
}); });
this.$emit("onUpdatePage", "XCase"); this.$emit("onUpdatePage", "XCase");
}, },

View File

@@ -76,7 +76,7 @@ export default {
ModalUnpauseCase, ModalUnpauseCase,
CasesFilter, CasesFilter,
}, },
props: {}, props: ["defaultOption"],
data() { data() {
return { return {
newCase: { newCase: {
@@ -167,6 +167,23 @@ export default {
}); });
this.$emit("cleanDefaultOption"); this.$emit("cleanDefaultOption");
} }
//force to search in the parallel tasks
if (params && params.openapplicationuid) {
this.onUpdateFilters({
params: [
{
fieldId: "caseNumber",
filterVar: "caseNumber",
label: "",
options:[],
value: params.openapplicationuid,
autoShow: false
}
],
refresh: true
});
this.$emit("cleanDefaultOption");
}
} }
}, },
/** /**
@@ -255,6 +272,21 @@ export default {
}); });
return data; return data;
}, },
/**
* Open selected cases in the inbox
*
* @param {object} item
*/
openCase(item) {
this.$emit("onUpdateDataCase", {
APP_UID: item.APP_UID,
DEL_INDEX: item.DEL_INDEX,
PRO_UID: item.PRO_UID,
TAS_UID: item.TAS_UID,
ACTION: "todo"
});
this.$emit("onUpdatePage", "XCase");
},
/** /**
* Open case detail * Open case detail
* *

View File

@@ -160,6 +160,23 @@ export default {
}); });
this.$emit("cleanDefaultOption"); this.$emit("cleanDefaultOption");
} }
//force to search in the parallel tasks
if (params && params.openapplicationuid) {
this.onUpdateFilters({
params: [
{
fieldId: "caseNumber",
filterVar: "caseNumber",
label: "",
options:[],
value: params.openapplicationuid,
autoShow: false
}
],
refresh: true
});
this.$emit("cleanDefaultOption");
}
} }
}, },
/** /**
@@ -259,7 +276,7 @@ export default {
DEL_INDEX: item.DEL_INDEX, DEL_INDEX: item.DEL_INDEX,
PRO_UID: item.PRO_UID, PRO_UID: item.PRO_UID,
TAS_UID: item.TAS_UID, TAS_UID: item.TAS_UID,
ACTION: "todo", ACTION: "todo"
}); });
this.$emit("onUpdatePage", "XCase"); this.$emit("onUpdatePage", "XCase");
}, },

View File

@@ -70,7 +70,7 @@ export default {
ModalClaimCase, ModalClaimCase,
CasesFilter, CasesFilter,
}, },
props: {}, props: ["defaultOption"],
data() { data() {
return { return {
newCase: { newCase: {
@@ -161,6 +161,23 @@ export default {
}); });
this.$emit("cleanDefaultOption"); this.$emit("cleanDefaultOption");
} }
//force to search in the parallel tasks
if (params && params.openapplicationuid) {
this.onUpdateFilters({
params: [
{
fieldId: "caseNumber",
filterVar: "caseNumber",
label: "",
options:[],
value: params.openapplicationuid,
autoShow: false
}
],
refresh: true
});
this.$emit("cleanDefaultOption");
}
} }
}, },
/** /**
@@ -257,6 +274,21 @@ export default {
}); });
}); });
}, },
/**
* Open selected cases in the inbox
*
* @param {object} item
*/
openCase(item) {
this.$emit("onUpdateDataCase", {
APP_UID: item.APP_UID,
DEL_INDEX: item.DEL_INDEX,
PRO_UID: item.PRO_UID,
TAS_UID: item.TAS_UID,
ACTION: "todo"
});
this.$emit("onUpdatePage", "XCase");
},
/** /**
* Open case detail * Open case detail
* *

View File

@@ -3,6 +3,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; use ProcessMaker\Core\System;
use ProcessMaker\Model\Application;
$conf = new Configurations(); $conf = new Configurations();
@@ -95,8 +96,9 @@ if (isset($_SESSION['__OPEN_APPLICATION_UID__'])) {
$openCaseIE = true; $openCaseIE = true;
$defaultOption = '../cases/open?APP_UID=' . $openAppUid . '&DEL_INDEX=' . $arrayDelIndex[0] . '&action=' . $action; $defaultOption = '../cases/open?APP_UID=' . $openAppUid . '&DEL_INDEX=' . $arrayDelIndex[0] . '&action=' . $action;
} else { } else {
$appNumber = Application::getCaseNumber($openAppUid);
//We will to show the list: more than one thread //We will to show the list: more than one thread
$defaultOption = '../cases/casesListExtJs?action=' . $action . '&openApplicationUid=' . $openAppUid; $defaultOption = '../cases/casesListExtJs?action=' . $action . '&openApplicationUid=' . $appNumber;
} }
} else { } else {
if (isset($_GET['id'])) { if (isset($_GET['id'])) {