From 907f0b5fca853fcffb0754e4a57d819803b7f46d Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 21 二月 2025 08:30:48 +0800 Subject: [PATCH] #四向库盘点、并板移库 --- src/main/webapp/views/home/console.html | 102 +++++++++++++++++++++++++------------------------- 1 files changed, 51 insertions(+), 51 deletions(-) diff --git a/src/main/webapp/views/home/console.html b/src/main/webapp/views/home/console.html index 562662f..cf553e4 100644 --- a/src/main/webapp/views/home/console.html +++ b/src/main/webapp/views/home/console.html @@ -113,63 +113,63 @@ // 楗煎浘 function pieCharts(){ $.ajax({ - url:baseUrl+'/console/loc/pie/charts', + url: baseUrl+'/console/loc/pie/charts', headers: {'token': localStorage.getItem('token')}, dataType: 'json', contentType: 'application/json;charset=UTF-8', crossDomain: true, method: 'POST', - success:function(res){ + success: function(res){ var data = res.data; - var dataPie=eval(data.rows); - var chart = { - plotBackgroundColor: null, - plotBorderWidth: null, - plotShadow: false - }; - var title = { - text: '搴撲綅浣跨敤姣斾緥', - margin:1, - style: {fontSize: '18px',color: '#777',fontWeight: 'bold'}, - y: 5 - }; - var tooltip = { - pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' - }; - var plotOptions = { - pie: { - allowPointSelect: true, - cursor: 'pointer', - dataLabels: { - enabled: true, - format: '<b>{point.name}</b>: {point.percentage:.1f} %', - style: { - color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' - } - } - } - }; - var series= [{ - type: 'pie', - name: '搴撲綅鍗犳瘮', - data: dataPie - }]; - var loading = { - hideDuration: 3, - showDuration: 3 - }; - var json = {}; - json.chart = chart; - json.title = title; - json.tooltip = tooltip; - json.series = series; - json.plotOptions = plotOptions; - json.loading = loading; - json.credits = {enabled: false}; - $('#pie').highcharts(json); + var dataPie = eval(data.rows); + Highcharts.chart('pie', { + chart: { + plotBackgroundColor: null, + plotBorderWidth: null, + plotShadow: false, + type: 'pie' + }, + title: { + text: '搴撲綅浣跨敤姣斾緥', + margin:1, + style: {fontSize: '18px',color: '#777',fontWeight: 'bold'}, + y: 5 + }, + credits:{ + enabled:false + }, + tooltip: { + pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>' + }, + legend:{ + align:'center', + labelFormat:'{name}:{y}' + }, + plotOptions: { + pie: { + allowPointSelect: true, + cursor: 'pointer', + dataLabels: { + enabled: true, + format: '<b>{point.name}</b>: {point.percentage:.1f} %', + style: { + color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black' + } + }, + showInLegend: true, + + } + }, + series: [{ + name: '搴撲綅鍗犳瘮', + colorByPoint: true, + data: dataPie + }] + }); }, - error:function(){ + error: function(){ + // 閿欒澶勭悊 } }); } @@ -235,7 +235,7 @@ var pageCurr; function getCol() { var cols = [ - {field: 'appe_time', title: '鍏ュ簱鏃堕棿', align: 'center', width: 200} + {field: 'appeTime$', title: '鍏ュ簱鏃堕棿', align: 'center', width: 200} ,{field: 'stay_time', align: 'center',title: '婊炵暀澶╂暟'} ,{field: 'loc_no', align: 'center',title: '搴撲綅鍙�'} ]; @@ -330,4 +330,4 @@ return fmt; } </script> -</html> \ No newline at end of file +</html> -- Gitblit v1.9.1