diff --git a/app/teach/view/banji_chengji/index.html b/app/teach/view/banji_chengji/index.html index d9de5d6a..b88bcd93 100755 --- a/app/teach/view/banji_chengji/index.html +++ b/app/teach/view/banji_chengji/index.html @@ -159,10 +159,14 @@ layui.use(['table', 'mytable', 'laydate', 'myEchart', 'createInput'], function() // 条形统计图--平均分 function getDefenlv() { val = form.val('search'); + console.log(xk) // 添加图表中内容 - for (x in xk) { - echart.zhexian(xk[x].lieming, '/teach/banjicj/datatx', val, xk[x].title); - } + xk.forEach(element => { + console.log(element) + val.subject_id = element.id + console.log(val) + echart.zhexian(element.lieming, '/teach/banjicj/datatx', val, element.title); + }); } // 监听筛选 diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 00000000..e69de29b diff --git a/public/nginx.htaccess b/public/nginx.htaccess index 54ff4149..46f29ed4 100644 --- a/public/nginx.htaccess +++ b/public/nginx.htaccess @@ -3,4 +3,4 @@ location / { rewrite ^(.*)$ /index.php?s=$1 last; break; } -} \ No newline at end of file +}