diff --git a/chapter2/init.sql b/chapter2/init.sql index 773ffea..ee06b37 100644 --- a/chapter2/init.sql +++ b/chapter2/init.sql @@ -86,3 +86,4 @@ create table datas ( PRIMARY KEY (`id`) ) comment = '通用配置表'; insert into datas (`key`, data) values ('from_type', '{}'); +insert into datas (`key`, data) values ('last_month_sell', '{}'); diff --git a/chapter2/mysite/myapp/static/scripts/trend.js b/chapter2/mysite/myapp/static/scripts/trend.js index 1dd5fe4..2c75b4d 100755 --- a/chapter2/mysite/myapp/static/scripts/trend.js +++ b/chapter2/mysite/myapp/static/scripts/trend.js @@ -145,7 +145,6 @@ $(function(){ ] }) - //传染病发病趋势 if (document.getElementById('lineChart1')) { var lineChart1 = echarts.init(document.getElementById('lineChart1')); if(lineChart1){ @@ -356,7 +355,7 @@ $(function(){ var lineChart2 = echarts.init(document.getElementById('lineChart2')); lineChart2.setOption({ title: { - text: '购买趋势', + text: '前5月购买趋势', textStyle:{ fontSize:16, color:'#32cd32' @@ -424,7 +423,7 @@ $(function(){ ], series : [ { - name:'购买趋势', + name:'前5月购买趋势', type:'line', smooth:true, itemStyle: {normal: {areaStyle: {type: 'default'}}}, diff --git a/chapter2/mysite/myapp/templates/myapp/result.html b/chapter2/mysite/myapp/templates/myapp/result.html index 344128c..9d7c9dc 100644 --- a/chapter2/mysite/myapp/templates/myapp/result.html +++ b/chapter2/mysite/myapp/templates/myapp/result.html @@ -69,7 +69,7 @@