diff --git a/zssnfront/src/App.vue b/zssnfront/src/App.vue
index d039be9..b646ce8 100644
--- a/zssnfront/src/App.vue
+++ b/zssnfront/src/App.vue
@@ -24,7 +24,7 @@
-
+
@@ -58,7 +58,6 @@ export default {
Sobreviventes,
Inventarios,
Relatorios,
- Comercio,
Comercio
}
diff --git a/zssnfront/src/components/Comercio.vue b/zssnfront/src/components/Comercio.vue
index e1870b0..a8eb2d1 100644
--- a/zssnfront/src/components/Comercio.vue
+++ b/zssnfront/src/components/Comercio.vue
@@ -6,6 +6,8 @@
+
+
@@ -92,6 +109,7 @@
import Comercio from '../services/comercio';
import Inventarios from '../services/inventarios';
import Message from './Message.vue'
+ import Loading from './Loading.vue'
export default {
name: "Comercio",
@@ -114,12 +132,14 @@
sobrevivente: "",
itens: []
}
- }
+ },
+ isLoading: false
}
},
components: {
- Message
+ Message,
+ Loading
},
methods: {
@@ -135,6 +155,8 @@
},
buscar() {
+ this.isLoading = true
+
this.sobrevivente1 = {}
this.sobrevivente2 = {}
this.totalPontos1 = 0
@@ -142,6 +164,7 @@
if(this.id1 == this.id2 || this.id1 == "" || this.id2 == "" ){
this.showMessage("Preencha os campos corretamente!")
+ this.isLoading = false
} else {
Inventarios.getInventario(this.id1).then(response => {
@@ -155,14 +178,17 @@
this.sobrevivente1 = response.data
this.sobrevivente2 = response2.data
+ this.isLoading = false
}
}).catch(err => {
+ this.isLoading = false
this.showMessage("Erro ao buscar sobrevivente!")
if(err.response.data.message) {
this.showMessage((err.response.data.message))
}
})
}).catch(err => {
+ this.isLoading = false
this.showMessage("Erro ao buscar sobrevivente!")
if(err.response.data.message) {
this.showMessage((err.response.data.message))
@@ -216,6 +242,7 @@
},
requestTroca() {
+ this.isLoading = true
if(this.totalPontos1 == this.totalPontos2) {
this.comercio.sobrevivente1.sobrevivente = this.sobrevivente1.sobreviventeId
@@ -224,6 +251,7 @@
this.preComercio()
Comercio.trocar(this.comercio).then(response => {
+ this.isLoading = false
if(response.status == 200) {
this.showMessage("Troca realizada com sucesso!")
this.clearData()
@@ -236,6 +264,7 @@
}
})
} else {
+ this.isLoading = false
this.showMessage("A quantidade de pontos oferecidos é diferente!");
}
@@ -295,5 +324,19 @@
margin-left: 10px;
}
+ .collection-tem span {
+ color: black !important;
+ }
+
+ .item-name {
+ color: #26a69a;
+ }
+
+ li .secondary-content {
+ display: flex;
+ }
+ .collection .collection-item {
+ padding: 7px 7px;
+ }
diff --git a/zssnfront/src/components/Inventarios.vue b/zssnfront/src/components/Inventarios.vue
index 4c981bb..fe11a11 100644
--- a/zssnfront/src/components/Inventarios.vue
+++ b/zssnfront/src/components/Inventarios.vue
@@ -2,7 +2,9 @@
-
domain Inventários
+
domain Inventários
+
+
@@ -41,26 +43,34 @@
+
+
diff --git a/zssnfront/src/components/Relatorios.vue b/zssnfront/src/components/Relatorios.vue
index aeed8c3..7fd208b 100644
--- a/zssnfront/src/components/Relatorios.vue
+++ b/zssnfront/src/components/Relatorios.vue
@@ -2,6 +2,8 @@
+
+
report Relatórios da ZSSN
@@ -32,16 +34,22 @@