Team 2 (Lung Care Programming) Sixth Code
Specific Folder FTP Upload / ftp-deploy (push) Successful in 33s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 33s
Details
This commit is contained in:
parent
befa90e61d
commit
595a7aca76
|
|
@ -91,13 +91,13 @@
|
|||
@if(isset($form->manager_can_submit) && $form->manager_can_submit == true)
|
||||
<div class="col-md-12 mb-2" style="display: none;">
|
||||
<label for="field-user_id" class="form-label"> Select User / Territory </label>
|
||||
<select class="form-control" id="field-user_id">
|
||||
<select class="form-control" id="field-user_id" name="manager_id" >
|
||||
<option value=""> -- Select -- </option>
|
||||
@foreach($form->users as $option)
|
||||
<option value="{{$option->value}}" hierarchy="{{$option->hierarchy_id}}" {{isset($question->value) && $question->value == $option->value ? 'selected':''}}>{{$option->display}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
<input type="hidden" id="field-hierarchy_id" name="hierarchy_id" value="">
|
||||
{{-- <input type="hidden" id="field-hierarchy_id" name="hierarchy_id" value=""> --}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
|
@ -503,23 +503,16 @@
|
|||
|
||||
Promise.all(
|
||||
hierarcies.map(hierarchy => {
|
||||
let tmUserId = $('#field-user_id option[hierarchy="' + hierarchy + '"]').val() || '';
|
||||
|
||||
return $.ajax({
|
||||
type: "GET",
|
||||
url: '/form/getdoctorlist?partition={{$form->partition}}&hierarchy=' + hierarchy,
|
||||
processData: false,
|
||||
contentType: false
|
||||
}).then(data => {
|
||||
/* if (Array.isArray(data)) {
|
||||
if (Array.isArray(data)) {
|
||||
fetchedContacts = fetchedContacts.concat(data);
|
||||
} */
|
||||
if (Array.isArray(data)) {
|
||||
data.forEach(d => {
|
||||
d.tm_user_id = tmUserId;
|
||||
d.tm_hierarchy_id = hierarchy;
|
||||
});
|
||||
fetchedContacts = fetchedContacts.concat(data);
|
||||
}
|
||||
}
|
||||
}).catch(function(err) {
|
||||
console.log("Error fetching doctors for hierarchy " + hierarchy, err);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue