11wqe1 преди 2 седмици
родител
ревизия
1563320335
променени са 1 файла, в които са добавени 16 реда и са изтрити 69 реда
  1. 16 69
      src/components/pages/liyuan/bjspersonTop.vue

+ 16 - 69
src/components/pages/liyuan/bjspersonTop.vue

@@ -340,82 +340,19 @@ export default {
         query: params
       });
     },
-    getPageBase(type = 1) {
-      let params = {
-        typ: type,
-        org: this.org,
-        oid: this.oid
-      };
-      this.ajax
-        .get(this.$store.state.api + "selectTestExamineBase", params)
-        .then(res => {
-          this.ExamineBase = res.data[0];
-          if (type == 1 && !res.data[0].length) {
-            this.getPageBase(2);
-          }
-        })
-        .catch(error => {
-          console.log(error);
-        });
-    },
+
     isDeadlinePassed(deadline) {
       let _line = new Date(deadline);
       const currentDate = new Date();
       return currentDate > _line;
     },
-    checkType(type) {
-      this.type = type;
-      this.getWorks();
-    },
-    selectTestType(type) {
-      let params = {
-        oid: this.oid
-      };
-      this.ajax
-        .get(this.$store.state.api + "selectTestType", params)
-        .then(res => {
-          this.typeArray = res.data[0];
-          if (type == 1) {
-            this.type = "";
-          }
-          this.getWorks();
-        })
-        .catch(err => {
-          console.error(err);
-        });
-    },
- 
 
-    returnA() {
-      this.$router.push(
-        "/testStudent?userid=" +
-          this.userid +
-          "&oid=" +
-          this.oid +
-          "&org=" +
-          this.org +
-          "&role=" +
-          this.role
-      );
-    },
-    checkTest(cid, tid) {
-      this.$router.push(
-        "/checkTest?cid=" +
-          cid +
-          "&tid=" +
-          tid +
-          "&userid=" +
-          this.userid +
-          "&oid=" +
-          this.oid +
-          "&org=" +
-          this.org +
-          "&type=3" +
-          "&role=" +
-          this.role
-      );
-    },
     doTest(cid, tid) {
+      try {
+          window.topU.gotype = 'bjspersonTop'
+      } catch (error) {
+          console.log(error);
+      }
       this.$router.push(
         "/doTest?cid=" +
           cid +
@@ -433,6 +370,11 @@ export default {
       );
     },
     doTest2(cid) {
+      try {
+          window.topU.gotype = 'bjspersonTop'
+      } catch (error) {
+          console.log(error);
+      }
       this.$router.push(
         "/doTest?cid=" +
           cid +
@@ -448,6 +390,11 @@ export default {
       );
     },
     doTest3(item, course) {
+      try {
+          window.topU.gotype = 'bjspersonTop'
+      } catch (error) {
+          console.log(error);
+      }
       if (course.array.length) {
         this.$router.push(
           "/doTest?cid=" +