direct case link - case:paused
Update observations update
This commit is contained in:
@@ -296,13 +296,11 @@ export default {
|
|||||||
refresh: false,
|
refresh: false,
|
||||||
});
|
});
|
||||||
this.$emit("cleanDefaultOption");
|
this.$emit("cleanDefaultOption");
|
||||||
|
|
||||||
api.cases.pendingtask({APP_NUMBER:params.openapplicationuid}).then((response) => {
|
api.cases.pendingtask({APP_NUMBER:params.openapplicationuid}).then((response) => {
|
||||||
if (response.data && response.data[0] && response.data[0]['USR_ID'] == 0) {
|
if (response.data && response.data[0] && response.data[0]['USR_ID'] == 0) {
|
||||||
this.claimCase(response.data[0]);
|
this.claimCase(response.data[0]);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
// force to open case
|
// force to open case paused
|
||||||
this.openDefaultCase();
|
this.openDefaultCase();
|
||||||
Event.$on('vue-tables.paused.sorted', function (data) {
|
Event.$on('vue-tables.paused.sorted', function (data) {
|
||||||
that.$emit("updateSettings", {
|
that.$emit("updateSettings", {
|
||||||
@@ -475,7 +475,7 @@ export default {
|
|||||||
if(this.defaultOption) {
|
if(this.defaultOption) {
|
||||||
params = utils.getAllUrlParams(this.defaultOption);
|
params = utils.getAllUrlParams(this.defaultOption);
|
||||||
if (params && params.app_uid && params.del_index) {
|
if (params && params.app_uid && params.del_index) {
|
||||||
this.openCase({
|
this.showModalUnpauseCase({
|
||||||
APP_UID: params.app_uid,
|
APP_UID: params.app_uid,
|
||||||
DEL_INDEX: params.del_index
|
DEL_INDEX: params.del_index
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -458,6 +458,11 @@ export default {
|
|||||||
refresh: true
|
refresh: true
|
||||||
};
|
};
|
||||||
this.$emit("cleanDefaultOption");
|
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);
|
this.onUpdateFilters(filter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2551,7 +2551,7 @@ class Cases
|
|||||||
// Filter specific case
|
// Filter specific case
|
||||||
$query->case($caseNumber);
|
$query->case($caseNumber);
|
||||||
// Filter specific index
|
// Filter specific index
|
||||||
if (is_int($index)) {
|
if ($index > 0) {
|
||||||
$query->index($index);
|
$query->index($index);
|
||||||
}
|
}
|
||||||
$results = $query->get();
|
$results = $query->get();
|
||||||
|
|||||||
Reference in New Issue
Block a user