direct case link - case:paused
Update observations update
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
})
|
||||
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user