优化首页
This commit is contained in:
@@ -123,6 +123,8 @@
|
||||
}).find('.box-header, .nav-tabs').css('cursor', 'move');
|
||||
|
||||
$(function () {
|
||||
var loginName = sessionStorage.getItem("loginName");
|
||||
if(loginName!="admin") {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/depotHead/getBuyAndSaleStatistics",
|
||||
@@ -140,9 +142,16 @@
|
||||
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$("#todaySale").text("--");
|
||||
$("#thisMonthSale").text("--");
|
||||
$("#thisMonthBuy").text("--");
|
||||
}
|
||||
});
|
||||
|
||||
$(function () {
|
||||
var loginName = sessionStorage.getItem("loginName");
|
||||
if(loginName!="admin") {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/account/getStatistics",
|
||||
@@ -158,6 +167,9 @@
|
||||
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$("#thisMonthAmount").text("--");
|
||||
}
|
||||
});
|
||||
|
||||
function getChartObj(titleName, categories, seriesData) {
|
||||
@@ -184,6 +196,8 @@
|
||||
return chartObj;
|
||||
}
|
||||
$(function () {
|
||||
var loginName = sessionStorage.getItem("loginName");
|
||||
if(loginName!="admin") {
|
||||
$.ajax({
|
||||
type: "get",
|
||||
url: "/depotItem/buyOrSalePrice",
|
||||
@@ -199,6 +213,10 @@
|
||||
|
||||
}
|
||||
});
|
||||
} else {
|
||||
Highcharts.chart('buyIn', getChartObj("最近6个月采购数据", [], []));
|
||||
Highcharts.chart('saleOut', getChartObj("最近6个月销售数据", [], []));
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user