zs 2 年之前
父節點
當前提交
eaaa18567b
共有 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: [