trithuc-mvc-react 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/index.js
CHANGED
|
@@ -51,7 +51,11 @@ export const changeStatusDataToTable = async ({ tableName, id }) => {
|
|
|
51
51
|
return res.data;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
export const exportExcel = async ({ tableName }) => {
|
|
55
|
-
const res = await api.get(`/Admin/${tableName}/ExportData
|
|
54
|
+
export const exportExcel = async ({ tableName,data }) => {
|
|
55
|
+
const res = await api.get(`/Admin/${tableName}/ExportData`,{
|
|
56
|
+
params: {
|
|
57
|
+
json: JSON.stringify(data),
|
|
58
|
+
}
|
|
59
|
+
});
|
|
56
60
|
return res.data;
|
|
57
61
|
};
|
|
@@ -80,7 +80,7 @@ function DataManagement({ columns = [], title, tableName, selectedField = "Id",
|
|
|
80
80
|
</IconButton>
|
|
81
81
|
</Tooltip>
|
|
82
82
|
|
|
83
|
-
<ExportExcelButton tableName={tableName} />
|
|
83
|
+
<ExportExcelButton tableName={tableName} data={dataSearch} />
|
|
84
84
|
{(!Permission || Permission.Create) && (
|
|
85
85
|
<Button
|
|
86
86
|
variant="contained"
|
|
@@ -53,7 +53,7 @@ const DateRangePicker = ({ onChange = () => {}, value }) => {
|
|
|
53
53
|
sx={{ flex: 1 }}
|
|
54
54
|
format={DEFAULT_DATE_FORMAT}
|
|
55
55
|
onFocus={handleFocus}
|
|
56
|
-
label="
|
|
56
|
+
label="Từ ngày"
|
|
57
57
|
onChange={(value) => {
|
|
58
58
|
setDateRange((d) => ({
|
|
59
59
|
...d,
|
|
@@ -70,7 +70,7 @@ const DateRangePicker = ({ onChange = () => {}, value }) => {
|
|
|
70
70
|
<DateField
|
|
71
71
|
sx={{ flex: 1 }}
|
|
72
72
|
format={DEFAULT_DATE_FORMAT}
|
|
73
|
-
label="
|
|
73
|
+
label="Tới ngày"
|
|
74
74
|
onFocus={handleFocus}
|
|
75
75
|
onChange={(value) => {
|
|
76
76
|
setDateRange((d) => ({
|