fixed reports

This commit is contained in:
CHIEFSOFT\ameye
2026-02-15 17:33:34 -05:00
parent 46f17cbdfe
commit 615acff0b7
4 changed files with 228 additions and 577 deletions
+12 -6
View File
@@ -141,7 +141,8 @@ console.log('imageLink', imageLink)
<div style={{width: '100%', textAlign: 'right'}}> <div style={{width: '100%', textAlign: 'right'}}>
<button <button
className="btn btn-square btn-inverse-light btn-xs d-inline-block mt-2 mb-0" className="btn btn-square btn-inverse-light btn-xs d-inline-block mt-2 mb-0"
onClick={handleUpload} disabled={!selectedFile || uploadFileMutation.isPending || uploadFileMutation.isSuccess}> onClick={handleUpload}
disabled={!selectedFile || uploadFileMutation.isPending || uploadFileMutation.isSuccess}>
Upload Upload
</button> </button>
</div> </div>
@@ -180,15 +181,18 @@ console.log('imageLink', imageLink)
<p className='text-danger'>{error?.message}</p> <p className='text-danger'>{error?.message}</p>
</div> </div>
: :
<div className="card-body scrollbar scroll_dark" style={{minHeight: '400px', maxHeight: '500px', overflowY: 'auto'}}> <div className="card-body scrollbar scroll_dark"
style={{minHeight: '400px', maxHeight: '500px', overflowY: 'auto'}}>
{mediaFileList && mediaFileList?.file_list && mediaFileList?.file_list.map((item, index) => { {mediaFileList && mediaFileList?.file_list && mediaFileList?.file_list.map((item, index) => {
const file_url = (mediaFileList?.media_server + "/" + item?.file_group + "/" + item?.file_uid + "/" + item.filename).toLowerCase(); const file_url = (mediaFileList?.media_server + "/" + item?.file_group + "/" + item?.file_uid + "/" + item.filename).toLowerCase();
const avtarImage = const avtarImage =
item?.file_type === undefined item?.file_type === undefined
? "icons/01.png" ? "icons/01.png"
: "icons/" + item.file_type + ".png"; : "icons/" + item.file_type + ".png";
return (<div key={index} className={`widget-text ${imageLink == file_url && 'bg-light'}`}> return (<div key={index}
<div className={`media align-items-center`} onClick={()=>setImageLink(file_url)} style={{cursor: 'pointer'}}> className={`widget-text ${imageLink == file_url && 'bg-light'}`}>
<div className={`media align-items-center`}
onClick={() => setImageLink(file_url)} style={{cursor: 'pointer'}}>
<img src={getImage(avtarImage)} <img src={getImage(avtarImage)}
// src={`assets/img/file-icon/${item.file_type}.png`} // src={`assets/img/file-icon/${item.file_type}.png`}
className="img-fluid" className="img-fluid"
@@ -202,7 +206,8 @@ console.log('imageLink', imageLink)
className="btn btn-icon btn-round btn-outline-success"> className="btn btn-icon btn-round btn-outline-success">
<i className="ti ti-download"></i> <i className="ti ti-download"></i>
</a> </a>
<a href="" className="btn btn-icon btn-round btn-outline-danger ml-2"> <a href=""
className="btn btn-icon btn-round btn-outline-danger ml-2">
<i className="ti ti-close"></i> <i className="ti ti-close"></i>
</a> </a>
</div> </div>
@@ -221,7 +226,8 @@ console.log('imageLink', imageLink)
<h4 className="card-title">Preview</h4> <h4 className="card-title">Preview</h4>
</div> </div>
</div> </div>
<div className="card-body d-flex justify-content-center align-items-center pl-0 pr-0 scrollbar scroll_dark"> <div
className="card-body d-flex justify-content-center align-items-center pl-0 pr-0 scrollbar scroll_dark">
{imageLink && {imageLink &&
<img className="w-100 h-auto" src={imageLink} alt='file-image'/> <img className="w-100 h-auto" src={imageLink} alt='file-image'/>
} }
+11 -130
View File
@@ -50,144 +50,25 @@ export default function PaymentReportTable() {
<table id="export-table" className="table table-bordered"> <table id="export-table" className="table table-bordered">
<thead className="thead-light"> <thead className="thead-light">
<tr> <tr>
<th>Added</th>
<th>Name</th> <th>Name</th>
<th>Position</th> <th>Amount</th>
<th>Office</th> <th>Status</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>Tiger Nixon</td> <td>Sat, 30 Aug 2025 06:18:31 GMT</td>
<td>System Architect</td> <td>STATRTER001</td>
<td>Edinburgh</td> <td> $5.99</td>
<td>61</td> <td>1</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr> </tr>
<tr> <tr>
<td>Garrett Winters</td> <td>Sat, 30 Aug 2025 06:18:31 GMT</td>
<td>Accountant</td> <td>STATRTER001</td>
<td>Tokyo</td> <td> $5.99</td>
<td>63</td> <td>1</td>
<td>2011/07/25</td>
<td>$170,750</td>
</tr> </tr>
<tr>
<td>Ashton Cox</td>
<td>Junior Technical Author</td>
<td>San Francisco</td>
<td>66</td>
<td>2009/01/12</td>
<td>$86,000</td>
</tr>
<tr>
<td>Cedric Kelly</td>
<td>Senior Javascript Developer</td>
<td>Edinburgh</td>
<td>22</td>
<td>2012/03/29</td>
<td>$433,060</td>
</tr>
<tr>
<td>Airi Satou</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>33</td>
<td>2008/11/28</td>
<td>$162,700</td>
</tr>
<tr>
<td>Brielle Williamson</td>
<td>Integration Specialist</td>
<td>New York</td>
<td>61</td>
<td>2012/12/02</td>
<td>$372,000</td>
</tr>
<tr>
<td>Herrod Chandler</td>
<td>Sales Assistant</td>
<td>San Francisco</td>
<td>59</td>
<td>2012/08/06</td>
<td>$137,500</td>
</tr>
<tr>
<td>Rhona Davidson</td>
<td>Integration Specialist</td>
<td>Tokyo</td>
<td>55</td>
<td>2010/10/14</td>
<td>$327,900</td>
</tr>
<tr>
<td>Colleen Hurst</td>
<td>Javascript Developer</td>
<td>San Francisco</td>
<td>39</td>
<td>2009/09/15</td>
<td>$205,500</td>
</tr>
<tr>
<td>Sonya Frost</td>
<td>Software Engineer</td>
<td>Edinburgh</td>
<td>23</td>
<td>2008/12/13</td>
<td>$103,600</td>
</tr>
<tr>
<td>Jena Gaines</td>
<td>Office Manager</td>
<td>London</td>
<td>30</td>
<td>2008/12/19</td>
<td>$90,560</td>
</tr>
<tr>
<td>Quinn Flynn</td>
<td>Support Lead</td>
<td>Edinburgh</td>
<td>22</td>
<td>2013/03/03</td>
<td>$342,000</td>
</tr>
<tr>
<td>Charde Marshall</td>
<td>Regional Director</td>
<td>San Francisco</td>
<td>36</td>
<td>2008/10/16</td>
<td>$470,600</td>
</tr>
<tr>
<td>Haley Kennedy</td>
<td>Senior Marketing Designer</td>
<td>London</td>
<td>43</td>
<td>2012/12/18</td>
<td>$313,500</td>
</tr>
<tr>
<td>Tatyana Fitzpatrick</td>
<td>Regional Director</td>
<td>London</td>
<td>19</td>
<td>2010/03/17</td>
<td>$385,750</td>
</tr>
<tr>
<td>Michael Silva</td>
<td>Marketing Designer</td>
<td>London</td>
<td>66</td>
<td>2012/11/27</td>
<td>$198,500</td>
</tr>
</tbody> </tbody>
</table> </table>
+13 -129
View File
@@ -53,144 +53,28 @@ export default function ProductReportTable() {
<table id="export-table" className="table table-bordered"> <table id="export-table" className="table table-bordered">
<thead className="thead-light"> <thead className="thead-light">
<tr> <tr>
<th>ID</th>
<th>Added</th>
<th>Name</th> <th>Name</th>
<th>Position</th> <th>Status</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>Tiger Nixon</td> <td>A000002</td>
<td>System Architect</td> <td>Sun, 13 Jul 2025 15:02:57 GMT</td>
<td>Edinburgh</td> <td>Name for - A000001</td>
<td>61</td> <td>7</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr> </tr>
<tr> <tr>
<td>Garrett Winters</td> <td>A000002</td>
<td>Accountant</td> <td>Sun, 13 Jul 2025 15:02:57 GMT</td>
<td>Tokyo</td> <td>Name for - A000001</td>
<td>63</td> <td>7</td>
<td>2011/07/25</td>
<td>$170,750</td>
</tr>
<tr>
<td>Ashton Cox</td>
<td>Junior Technical Author</td>
<td>San Francisco</td>
<td>66</td>
<td>2009/01/12</td>
<td>$86,000</td>
</tr>
<tr>
<td>Cedric Kelly</td>
<td>Senior Javascript Developer</td>
<td>Edinburgh</td>
<td>22</td>
<td>2012/03/29</td>
<td>$433,060</td>
</tr>
<tr>
<td>Airi Satou</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>33</td>
<td>2008/11/28</td>
<td>$162,700</td>
</tr>
<tr>
<td>Brielle Williamson</td>
<td>Integration Specialist</td>
<td>New York</td>
<td>61</td>
<td>2012/12/02</td>
<td>$372,000</td>
</tr>
<tr>
<td>Herrod Chandler</td>
<td>Sales Assistant</td>
<td>San Francisco</td>
<td>59</td>
<td>2012/08/06</td>
<td>$137,500</td>
</tr>
<tr>
<td>Rhona Davidson</td>
<td>Integration Specialist</td>
<td>Tokyo</td>
<td>55</td>
<td>2010/10/14</td>
<td>$327,900</td>
</tr>
<tr>
<td>Colleen Hurst</td>
<td>Javascript Developer</td>
<td>San Francisco</td>
<td>39</td>
<td>2009/09/15</td>
<td>$205,500</td>
</tr>
<tr>
<td>Sonya Frost</td>
<td>Software Engineer</td>
<td>Edinburgh</td>
<td>23</td>
<td>2008/12/13</td>
<td>$103,600</td>
</tr>
<tr>
<td>Jena Gaines</td>
<td>Office Manager</td>
<td>London</td>
<td>30</td>
<td>2008/12/19</td>
<td>$90,560</td>
</tr>
<tr>
<td>Quinn Flynn</td>
<td>Support Lead</td>
<td>Edinburgh</td>
<td>22</td>
<td>2013/03/03</td>
<td>$342,000</td>
</tr>
<tr>
<td>Charde Marshall</td>
<td>Regional Director</td>
<td>San Francisco</td>
<td>36</td>
<td>2008/10/16</td>
<td>$470,600</td>
</tr>
<tr>
<td>Haley Kennedy</td>
<td>Senior Marketing Designer</td>
<td>London</td>
<td>43</td>
<td>2012/12/18</td>
<td>$313,500</td>
</tr>
<tr>
<td>Tatyana Fitzpatrick</td>
<td>Regional Director</td>
<td>London</td>
<td>19</td>
<td>2010/03/17</td>
<td>$385,750</td>
</tr>
<tr>
<td>Michael Silva</td>
<td>Marketing Designer</td>
<td>London</td>
<td>66</td>
<td>2012/11/27</td>
<td>$198,500</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
+12 -132
View File
@@ -53,146 +53,26 @@ export default function SystemReportTable() {
<table id="export-table" className="table table-bordered"> <table id="export-table" className="table table-bordered">
<thead className="thead-light"> <thead className="thead-light">
<tr> <tr>
<th>Name</th> <th>Added</th>
<th>Position</th> <th>Action Name</th>
<th>Office</th> <th>Description</th>
<th>Age</th> <th>Updated</th>
<th>Start date</th>
<th>Salary</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> <tr>
<td>Tiger Nixon</td> <td>Sun, 15 Feb 2026 10:52:01 GMT</td>
<td>System Architect</td> <td>Systems Status Checks</td>
<td>Edinburgh</td> <td>processing</td>
<td>61</td> <td>Sun, 15 Feb 2026 09:26:02 GMT</td>
<td>2011/04/25</td>
<td>$320,800</td>
</tr> </tr>
<tr> <tr>
<td>Garrett Winters</td> <td>Sun, 15 Feb 2026 10:52:01 GMT</td>
<td>Accountant</td> <td>Systems Status Checks</td>
<td>Tokyo</td> <td>processing</td>
<td>63</td> <td>Sun, 15 Feb 2026 09:26:02 GMT</td>
<td>2011/07/25</td>
<td>$170,750</td>
</tr> </tr>
<tr>
<td>Ashton Cox</td>
<td>Junior Technical Author</td>
<td>San Francisco</td>
<td>66</td>
<td>2009/01/12</td>
<td>$86,000</td>
</tr>
<tr>
<td>Cedric Kelly</td>
<td>Senior Javascript Developer</td>
<td>Edinburgh</td>
<td>22</td>
<td>2012/03/29</td>
<td>$433,060</td>
</tr>
<tr>
<td>Airi Satou</td>
<td>Accountant</td>
<td>Tokyo</td>
<td>33</td>
<td>2008/11/28</td>
<td>$162,700</td>
</tr>
<tr>
<td>Brielle Williamson</td>
<td>Integration Specialist</td>
<td>New York</td>
<td>61</td>
<td>2012/12/02</td>
<td>$372,000</td>
</tr>
<tr>
<td>Herrod Chandler</td>
<td>Sales Assistant</td>
<td>San Francisco</td>
<td>59</td>
<td>2012/08/06</td>
<td>$137,500</td>
</tr>
<tr>
<td>Rhona Davidson</td>
<td>Integration Specialist</td>
<td>Tokyo</td>
<td>55</td>
<td>2010/10/14</td>
<td>$327,900</td>
</tr>
<tr>
<td>Colleen Hurst</td>
<td>Javascript Developer</td>
<td>San Francisco</td>
<td>39</td>
<td>2009/09/15</td>
<td>$205,500</td>
</tr>
<tr>
<td>Sonya Frost</td>
<td>Software Engineer</td>
<td>Edinburgh</td>
<td>23</td>
<td>2008/12/13</td>
<td>$103,600</td>
</tr>
<tr>
<td>Jena Gaines</td>
<td>Office Manager</td>
<td>London</td>
<td>30</td>
<td>2008/12/19</td>
<td>$90,560</td>
</tr>
<tr>
<td>Quinn Flynn</td>
<td>Support Lead</td>
<td>Edinburgh</td>
<td>22</td>
<td>2013/03/03</td>
<td>$342,000</td>
</tr>
<tr>
<td>Charde Marshall</td>
<td>Regional Director</td>
<td>San Francisco</td>
<td>36</td>
<td>2008/10/16</td>
<td>$470,600</td>
</tr>
<tr>
<td>Haley Kennedy</td>
<td>Senior Marketing Designer</td>
<td>London</td>
<td>43</td>
<td>2012/12/18</td>
<td>$313,500</td>
</tr>
<tr>
<td>Tatyana Fitzpatrick</td>
<td>Regional Director</td>
<td>London</td>
<td>19</td>
<td>2010/03/17</td>
<td>$385,750</td>
</tr>
<tr>
<td>Michael Silva</td>
<td>Marketing Designer</td>
<td>London</td>
<td>66</td>
<td>2012/11/27</td>
<td>$198,500</td>
</tr>
</tbody> </tbody>
</table> </table>
</div> </div>
</div> </div>