EV3-408 Megrendelések megjelenése
This commit is contained in:
parent
e0037f77d1
commit
2c759442d3
@ -48,35 +48,36 @@
|
|||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
|
|
||||||
@role(['root','developer','admin'])
|
@role(['root', 'developer', 'admin'])
|
||||||
<script>
|
<script>
|
||||||
APP.IsUserAdmin=true;
|
APP.IsUserAdmin = true;
|
||||||
</script>
|
</script>
|
||||||
@else
|
@else
|
||||||
<script>
|
<script>
|
||||||
APP.IsUserAdmin=false;
|
APP.IsUserAdmin = false;
|
||||||
</script>
|
</script>
|
||||||
@endrole
|
@endrole
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if(typeof APP.OrderArchiveModule ==="undefined") {
|
if (typeof APP.OrderArchiveModule === "undefined") {
|
||||||
APP.OrderArchiveModule=new OrderArchiveModule();
|
APP.OrderArchiveModule = new OrderArchiveModule();
|
||||||
}
|
}
|
||||||
APP.OrderArchiveModule.init(
|
APP.OrderArchiveModule.init({
|
||||||
{
|
|
||||||
URL: {
|
URL: {
|
||||||
root:'{{url('')}}',
|
root: '{{url('')}}',
|
||||||
getDataTableContent:'{{route('orderArchive.getDataTableContent')}}',
|
getDataTableContent: '{{route('orderArchive.getDataTableContent')}}',
|
||||||
index:'{{route('orderArchive.index')}}',
|
index: '{{route('orderArchive.index')}}',
|
||||||
show:'{{route('orderArchive.show',"%id%")}}',
|
show: '{{route('orderArchive.show',"%id%")}}',
|
||||||
edit:'{{route('orderArchive.edit',"%id%")}}',
|
edit: '{{route('orderArchive.edit',"%id%")}}',
|
||||||
},
|
},
|
||||||
testMode: {{$testMode ? 'true' : 'false'}}
|
testMode: {{$testMode ? 'true' : 'false'}}
|
||||||
}
|
});
|
||||||
);
|
|
||||||
|
|
||||||
APP.OrderArchiveModule.initViewList({orderDirective:[[4, "desc"]]});
|
var orderColIndex = APP.IsUserAdmin ? 4 : 3;
|
||||||
|
APP.OrderArchiveModule.initViewList({
|
||||||
|
orderDirective: [[orderColIndex, "desc"]]
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user