lsc 1 year ago
parent
commit
7a5711c755

+ 1 - 1
dist/index.html

@@ -18,7 +18,7 @@
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
-    }</style><link href=./static/css/app.bb4e5c7e509fd6ae6fa7962b7abd06de.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2ea62301d5bc18e5b15b.js></script><script type=text/javascript src=./static/js/app.3417f1da8a213294d0a5.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.ba10903d92e947f0a50f5c7a615b1813.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.2ea62301d5bc18e5b15b.js></script><script type=text/javascript src=./static/js/app.2969749ef052d6a4fdcd.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.ba10903d92e947f0a50f5c7a615b1813.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.ba10903d92e947f0a50f5c7a615b1813.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.2969749ef052d6a4fdcd.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.2969749ef052d6a4fdcd.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 42 - 9
src/components/studentIndex.vue

@@ -417,6 +417,26 @@ export default {
             }
           }
         }
+      } else if (typeName == "学科") {
+        if (type == 1) {
+          if (this.typeE.indexOf(typeid) != -1) {
+            this.typeE.splice(this.typeE.indexOf(typeid), 1);
+          } else {
+            this.typeE.push(typeid);
+            if (this.typed != "") {
+              this.typed = "";
+            }
+          }
+        } else {
+          if (this.typed == typeid) {
+            this.typed = "";
+          } else {
+            this.typed = typeid;
+            if (this.typeE.indexOf(ftypeId) != -1) {
+              this.typeE.splice(this.typeE.indexOf(ftypeId), 1);
+            }
+          }
+        }
       } else if (typeName == "项目类型") {
         if (type == 1) {
           if (this.typeE.indexOf(typeid) != -1) {
@@ -698,29 +718,42 @@ export default {
           this.CourseType = res.data;
 
           for (var i = 0; i < res.data[0].length; i++) {
+            if(res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5"){
+              res.data[0][i].name = "赛道";
+            }else if(res.data[0][i].id == "2f8beae3-d030-11ec-8c78-005056b86db5"){
+              res.data[0][i].name = "主题";
+            }else if(res.data[0][i].id == "34628934-d02f-11ec-8c78-005056b86db5"){
+              res.data[0][i].name = "年级";
+            }
             if (!this.CourseTypeJson[res.data[0][i].id]) {
               this.CourseTypeJson[res.data[0][i].id] = [];
             }
             if (this.oid == "1c3b9def-8fbe-11ed-b13d-005056b86db5") {
-              if (res.data[0][i].name == "赛道") {
+              if (res.data[0][i].id == "34629ce3-d02f-11ec-8c78-005056b86db5") {
                 this.CourseType[0][i].name = "项目类型";
               }
+            }else if(this.org == '150e3120-9195-11ed-b13d-005056b86db5'){
+
+            }else{
+              if (res.data[0][i].name == "赛道") {
+                this.CourseType[0][i].name = "学科";
+              }
             }
 
             if (res.data[2].length == 0 && res.data[3].length == 0) {
-              // for (var j = 0; j < res.data[1].length; j++) {
-              //   if (res.data[0][i].id == res.data[1][j].pid) {
-              //     this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
-              //   }
-              // }
-              if (this.org == '150e3120-9195-11ed-b13d-005056b86db5') {
+              if(this.org == '150e3120-9195-11ed-b13d-005056b86db5'){
+                for (var j = 0; j < res.data[1].length; j++) {
+                  if (res.data[0][i].id == res.data[1][j].pid) {
+                    this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
+                  }
+                }
+              }else{
+                // this.CourseType = []
                 for (var j = 0; j < res.data[1].length; j++) {
                   if (res.data[0][i].id == res.data[1][j].pid) {
                     this.CourseTypeJson[res.data[0][i].id].push(res.data[1][j]); // 去除公共分类
                   }
                 }
-              } else {
-                this.CourseType = []
               }
             } else {
               if (res.data[2].length > 0) {

Some files were not shown because too many files changed in this diff