From 4cf4e3fcfdfcd347bd7014923a1264d345f6a948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Fri, 29 Nov 2024 17:06:23 +0100 Subject: [PATCH] trabajando --- .../assets/js/safekat/pages/cliente/cliente.js | 5 +++++ .../js/safekat/pages/cliente/tarifasCliente.js | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 httpdocs/assets/js/safekat/pages/cliente/tarifasCliente.js diff --git a/httpdocs/assets/js/safekat/pages/cliente/cliente.js b/httpdocs/assets/js/safekat/pages/cliente/cliente.js index fabbe83f..286be4ec 100644 --- a/httpdocs/assets/js/safekat/pages/cliente/cliente.js +++ b/httpdocs/assets/js/safekat/pages/cliente/cliente.js @@ -1,4 +1,5 @@ import ClassSelect from '../../components/select2.js'; +import tarifasClienteView from './tarifasCliente.js'; class Cliente { @@ -7,6 +8,8 @@ class Cliente { this.csrf_token = this.getToken(); this.csrf_hash = $('#clienteForm').find('input[name="' + this.csrf_token + '"]').val(); + this.tarifas = new tarifasClienteView(); + this.pais = new ClassSelect($("#paisId"), '/paises/menuitems2', "Seleccione un paĆ­s", {[this.csrf_token]: this.csrf_hash}); this.soporte = new ClassSelect($("#soporteId"), '/users/getMenuComerciales', "Seleccione un usuario", {[this.csrf_token]: this.csrf_hash}); this.comercial = new ClassSelect($("#comercialId"), '/users/getMenuComerciales', "Seleccione un usuario", {[this.csrf_token]: this.csrf_hash}); @@ -30,6 +33,8 @@ class Cliente { this.formaPago.init(); this.provincia.init(); this.comunidadAutonoma.init(); + + this.tarifas.init(); $(document).keypress(function (e) { var key = e.which; diff --git a/httpdocs/assets/js/safekat/pages/cliente/tarifasCliente.js b/httpdocs/assets/js/safekat/pages/cliente/tarifasCliente.js new file mode 100644 index 00000000..d6d7a423 --- /dev/null +++ b/httpdocs/assets/js/safekat/pages/cliente/tarifasCliente.js @@ -0,0 +1,14 @@ +import { getToken } from "../../utils/common"; + +class tarifasClienteView{ + + constructor(domItem) { + this.csrf_token = document.querySelector('meta[name="csrf-token"]').content; + this.csrf_hash = document.querySelector('meta[name="csrf-hash"]').content; + this.token = getToken(); + } + + init() { + + } +} \ No newline at end of file