PMCORE-2547:Use the Service for HEADER COUNTER
correction
This commit is contained in:
@@ -172,10 +172,13 @@ export let cases = {
|
|||||||
|
|
||||||
export let casesHeader = {
|
export let casesHeader = {
|
||||||
get() {
|
get() {
|
||||||
return new Promise((resolutionFunc, rejectionFunc) => {
|
return axios.get(window.config.SYS_SERVER +
|
||||||
resolutionFunc({
|
'/api/1.0/' +
|
||||||
data: headerData
|
window.config.SYS_WORKSPACE +
|
||||||
});
|
'/home/counters', {
|
||||||
|
headers: {
|
||||||
|
'Authorization': 'Bearer ' + window.config.SYS_CREDENTIALS.accessToken
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.v-btn-texts-header {
|
.v-btn-texts-header {
|
||||||
font-size: 0.7vw;
|
font-size: 0.8vw;
|
||||||
}
|
}
|
||||||
.v-btn-header {
|
.v-btn-header {
|
||||||
min-width: 150px;
|
min-width: 150px;
|
||||||
@@ -60,4 +60,4 @@ export default {
|
|||||||
padding-bottom: 5px !important;
|
padding-bottom: 5px !important;
|
||||||
padding-top: 5px !important;
|
padding-top: 5px !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -361,15 +361,15 @@ export default {
|
|||||||
};
|
};
|
||||||
_.forEach(response, (v) => {
|
_.forEach(response, (v) => {
|
||||||
data.push({
|
data.push({
|
||||||
title: v.name,
|
title: this.$i18n.t(v.id),
|
||||||
counter: v.count,
|
counter: v.counter,
|
||||||
item: v.item,
|
item: v.item,
|
||||||
icon: info[v.item].icon,
|
icon: info[v.id].icon,
|
||||||
onClick: (obj) => {
|
onClick: (obj) => {
|
||||||
that.filterHeader = obj.item;
|
that.filterHeader = obj.item;
|
||||||
that.$refs["vueTable"].getData();
|
that.$refs["vueTable"].getData();
|
||||||
},
|
},
|
||||||
class: info[v.item].class,
|
class: info[v.id].class,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
Reference in New Issue
Block a user