cambio estilos dropdown
This commit is contained in:
parent
6adc734f69
commit
7713d0bd6f
|
@ -1,7 +1,9 @@
|
|||
vn-drop-down {
|
||||
position: absolute;
|
||||
z-index: 9999;
|
||||
|
||||
padding: 0 15px;
|
||||
margin-left: -15px;
|
||||
|
||||
ul{
|
||||
padding: 0;
|
||||
margin: 10px 0 0 0;
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
<vn-none margin-medium-right>
|
||||
<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-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="person"></vn-icon-button>
|
||||
|
@ -58,14 +61,14 @@
|
|||
<vn-none>
|
||||
<vn-check model="ticket.cheched"></vn-check>
|
||||
</vn-none>
|
||||
<vn-one>{{ticket.ticket}}</vn-one>
|
||||
<vn-two>{{ticket.agency}}</vn-two>
|
||||
<vn-two>{{ticket.worker | ucwords}}</vn-two>
|
||||
<vn-one>{{ticket.hour}}</vn-one>
|
||||
<vn-one>{{::ticket.ticket}}</vn-one>
|
||||
<vn-two>{{::ticket.agency}}</vn-two>
|
||||
<vn-two>{{::ticket.worker | ucwords}}</vn-two>
|
||||
<vn-one>{{::ticket.hour}}</vn-one>
|
||||
<vn-one>{{ticket.state}}</vn-one>
|
||||
<vn-one>{{ticket.lines}}</vn-one>
|
||||
<vn-one>{{ticket.m3}}</vn-one>
|
||||
<vn-one>{{ticket.boxes}}</vn-one>
|
||||
<vn-one>{{::ticket.lines}}</vn-one>
|
||||
<vn-one>{{::ticket.m3}}</vn-one>
|
||||
<vn-one>{{::ticket.boxes}}</vn-one>
|
||||
<vn-none></vn-none>
|
||||
</vn-horizontal>
|
||||
<vn-horizontal vn-one margin-large-bottom class="list list-footer">
|
||||
|
|
|
@ -41,9 +41,12 @@ export default class ProductionIndex {
|
|||
checks.forEach(
|
||||
(_, i) => {
|
||||
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
|
||||
} else {
|
||||
console.log("TODO: dialog with no items selected", action);
|
||||
|
@ -68,7 +71,7 @@ export default class ProductionIndex {
|
|||
}
|
||||
$doCheck() {
|
||||
if (this.state) {
|
||||
this.doAction('changeState', Object.assign({}, this.state));
|
||||
this.doAction('changeState');
|
||||
this.state = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue