direct case link - case:paused

Update observations

update
This commit is contained in:
henry jordan
2022-06-22 16:05:04 +00:00
parent ee4e4db1c6
commit 5b4600636b
4 changed files with 9 additions and 6 deletions

View File

@@ -296,13 +296,11 @@ export default {
refresh: false,
});
this.$emit("cleanDefaultOption");
api.cases.pendingtask({APP_NUMBER:params.openapplicationuid}).then((response) => {
if (response.data && response.data[0] && response.data[0]['USR_ID'] == 0) {
this.claimCase(response.data[0]);
}
})
});
}
}
},

View File

@@ -411,7 +411,7 @@ export default {
},
mounted() {
let that = this;
// force to open case
// force to open case paused
this.openDefaultCase();
Event.$on('vue-tables.paused.sorted', function (data) {
that.$emit("updateSettings", {
@@ -475,7 +475,7 @@ export default {
if(this.defaultOption) {
params = utils.getAllUrlParams(this.defaultOption);
if (params && params.app_uid && params.del_index) {
this.openCase({
this.showModalUnpauseCase({
APP_UID: params.app_uid,
DEL_INDEX: params.del_index
});

View File

@@ -458,6 +458,11 @@ export default {
refresh: true
};
this.$emit("cleanDefaultOption");
api.cases.pendingtask({APP_NUMBER:params.openapplicationuid}).then((response) => {
if (response.data && response.data.length == 1 && response.data[0] && response.data[0]['USR_ID'] == 0) {
this.claimCase(response.data[0]);
}
});
this.onUpdateFilters(filter);
}
}

View File

@@ -2551,7 +2551,7 @@ class Cases
// Filter specific case
$query->case($caseNumber);
// Filter specific index
if (is_int($index)) {
if ($index > 0) {
$query->index($index);
}
$results = $query->get();