HOTFIX: Sort by column
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
7e4b540af1
commit
8af66a7ca5
|
@ -27,13 +27,6 @@ export default class Table {
|
|||
return this.table.classList.contains('scrollable');
|
||||
}
|
||||
|
||||
$postLink() {
|
||||
if (this.isScrollable()) {
|
||||
const childCells = this.table.querySelector('vn-tbody');
|
||||
console.log(childCells);
|
||||
}
|
||||
}
|
||||
|
||||
setActiveArrow() {
|
||||
let columns = this.table.querySelectorAll('vn-thead vn-th');
|
||||
columns.forEach(column => {
|
||||
|
|
|
@ -61,7 +61,7 @@ module.exports = Self => {
|
|||
|
||||
stmt.merge(conn.makeWhere(filter.where));
|
||||
stmt.merge(conn.makeGroupBy('o.id'));
|
||||
stmt.merge(conn.makeLimit(filter));
|
||||
stmt.merge(conn.makePagination(filter));
|
||||
|
||||
return conn.executeStmt(stmt);
|
||||
};
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<vn-crud-model auto-load="true"
|
||||
<vn-crud-model
|
||||
vn-id="model"
|
||||
url="SalesMonitors/ordersFilter"
|
||||
limit="6"
|
||||
order="dated DESC">
|
||||
order="date_make DESC">
|
||||
</vn-crud-model>
|
||||
<vn-horizontal class="header">
|
||||
<vn-one translate>
|
||||
|
@ -20,7 +20,7 @@
|
|||
<vn-table model="model" class="scrollable sm">
|
||||
<vn-thead>
|
||||
<vn-tr>
|
||||
<vn-th field="date_send" shrink-datetime default-order="DESC">Date</vn-th>
|
||||
<vn-th field="date_make" shrink-datetime default-order="DESC">Date</vn-th>
|
||||
<vn-th field="clientFk">Client</vn-th>
|
||||
<vn-th>Import</vn-th>
|
||||
</vn-tr>
|
||||
|
|
Loading…
Reference in New Issue