Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15472 Rev 15473
Línea 17... Línea 17...
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 = (params = {}) => {
21
	const getData = (params = {}) => {
22
		axios.get(linkTable, { params })
22
		axios.get(linkTable, { params: params })
23
			.then(({ data }) => {
-
 
24
				if (data.success) {
23
			.then(({ data: response }) => {
25
					setCompanyData(data.data)
-
 
26
					return data.data
-
 
27
				}
24
				if (response.success) setCompanyData(response.data)
28
			})
25
			})
29
			.catch((err) => console.log(err))
26
			.catch((err) => console.log(err))
Línea 30... Línea 27...
30
	}
27
	}
Línea 79... Línea 76...
79
					allowAdd={allowAdd}
76
					allowAdd={allowAdd}
80
					allowEdit={allowEdit}
77
					allowEdit={allowEdit}
81
					allowDelete={allowDelete}
78
					allowDelete={allowDelete}
82
				/>
79
				/>
83
			</section>
80
			</section>
-
 
81
			<EditModal
-
 
82
				isOpen={showModal}
-
 
83
				title='Industrias'
-
 
84
				closeModal={closeModal}
-
 
85
				isEdit={actionLink !== addUrl}
-
 
86
				url={actionLink}
-
 
87
				currentItem={selectItem}
-
 
88
				action={getData}
84
 
89
			/>
-
 
90
			<DeleteModal
-
 
91
				isOpen={showDeleteModal}
-
 
92
				closeModal={closeDeleteModal}
-
 
93
				url={actionLink}
-
 
94
				onComplete={getData}
-
 
95
			/>
85
		</>
96
		</>
86
	)
97
	)
87
}
98
}
Línea 88... Línea 99...
88
 
99
 
89
export default IndustriesView
100
export default IndustriesView