@visns-studio/visns-components 3.1.8 → 3.1.9
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/components/crm/DataGrid.jsx +33 -26
- package/package.json +1 -1
|
@@ -610,7 +610,9 @@ const DataGrid = forwardRef(
|
|
|
610
610
|
try {
|
|
611
611
|
toast.success('Starting export please wait...');
|
|
612
612
|
|
|
613
|
-
const res = await Download(form.export.url, 'POST', {
|
|
613
|
+
const res = await Download(form.export.url, 'POST', {
|
|
614
|
+
filter: filterValue,
|
|
615
|
+
});
|
|
614
616
|
|
|
615
617
|
if (res.data.error) {
|
|
616
618
|
toast.error(res.data.error);
|
|
@@ -663,30 +665,35 @@ const DataGrid = forwardRef(
|
|
|
663
665
|
<div className="icon-plus"></div> Sort Order
|
|
664
666
|
</button>
|
|
665
667
|
)}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
668
|
+
|
|
669
|
+
{form.create &&
|
|
670
|
+
form.create.title &&
|
|
671
|
+
form.create.title !== '' && (
|
|
672
|
+
<button
|
|
673
|
+
className="btn"
|
|
674
|
+
onClick={(e) => {
|
|
675
|
+
e.preventDefault();
|
|
676
|
+
|
|
677
|
+
if (form.create) {
|
|
678
|
+
if (form.create.url) {
|
|
679
|
+
navigate(form.create.url);
|
|
680
|
+
} else {
|
|
681
|
+
modalOpen('create', 0);
|
|
682
|
+
}
|
|
683
|
+
} else {
|
|
684
|
+
if (form.url) {
|
|
685
|
+
window.open(
|
|
686
|
+
form.url,
|
|
687
|
+
'',
|
|
688
|
+
'width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1'
|
|
689
|
+
);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}}
|
|
693
|
+
>
|
|
694
|
+
<div className="icon-plus"></div> Create
|
|
695
|
+
</button>
|
|
696
|
+
)}
|
|
690
697
|
</div>
|
|
691
698
|
);
|
|
692
699
|
};
|
|
@@ -713,7 +720,7 @@ const DataGrid = forwardRef(
|
|
|
713
720
|
return (
|
|
714
721
|
<div
|
|
715
722
|
className="filterInput--alt"
|
|
716
|
-
style={{ height: '
|
|
723
|
+
style={{ height: '58px' }}
|
|
717
724
|
></div>
|
|
718
725
|
);
|
|
719
726
|
}
|
package/package.json
CHANGED