Merged in feature/PMCORE-2547 (pull request #7617)

PMCORE-2547

Approved-by: Rodrigo Quelca
This commit is contained in:
Fabio Guachalla
2020-12-15 14:46:20 +00:00
committed by Rodrigo Quelca
3 changed files with 14 additions and 11 deletions

View File

@@ -172,10 +172,13 @@ export let cases = {
export let casesHeader = {
get() {
return new Promise((resolutionFunc, rejectionFunc) => {
resolutionFunc({
data: headerData
});
return axios.get(window.config.SYS_SERVER +
'/api/1.0/' +
window.config.SYS_WORKSPACE +
'/home/counters', {
headers: {
'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken
}
});
}
};
};

View File

@@ -51,7 +51,7 @@ export default {
}
.v-btn-texts-header {
font-size: 0.7vw;
font-size: 0.8vw;
}
.v-btn-header {
min-width: 150px;
@@ -60,4 +60,4 @@ export default {
padding-bottom: 5px !important;
padding-top: 5px !important;
}
</style>
</style>

View File

@@ -361,15 +361,15 @@ export default {
};
_.forEach(response, (v) => {
data.push({
title: v.name,
counter: v.count,
title: this.$i18n.t(v.id),
counter: v.counter,
item: v.item,
icon: info[v.item].icon,
icon: info[v.id].icon,
onClick: (obj) => {
that.filterHeader = obj.item;
that.$refs["vueTable"].getData();
},
class: info[v.item].class,
class: info[v.id].class,
});
});
return data;