graph selectedMaintenance

This commit is contained in:
Alessandro Francia
2018-05-25 08:41:07 +02:00
parent 96cd9dad38
commit 00a58612df
4 changed files with 19 additions and 5 deletions
@@ -151,7 +151,7 @@
}
.maintenance-box-right{
position: relative;
&.selectedMaintenance::after{
&.enableMaintenance::after{
content: "Devi selezionare una manutenzione";
position: absolute;
top: 0;
+1 -1
View File
@@ -7457,7 +7457,7 @@ footer .container button.big:before {
.maintenance-box-right {
position: relative;
}
.maintenance-box-right.selectedMaintenance::after {
.maintenance-box-right.enableMaintenance::after {
content: "Devi selezionare una manutenzione";
position: absolute;
top: 0;
+15 -1
View File
@@ -5,5 +5,19 @@ import {maintenanceCard} from "src/modules/base-components/cards";
@Component({ components: { MaintenanceProgress, maintenanceCard } })
export default class Maintenance extends Vue {
public selectedMaintenance: boolean = false;
public enableMaintenance: boolean = true;
public selectedMaintenance: any = null;
public test(){
if(this.selectedMaintenance){
this.selectedMaintenance = null;
this.enableMaintenance = true;
}
else{
this.selectedMaintenance = {};
this.enableMaintenance = false;
}
}
}
+2 -2
View File
@@ -33,7 +33,7 @@
</tr>
</thead>
<tbody class="scrollable">
<tr>
<tr @click="test()">
<td colspan="1">Effettuare la pulizia</td>
<td colspan="1"><maintenance-progress></maintenance-progress></td>
<td colspan="1">7 gg</td>
@@ -57,7 +57,7 @@
</div>
</div>
<div class="maintenance-box-right" :class="{'selectedMaintenance': selectedMaintenance}">
<div class="maintenance-box-right" :class="{'enableMaintenance': enableMaintenance}">
<maintenance-card></maintenance-card>
</div>
</div>