Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11272 | Rev 15468 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11272 Rev 15465
Línea 16... Línea 16...
16
		{ key: 'name', label: 'Nombre', isSorteable: true },
16
		{ key: 'name', label: 'Nombre', isSorteable: true },
17
		{ key: 'status', label: 'Activo', isSorteable: false },
17
		{ key: 'status', label: 'Activo', isSorteable: false },
18
		{ key: 'actions', label: 'Acciones', isSorteable: false }
18
		{ key: 'actions', label: 'Acciones', isSorteable: false }
19
	]
19
	]
Línea 20... Línea 20...
20
 
20
 
21
	const getData = (search, start, length) => {
-
 
22
		axios.get(
21
	const getData = (params = {}) => {
23
			linkTable,
-
 
24
			{
-
 
25
				params: {
-
 
26
					search: search,
-
 
27
					start: start,
-
 
28
					length: length
-
 
29
				}
-
 
30
			})
22
		axios.get(linkTable, { params })
31
			.then(({ data }) => {
23
			.then(({ data }) => {
32
				if (data.success) {
24
				if (data.success) {
33
					setCompanyData(data.data)
-
 
34
 
25
					setCompanyData(data.data)
35
					return data.data
26
					return data.data
36
				}
27
				}
37
			})
28
			})
38
			.catch((err) => console.log(err))
29
			.catch((err) => console.log(err))