Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15517 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15517 Rev 15518
Línea 18... Línea 18...
18
		{ key: 'maximum_no_of_employee', label: 'Máximo', isSorteable: true },
18
		{ key: 'maximum_no_of_employee', label: 'Máximo', isSorteable: true },
19
		{ key: 'status', label: 'Activo', isSorteable: false },
19
		{ key: 'status', label: 'Activo', isSorteable: false },
20
		{ key: 'actions', label: 'Acciones', isSorteable: false }
20
		{ key: 'actions', label: 'Acciones', isSorteable: false }
21
	]
21
	]
Línea 22... Línea 22...
22
 
22
 
23
	const getData = (params) => {
-
 
24
		axios
23
	const getData = (params= {}) => {
25
			.get(linkTable,{params: params})
24
		axios.get(linkTable,{ params: params})
26
			.then(({ data:response }) => {
-
 
27
				if (response.success) {
25
			.then(({ data:response }) => {
28
					setCompanyData(response.data)
-
 
29
				}
26
				if (response.success) setCompanyData(response.data)
30
			})
27
			})
31
			.catch((err) => console.log(err))
28
			.catch((err) => console.log(err))
Línea 32... Línea 29...
32
	}
29
	}
Línea 61... Línea 58...
61
			<section className="content">
58
			<section className="content">
62
				<section className="content-header">
59
				<section className="content-header">
63
					<h1>Tamaños de empresa</h1>
60
					<h1>Tamaños de empresa</h1>
64
				</section>
61
				</section>
65
				<section className="container-fluid">
62
				<section className="container-fluid">
66
					<TableFilters data={companyData} onAdd={addItem} getData={()=> getData()} allowAdd={allowAdd}>
63
					<TableFilters data={companyData} onAdd={addItem} getData={getData} allowAdd={allowAdd}>
67
						{companyData.items &&
64
						{companyData.items &&
68
						function(){
65
						function(){
69
							return (
66
							return (
70
								<Table 
67
								<Table 
71
									headers={headers}
68
									headers={headers}