Browse Source
Merge branch 'develop' of ssh://8.134.10.79:222/Leadfyy.co/hainan into develop
develop
Merge branch 'develop' of ssh://8.134.10.79:222/Leadfyy.co/hainan into develop
develop
5 changed files with 68 additions and 18 deletions
-
42app/AdminAgent/Controllers/OrderController.php
-
6app/AdminAgent/Controllers/WorkorderController.php
-
4app/AdminGuide/Controllers/WorkorderController.php
-
4app/AdminSupplier/Controllers/WorkorderController.php
-
30resources/views/admin/filter/select.blade.php
@ -0,0 +1,30 @@ |
|||||
|
<div class="input-group input-group-sm"> |
||||
|
<div class="input-group-prepend"> |
||||
|
<span class="input-group-text bg-white text-capitalize"><b>{!! $label !!}</b></span> |
||||
|
</div> |
||||
|
|
||||
|
<select class="form-control {{ $class }}" name="{{$name}}" data-value="{{ join(',', $value) }}" style="width: 100%;"> |
||||
|
<option value=""></option> |
||||
|
@foreach($options as $select => $option) |
||||
|
<option value="{{$select}}" {{ Dcat\Admin\Support\Helper::equal($select, join(',', $value)) ?'selected':'' }}>{{$option}}</option> |
||||
|
@endforeach |
||||
|
</select> |
||||
|
</div> |
||||
|
|
||||
|
@include('admin::scripts.select') |
||||
|
|
||||
|
<script require="@select2?lang={{ config('app.locale') === 'en' ? '' : str_replace('_', '-', config('app.locale')) }}"> |
||||
|
var configs = {!! admin_javascript_json($configs) !!}; |
||||
|
|
||||
|
@yield('admin.select-ajax') |
||||
|
|
||||
|
@if(isset($remote)) |
||||
|
$.ajax({!! admin_javascript_json($remote['ajaxOptions']) !!}).done(function(data) { |
||||
|
$("{{ $selector }}").select2($.extend({!! admin_javascript_json($configs) !!}, { |
||||
|
data: data, |
||||
|
})).val({!! json_encode($remote['values']) !!}).trigger("change"); |
||||
|
}); |
||||
|
@else |
||||
|
$("{!! $selector !!}").select2(configs); |
||||
|
@endif |
||||
|
</script> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue