зеркало из https://github.com/Azure/reddog-code.git
Now defaulting VUE_APP_STORE_ID within Dasbhoard.vue to 'redmond'. Made change to perform case-insensitive storeId comparison when populating sales/project display metrics. Made adjustment to default page title to 'Red Dog - Redmond'.
This commit is contained in:
Родитель
914255e2ab
Коммит
4080e00cb0
|
@ -323,7 +323,7 @@ export default {
|
|||
// "totalProfit": 489346.5500
|
||||
|
||||
data.payload.forEach((ord, index) => {
|
||||
if(ord.storeId === this.storeId){
|
||||
if(ord.storeId.toLowerCase() === this.storeId.toLowerCase()){
|
||||
salesLabels.push(moment(`${ord.orderMonth}-${ord.orderDay}-${ord.orderYear}`, "MM-DD-YYYY").add(ord.orderHour, 'hours').add(-4, 'hours').format('M/D hA'))
|
||||
salesValues.push(ord.totalSales.toFixed(0))
|
||||
profitValues.push(ord.totalProfit.toFixed(0))
|
||||
|
@ -716,6 +716,7 @@ export default {
|
|||
this.i18n.locale = "ar";
|
||||
this.$rtl.enableRTL();
|
||||
}
|
||||
document.title = 'Red Dog - ' + (process.env.VUE_APP_STORE_ID || 'Redmond');
|
||||
},
|
||||
beforeDestroy() {
|
||||
|
||||
|
@ -745,7 +746,7 @@ export default {
|
|||
else{
|
||||
|
||||
this.isCorp = false;
|
||||
this.storeId = process.env.VUE_APP_STORE_ID
|
||||
this.storeId = process.env.VUE_APP_STORE_ID || 'redmond'
|
||||
this.getOrderChartBranch();
|
||||
this.getAccountingOrderMetrics();
|
||||
this.getSalesProfitMetricsBranch();
|
||||
|
|
Загрузка…
Ссылка в новой задаче