فهرست منبع

Merge branch 'master' of http://git.cc-lotus.info/ball-court/ball-applet

YY 2 سال پیش
والد
کامیت
e24cf24f8a
1فایلهای تغییر یافته به همراه5 افزوده شده و 6 حذف شده
  1. 5 6
      pagesSchool/stuAdmin/stat/study.js

+ 5 - 6
pagesSchool/stuAdmin/stat/study.js

@@ -38,13 +38,13 @@ Page({
                         onInit: that.initChart
                     }
                 })
+                // 学校
+                const school = await app.$get(`/rss`, { student_id: res.data.info.id });
+                if (school.errcode == '0' && school.total > 0) {
+                    that.setData({ schoolList: school.data })
+                }
                 // 模拟请求
                 var times = setTimeout(async function () {
-                    // 学校
-                    const school = await app.$get(`/rss`, { student_id: res.data.info.id });
-                    if (school.errcode == '0' && school.total > 0) {
-                        that.setData({ schoolList: school.data })
-                    }
                     if (that.data.school_id) {
                         const arr = await app.$get(`/statistics/studentLearning`, { school_id: res.data.info.id, student_id: res.data.info.id });
                         if (arr.errcode == '0') {
@@ -108,7 +108,6 @@ Page({
                     grid: {
                         left: '2%',
                         right: '2%',
-                        bottom: '3%',
                         containLabel: true
                     },
                     xAxis: [