From 4e9437b67baabd77e2464c97a29217d32c8579fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Mon, 22 May 2023 21:19:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=8F=AD=E7=BA=A7=E6=88=90?= =?UTF-8?q?=E7=BB=A9=E6=8A=98=E7=BA=BF=E9=94=99=E8=AF=AF=20KevinZou?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/teach/view/banji_chengji/index.html | 10 +++++++--- public/.htaccess | 0 public/nginx.htaccess | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 public/.htaccess 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 +}