Merged in feature/PMCORE-2547 (pull request #7617)
PMCORE-2547 Approved-by: Rodrigo Quelca
This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user