mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Merge branch 'fix/tarifa-maquina-form' into 'main'
fix js in tarifa new form See merge request jjimenez/safekat!489
This commit is contained in:
@ -71,7 +71,7 @@
|
||||
</h2>
|
||||
<div id="accordionTipTarifaMaquina" class="accordion-collapse collapse show" data-bs-parent="#accordionTarifaMaquinas">
|
||||
<div class="accordion-body">
|
||||
<?= view("themes/vuexy/components/forms/tarifa_maquinas",["id" => "tarifa_maquina_component","tarifaId" => $tarifaManipuladoEntity->id ]) ?>
|
||||
<?= view("themes/vuexy/components/forms/tarifa_maquinas",["id" => "tarifa_maquina_component","tarifaId" => $tarifaManipuladoEntity?->id ]) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -24,26 +24,29 @@ class TarifaMaquina {
|
||||
|
||||
}
|
||||
init() {
|
||||
// this.btnNewTarifaMaquina.prop("disabled",true)
|
||||
this.selectMaquinaTarea.init()
|
||||
this.selectTarifaMaquina.init()
|
||||
this.datatable = this.datatableItem.DataTable({
|
||||
processing: true,
|
||||
layout: {
|
||||
topStart: 'pageLength',
|
||||
topEnd: 'search',
|
||||
bottomStart: 'info',
|
||||
bottomEnd: 'paging'
|
||||
},
|
||||
serverSide: true,
|
||||
pageLength: 25,
|
||||
language: {
|
||||
url: "/themes/vuexy/vendor/libs/datatables-sk/plugins/i18n/es-ES.json"
|
||||
},
|
||||
columns: this.datatableColumns,
|
||||
ajax: `/tarifas/maquinas/${this.type}/datatable/${this.tarifaId}`
|
||||
});
|
||||
this.events();
|
||||
if (this.tarifaId) {
|
||||
|
||||
// this.btnNewTarifaMaquina.prop("disabled",true)
|
||||
this.selectMaquinaTarea.init()
|
||||
this.selectTarifaMaquina.init()
|
||||
this.datatable = this.datatableItem.DataTable({
|
||||
processing: true,
|
||||
layout: {
|
||||
topStart: 'pageLength',
|
||||
topEnd: 'search',
|
||||
bottomStart: 'info',
|
||||
bottomEnd: 'paging'
|
||||
},
|
||||
serverSide: true,
|
||||
pageLength: 25,
|
||||
language: {
|
||||
url: "/themes/vuexy/vendor/libs/datatables-sk/plugins/i18n/es-ES.json"
|
||||
},
|
||||
columns: this.datatableColumns,
|
||||
ajax: `/tarifas/maquinas/${this.type}/datatable/${this.tarifaId}`
|
||||
});
|
||||
this.events();
|
||||
}
|
||||
}
|
||||
events() {
|
||||
this.btnNewTarifaMaquina.on("click", this.handleNewTarifaMaquina.bind(this));
|
||||
|
||||
Reference in New Issue
Block a user