2863 - Added monitor module #618

Merged
joan merged 12 commits from 2863-monitor_module into dev 2021-05-12 12:09:35 +00:00
9 changed files with 18 additions and 16 deletions
Showing only changes of commit 2e7d56cc26 - Show all commits

View File

@ -34,11 +34,6 @@ export default class Table {
} }
} }
/* $onChanges() {
if (this.model && !this.model.data)
this.applyOrder();
} */
setActiveArrow() { setActiveArrow() {
let columns = this.table.querySelectorAll('vn-thead vn-th'); let columns = this.table.querySelectorAll('vn-thead vn-th');
columns.forEach(column => { columns.forEach(column => {

View File

@ -14,8 +14,11 @@ export default class Th {
$onInit() { $onInit() {
if (!this.field) return; if (!this.field) return;
if (this.defaultOrder) if (this.defaultOrder) {
this.order = this.defaultOrder; this.order = this.defaultOrder;
this.table.applyOrder(this.field, this.order);
this.updateArrow();
}
this.updateArrow(); this.updateArrow();
} }

View File

@ -2,7 +2,8 @@
vn-id="model" vn-id="model"
url="Buys/latestBuysFilter" url="Buys/latestBuysFilter"
limit="20" limit="20"
data="$ctrl.buys"> data="$ctrl.buys"
auto-load="true">
</vn-crud-model> </vn-crud-model>
<vn-portal slot="topbar"> <vn-portal slot="topbar">
<vn-searchbar <vn-searchbar

View File

@ -7,7 +7,7 @@
"menus": { "menus": {
"main": [ "main": [
{"state": "entry.index", "icon": "icon-entry"}, {"state": "entry.index", "icon": "icon-entry"},
{"state": "entry.latestBuys", "icon": "icon-latestBuys"} {"state": "entry.latestBuys", "icon": "contact_support"}
], ],
"card": [ "card": [
{"state": "entry.card.basicData", "icon": "settings"}, {"state": "entry.card.basicData", "icon": "settings"},

View File

@ -14,7 +14,7 @@
<vn-th field="clientFk">Client</vn-th> <vn-th field="clientFk">Client</vn-th>
<vn-th field="isConfirmed" center>Confirmed</vn-th> <vn-th field="isConfirmed" center>Confirmed</vn-th>
<vn-th field="created" center expand>Created</vn-th> <vn-th field="created" center expand>Created</vn-th>
<vn-th field="landed" default-order="DESC" shrink-date>Landed</vn-th> <vn-th field="landed" shrink-date>Landed</vn-th>
<vn-th field="created" center>Hour</vn-th> <vn-th field="created" center>Hour</vn-th>
<vn-th field="agencyName" center>Agency</vn-th> <vn-th field="agencyName" center>Agency</vn-th>
<vn-th center>Total</vn-th> <vn-th center>Total</vn-th>

View File

@ -20,7 +20,7 @@
ng-model="$ctrl.ticketRequest.attenderFk" ng-model="$ctrl.ticketRequest.attenderFk"
url="Workers/activeWithRole" url="Workers/activeWithRole"
show-field="nickname" show-field="nickname"
where="{role: 'buyer'}" where="{role: {inq: ['logistic', 'buyer']}}"
search-function="{firstName: $search}"> search-function="{firstName: $search}">
</vn-autocomplete> </vn-autocomplete>
</vn-horizontal> </vn-horizontal>

View File

@ -1,7 +1,8 @@
<vn-crud-model auto-load="false" <vn-crud-model
vn-id="model" vn-id="model"
url="Tickets/{{$ctrl.$params.id}}/getSales" url="Tickets/{{$ctrl.$params.id}}/getSales"
data="$ctrl.sales"> data="$ctrl.sales"
auto-load="true">
</vn-crud-model> </vn-crud-model>
<vn-watcher <vn-watcher
vn-id="watcher" vn-id="watcher"

View File

@ -1,9 +1,10 @@
<vn-crud-model auto-load="false" <vn-crud-model
vn-id="model" vn-id="model"
url="Travels/extraCommunityFilter" url="Travels/extraCommunityFilter"
data="travels" data="travels"
order="landed ASC, shipped ASC, travelFk, loadPriority, agencyModeFk, evaNotes" order="landed ASC, shipped ASC, travelFk, loadPriority, agencyModeFk, evaNotes"
limit="20"> limit="20"
auto-load="true">
</vn-crud-model> </vn-crud-model>
<vn-portal slot="topbar"> <vn-portal slot="topbar">
<vn-searchbar <vn-searchbar

View File

@ -1,7 +1,8 @@
<vn-crud-model auto-load="true" <vn-crud-model
vn-id="model" vn-id="model"
url="Zones/getUpcomingDeliveries" url="Zones/getUpcomingDeliveries"
data="details"> data="details"
auto-load="true">
</vn-crud-model> </vn-crud-model>
<vn-data-viewer model="model"> <vn-data-viewer model="model">
<vn-card> <vn-card>