cambio estilos dropdown
This commit is contained in:
parent
6adc734f69
commit
7713d0bd6f
|
@ -1,6 +1,8 @@
|
||||||
vn-drop-down {
|
vn-drop-down {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
padding: 0 15px;
|
||||||
|
margin-left: -15px;
|
||||||
|
|
||||||
ul{
|
ul{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
<vn-none margin-medium-right>
|
<vn-none margin-medium-right>
|
||||||
<mg-ajax path="/production/api/States/productionStates" options="vnIndex as states" actions="$ctrl.states = states.model.states"></mg-ajax>
|
<mg-ajax path="/production/api/States/productionStates" options="vnIndex as states" actions="$ctrl.states = states.model.states"></mg-ajax>
|
||||||
<vn-icon-menu icon="assignment" items="$ctrl.states" selected="$ctrl.state"></vn-icon-menu>
|
<vn-icon-menu icon="assignment" items="$ctrl.states" selected="$ctrl.state"></vn-icon-menu>
|
||||||
|
</vn-none>
|
||||||
|
<vn-none>
|
||||||
|
|
||||||
</vn-none>
|
</vn-none>
|
||||||
<vn-icon-button vn-none margin-medium-right icon="textsms"></vn-icon-button>
|
<vn-icon-button vn-none margin-medium-right icon="textsms"></vn-icon-button>
|
||||||
<vn-icon-button vn-none margin-medium-right icon="person"></vn-icon-button>
|
<vn-icon-button vn-none margin-medium-right icon="person"></vn-icon-button>
|
||||||
|
@ -58,14 +61,14 @@
|
||||||
<vn-none>
|
<vn-none>
|
||||||
<vn-check model="ticket.cheched"></vn-check>
|
<vn-check model="ticket.cheched"></vn-check>
|
||||||
</vn-none>
|
</vn-none>
|
||||||
<vn-one>{{ticket.ticket}}</vn-one>
|
<vn-one>{{::ticket.ticket}}</vn-one>
|
||||||
<vn-two>{{ticket.agency}}</vn-two>
|
<vn-two>{{::ticket.agency}}</vn-two>
|
||||||
<vn-two>{{ticket.worker | ucwords}}</vn-two>
|
<vn-two>{{::ticket.worker | ucwords}}</vn-two>
|
||||||
<vn-one>{{ticket.hour}}</vn-one>
|
<vn-one>{{::ticket.hour}}</vn-one>
|
||||||
<vn-one>{{ticket.state}}</vn-one>
|
<vn-one>{{ticket.state}}</vn-one>
|
||||||
<vn-one>{{ticket.lines}}</vn-one>
|
<vn-one>{{::ticket.lines}}</vn-one>
|
||||||
<vn-one>{{ticket.m3}}</vn-one>
|
<vn-one>{{::ticket.m3}}</vn-one>
|
||||||
<vn-one>{{ticket.boxes}}</vn-one>
|
<vn-one>{{::ticket.boxes}}</vn-one>
|
||||||
<vn-none></vn-none>
|
<vn-none></vn-none>
|
||||||
</vn-horizontal>
|
</vn-horizontal>
|
||||||
<vn-horizontal vn-one margin-large-bottom class="list list-footer">
|
<vn-horizontal vn-one margin-large-bottom class="list list-footer">
|
||||||
|
|
|
@ -41,9 +41,12 @@ export default class ProductionIndex {
|
||||||
checks.forEach(
|
checks.forEach(
|
||||||
(_, i) => {
|
(_, i) => {
|
||||||
ids.push(this.tickets[i].ticket);
|
ids.push(this.tickets[i].ticket);
|
||||||
|
// Fake change state
|
||||||
|
this.tickets[i].state = this.state.name;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
console.log("TODO: call action -> endPoint with tickets's Ids", action, ids, arguments[1]);
|
console.log("TODO: call action -> endPoint with tickets's Ids", action, ids, this.state);
|
||||||
|
|
||||||
// TODO: call action -> endPoint with tickets's Ids
|
// TODO: call action -> endPoint with tickets's Ids
|
||||||
} else {
|
} else {
|
||||||
console.log("TODO: dialog with no items selected", action);
|
console.log("TODO: dialog with no items selected", action);
|
||||||
|
@ -68,7 +71,7 @@ export default class ProductionIndex {
|
||||||
}
|
}
|
||||||
$doCheck() {
|
$doCheck() {
|
||||||
if (this.state) {
|
if (this.state) {
|
||||||
this.doAction('changeState', Object.assign({}, this.state));
|
this.doAction('changeState');
|
||||||
this.state = null;
|
this.state = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue