소스 검색

修复测试bug

chenxiong 3 년 전
부모
커밋
b3525af2d6

+ 2 - 2
src/apis/bank.js

@@ -3,8 +3,8 @@ export default {
   listGoodsUserQuestion(data) {
 		return request({
 			url: '/bank/question/listGoodsUserQuestion',
-			data:data,
-			params: 'get'
+			params:data,
+			method: 'get'
 		})
 	},
 

+ 11 - 0
src/common/tools.js

@@ -1,5 +1,7 @@
 
 import * as baseUrls from '@/axios.js'
+import store from '@/store/index.js'
+import router from '@/router/index.js'
 
 export default {
   getToken() {
@@ -34,6 +36,15 @@ export default {
 		}
 	},
 
+  exit() {
+		localStorage.removeItem('user_account')
+		localStorage.removeItem('token')
+		store.state.userInfo = null
+		router.replace({
+      path: '/'
+    })
+	},
+
   //当前时间距离目标时间还有多久
 	GetRTime(EndTime, isDay = true) {
 		var EndTime = EndTime //结束时间

+ 1 - 0
src/components/footer/index.vue

@@ -8,6 +8,7 @@
             v-for="(item, index) in showList(links)"
             :key="index"
             :href="item.url ? item.url : 'javascript:;'"
+            target="_blank"
             >{{ item.name }}</a
           >
         </div>

+ 141 - 14
src/components/header/index.vue

@@ -13,12 +13,7 @@
         <ul class="list">
           <li v-for="(item, index) in showNav(header.Nav)" :key="index">
             <a v-if="item.name == '首页'" @click="go('/index')">首页</a>
-            <a
-              v-if="item.name == '走进祥粤'"
-              target="view_window"
-              href="https://www.xyyxt.net/abount"
-              >走进祥粤</a
-            >
+            <a v-if="item.name == '走进祥粤'" @click="go('/about')">走进祥粤</a>
             <a v-if="item.name == '课程'" @click="go('/course-list')">课程</a>
             <a v-if="item.name == '题库'" @click="go('/bank-list')">题库</a>
           </li>
@@ -26,15 +21,17 @@
       </nav>
       <div class="search">
         <div class="search__select">
-          <select>
-            <option value="1" selected>课程</option>
+          <select v-model="type">
+            <option value="1">课程</option>
             <option value="2">题库</option>
           </select>
         </div>
         <div class="search__input">
-          <input type="text" />
+          <input type="text" v-model="searchKey" />
         </div>
-        <div class="search__btn">搜索</div>
+        <el-button type="primary" @click="search" class="search__btn"
+          >搜索</el-button
+        >
       </div>
 
       <div class="userinfo" v-if="userInfo">
@@ -42,7 +39,12 @@
           <i class="pi"></i>
           <i class="el-icon-message-solid icon"></i>
         </a>
-        <a class="name" @click="go('/person-center')">
+        <a
+          class="name"
+          @click="go('/person-center')"
+          @mouseenter="mouseover"
+          @mouseleave="mouseLeave"
+        >
           <img
             :src="
               userInfo
@@ -54,6 +56,13 @@
             alt=""
           />
           <span>{{ userInfo && userInfo.realname }}</span>
+          <transition name="fade">
+            <ul class="modal-box" v-if="showBox">
+              <li @click.stop="go('/person-center/my-course')">我的课程</li>
+              <li @click.stop="go('/person-center/my-bank')">我的题库</li>
+              <li @click.stop="$tools.exit">退出登录</li>
+            </ul>
+          </transition>
         </a>
       </div>
       <div class="userinfo" v-else>
@@ -71,7 +80,12 @@ import { mapGetters } from "vuex";
 export default {
   name: "Header",
   data() {
-    return {};
+    return {
+      searchKey: "",
+      type: "1",
+      showBox: false,
+      timer: null,
+    };
   },
   computed: {
     ...mapGetters(["header", "userInfo"]),
@@ -94,6 +108,76 @@ export default {
         query,
       });
     },
+
+    search() {
+      if (!this.searchKey.trim()) {
+        this.$message({
+          type: "warning",
+          duration: 2000,
+          message: "请输入搜索内容",
+        });
+
+        return;
+      }
+      let type = this.type;
+      let path = this.$route.path;
+
+      if (path == "/bank-list") {
+        //在题库列表页面直接传参
+        if (type == "2") {
+          this.$emit("search", this.searchKey);
+        } else {
+          this.$router.push({
+            path: "/course-list",
+            query: {
+              searchKey: this.searchKey,
+            },
+          });
+        }
+      } else if (path == "/course-list") {
+        //在课程列表页面直接传参
+        if (type == "1") {
+          this.$emit("search", this.searchKey);
+        } else {
+          this.$router.push({
+            path: "/bank-list",
+            query: {
+              searchKey: this.searchKey,
+            },
+          });
+        }
+      } else {
+        //根据类型跳转题库或者列表页面
+        console.log(type);
+        if (type == "1") {
+          this.$router.push({
+            path: "/course-list",
+            query: {
+              searchKey: this.searchKey,
+            },
+          });
+        } else {
+          this.$router.push({
+            path: "/bank-list",
+            query: {
+              searchKey: this.searchKey,
+            },
+          });
+        }
+      }
+    },
+
+    mouseover() {
+      clearTimeout(this.timer);
+      this.showBox = true;
+    },
+
+    mouseLeave() {
+      clearTimeout(this.timer);
+      this.timer = setTimeout(() => {
+        this.showBox = false;
+      }, 500);
+    },
   },
 };
 </script>
@@ -166,13 +250,13 @@ export default {
       }
 
       &__btn {
+        padding: 0;
         text-align: center;
         width: 80px;
         height: 40px;
         line-height: 40px;
-        color: #fff;
         font-size: 14px;
-        background: #3f8dfd;
+        border-radius: 0;
       }
     }
 
@@ -205,9 +289,37 @@ export default {
         }
 
         &.name {
+          position: relative;
           img {
             width: 24px;
           }
+
+          .modal-box {
+            width: 162px;
+            background: #ffffff;
+            box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
+            border-radius: 8px;
+            position: absolute;
+            top: 55px;
+            left: -40px;
+            li {
+              margin-left: 10px;
+              border-bottom: 1px solid #eeeeee;
+              height: 40px;
+              line-height: 40px;
+              cursor: pointer;
+              padding-left: 5px;
+
+              &:hover {
+                background: #eeeeee;
+                color: #3f8dfd;
+              }
+
+              &:nth-last-of-type(1) {
+                border: 0;
+              }
+            }
+          }
         }
       }
     }
@@ -230,4 +342,19 @@ export default {
     }
   }
 }
+
+.fade-enter,
+.fade-leave-to {
+  opacity: 0;
+  height: 0;
+}
+.fade-enter-to,
+.fade-leave {
+  opacity: 1;
+  height: 122px;
+}
+.fade-enter-active,
+.fade-leave-active {
+  transition: all 0.3s;
+}
 </style>

+ 5 - 5
src/components/toolbar/index.vue

@@ -11,11 +11,11 @@
     </div>
 
     <div class="item">
-      <div class="text blue">02087085982</div>
+      <div class="text blue">020<br />87085982</div>
       <div class="text">报名咨询</div>
     </div>
-    <div class="item">
-      <img src="@/assets/top.png" class="img" alt="" @click="scollTop" />
+    <div class="item" @click="scollTop">
+      <img src="@/assets/top.png" class="img" alt="" />
       <div class="text">返回顶部</div>
     </div>
   </div>
@@ -71,7 +71,7 @@ export default {
   z-index: 12;
   .item {
     cursor: pointer;
-    width: 64px;
+    width: 78px;
     height: 80px;
     border-bottom: 1px solid #eeeeee;
     display: flex;
@@ -102,7 +102,7 @@ export default {
 
     .blue {
       font-weight: bold;
-      font-size: 16px;
+      font-size: 14px;
       color: #3f8dfd;
     }
   }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 236 - 4493
src/pages/about/index.vue


+ 7 - 0
src/pages/bank-exam-continue/index.vue

@@ -1475,6 +1475,13 @@ export default {
             this.setExamResult(result);
             this.$router.replace({
               path: "/bank-report/" + this.goodsId,
+              query: {
+                orderGoodsId: this.orderGoodsId,
+                chapterId: this.chapterId,
+                moduleId: this.moduleId,
+                examId: this.examId,
+                recordId: this.recordId,
+              },
             });
           }, 1000);
         })

+ 1 - 0
src/pages/bank-exam/index.vue

@@ -1887,6 +1887,7 @@ export default {
             this.$router.push({
               path: "/bank-report/" + this.goodsId,
               query: {
+                orderGoodsId: this.orderGoodsId,
                 chapterId: this.chapterId,
                 moduleId: this.moduleId,
                 examId: this.examId,

+ 11 - 1
src/pages/bank-list/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="payment">
-    <Header></Header>
+    <Header @search="search($event)"></Header>
     <section class="section">
       <div class="section__header">
         <div class="container">
@@ -178,15 +178,25 @@ export default {
         goodsStatus: 1,
         goodsType: 2,
         sortType: 1,
+        searchKey: "",
       },
       goodsList: [],
     };
   },
   mounted() {
+    this.params.searchKey = this.$route.query.searchKey || "";
     this.getEducationTypeList();
     this.changeSubject();
   },
   methods: {
+    search(key) {
+      this.params.searchKey = key || "";
+      this.params.projectId = "";
+      this.params.educationTypeId = "";
+      this.params.businessId = "";
+      this.params.subjectId = "";
+      this.changeSubject();
+    },
     changeSort(sortType) {
       if (this.params.sortType == sortType) return;
       this.params.sortType = sortType;

+ 4 - 0
src/pages/bank-report/index.vue

@@ -133,6 +133,7 @@ export default {
       moduleId: 0,
       examId: 0,
       recordId: 0,
+      orderGoodsId: "",
     };
   },
   computed: {
@@ -143,6 +144,7 @@ export default {
     this.moduleId = this.$route.query.moduleId;
     this.examId = this.$route.query.examId;
     this.recordId = this.$route.query.recordId;
+    this.orderGoodsId = this.$route.query.orderGoodsId || "";
     this.goodsId = this.$route.params.goodsId;
 
     this.examWrongRecordWrongNum();
@@ -178,6 +180,7 @@ export default {
       this.$router.replace({
         path: "/bank-exam/" + reportdata.goodsId,
         query: {
+          orderGoodsId: this.orderGoodsId,
           examId: reportdata.examId,
           moduleId: reportdata.moduleId || 0,
           chapterId: reportdata.chapterId || 0,
@@ -233,6 +236,7 @@ export default {
       this.$router.replace({
         path: "/bank-exam/" + this.goodsId,
         query: {
+          orderGoodsId: this.orderGoodsId,
           examId: this.nextExamId,
           moduleId: this.moduleId || 0,
           chapterId: this.chapterId || 0,

+ 11 - 4
src/pages/course-list/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="payment">
-    <Header></Header>
+    <Header @search="search($event)"></Header>
     <section class="section">
       <div class="section__header">
         <div class="container">
@@ -178,18 +178,25 @@ export default {
         goodsStatus: 1,
         goodsType: 1,
         sortType: 1,
+        searchKey: "",
       },
       goodsList: [],
     };
   },
   mounted() {
-    this.params.educationTypeId = this.$route.query.educationId;
-    this.params.projectId = this.$route.query.projectId;
-    this.params.businessId = this.$route.query.businessId;
+    this.params.searchKey = this.$route.query.searchKey || "";
     this.getEducationTypeList();
     this.changeSubject();
   },
   methods: {
+    search(key) {
+      this.params.searchKey = key || "";
+      this.params.projectId = "";
+      this.params.educationTypeId = "";
+      this.params.businessId = "";
+      this.params.subjectId = "";
+      this.changeSubject();
+    },
     changeSort(sortType) {
       if (this.params.sortType == sortType) return;
       this.params.sortType = sortType;

+ 114 - 15
src/pages/home/index.vue

@@ -12,8 +12,19 @@
             <a @click="go('/person-center/my-message')">
               <i class="el-icon-message-solid icon"></i>
             </a>
-            <a @click="go('/person-center')">
+            <a
+              @click="go('/person-center')"
+              @mouseenter="mouseover"
+              @mouseleave="mouseLeave"
+            >
               <i class="el-icon-user-solid icon"></i>
+              <transition name="fade">
+                <ul class="modal-box" v-show="showBox">
+                  <li @click.stop="go('/person-center/my-course')">我的课程</li>
+                  <li @click.stop="go('/person-center/my-bank')">我的题库</li>
+                  <li @click.stop="$tools.exit">退出登录</li>
+                </ul>
+              </transition>
             </a>
           </div>
         </div>
@@ -30,15 +41,17 @@
           </a>
           <div class="search">
             <div class="search__select">
-              <select>
-                <option value="1" selected>课程</option>
+              <select v-model="type">
+                <option value="1">课程</option>
                 <option value="2">题库</option>
               </select>
             </div>
             <div class="search__input">
-              <input type="text" />
+              <input v-model="searchKey" type="text" />
             </div>
-            <div class="search__btn">搜索</div>
+            <el-button type="primary" @click="search" class="search__btn"
+              >搜索</el-button
+            >
           </div>
           <div class="contact" v-if="header.serviceTel.status == 1">
             <div class="contact__phone">{{ header.serviceTel.tel }}</div>
@@ -61,8 +74,7 @@
               v-if="item.name === '走进祥粤'"
               :key="index"
               class="tab"
-              target="view_window"
-              href="https://www.xyyxt.net/abount"
+              @click="go('/about')"
               >走进祥粤</a
             >
             <a
@@ -122,7 +134,7 @@
                         class="item"
                         v-for="(aItem, aIndex) in item.list"
                         :key="'aItem' + aIndex"
-                        >{{ aItem.projectName }}</a
+                        >{{ aItem.projectName }}-{{ aItem.businessName }}</a
                       >
                     </div>
                   </div>
@@ -294,7 +306,7 @@
               :class="active1 === index ? 'active' : ''"
               @click="active1 = index"
             >
-              {{ item.projectName + " - " + item.businessName }}
+              {{ item.name }}
             </div>
           </div>
         </div>
@@ -354,7 +366,7 @@
               :class="active2 === index ? 'active' : ''"
               @click="active2 = index"
             >
-              {{ item.projectName + " - " + item.businessName }}
+              {{ item.name }}
             </div>
           </div>
         </div>
@@ -476,6 +488,7 @@ export default {
   },
   data() {
     return {
+      showBox: false,
       indexToken: "",
       indexUserAccount: "",
       colors: [],
@@ -538,6 +551,8 @@ export default {
       slideList: [],
       active1: 0, //推荐课程index
       active2: 0, //推荐题库index
+      searchKey: "",
+      type: "1",
     };
   },
   mounted() {
@@ -550,6 +565,35 @@ export default {
   methods: {
     ...mapMutations(["setUserInfo"]),
 
+    search() {
+      if (!this.searchKey.trim()) {
+        this.$message({
+          type: "warning",
+          duration: 2000,
+          message: "请输入搜索内容",
+        });
+
+        return;
+      }
+      let type = this.type;
+
+      //根据类型跳转题库或者列表页面
+      if (type == "1") {
+        this.$router.push({
+          path: "/course-list",
+          query: {
+            searchKey: this.searchKey,
+          },
+        });
+      } else {
+        this.$router.push({
+          path: "/bank-list",
+          query: {
+            searchKey: this.searchKey,
+          },
+        });
+      }
+    },
     advertisingHomeLocation() {
       this.$request.advertisingHomeLocation().then((res) => {
         this.swiperOptions.autoplay.delay = res.data.intervalTime * 1000;
@@ -671,6 +715,17 @@ export default {
         query,
       });
     },
+    mouseover() {
+      clearTimeout(this.timer);
+      this.showBox = true;
+    },
+
+    mouseLeave() {
+      clearTimeout(this.timer);
+      this.timer = setTimeout(() => {
+        this.showBox = false;
+      }, 500);
+    },
     login() {
       this.$refs.loginForm.validate((valid) => {
         if (valid) {
@@ -868,10 +923,38 @@ export default {
           color: #3f8dfd;
           font-size: 14px;
           padding: 0 14px;
+          position: relative;
 
           .icon {
             font-size: 20px;
           }
+          .modal-box {
+            width: 162px;
+            background: #ffffff;
+            box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
+            border-radius: 8px;
+            position: absolute;
+            top: 34px;
+            left: -40px;
+            li {
+              margin-left: 10px;
+              border-bottom: 1px solid #eeeeee;
+              height: 40px;
+              line-height: 40px;
+              cursor: pointer;
+              padding-left: 5px;
+              color: #666666;
+              text-align: left;
+              &:hover {
+                background: #eeeeee;
+                color: #3f8dfd;
+              }
+
+              &:nth-last-of-type(1) {
+                border: 0;
+              }
+            }
+          }
         }
       }
     }
@@ -924,13 +1007,13 @@ export default {
         }
 
         &__btn {
+          padding: 0;
           text-align: center;
           width: 80px;
           height: 40px;
           line-height: 40px;
-          color: #fff;
           font-size: 14px;
-          background: #3f8dfd;
+          border-radius: 0;
         }
       }
 
@@ -1019,7 +1102,7 @@ export default {
               transition: all 0.3s;
               width: 672px;
               padding: 0;
-              background: rgba(0, 0, 0, 0.8);
+              background: rgba(255, 255, 255, 1);
               position: absolute;
               top: 0;
               left: 0;
@@ -1030,7 +1113,7 @@ export default {
                 min-height: 80px;
                 display: flex;
                 align-items: center;
-                border-bottom: 1px solid rgba(255, 255, 255, 0.6);
+                border-bottom: 1px solid #ddd;
 
                 &:nth-last-of-type(1) {
                   border: 0;
@@ -1042,6 +1125,7 @@ export default {
                   height: 28px;
                   border: 1px solid #ffffff;
                   border-radius: 14px;
+                  background: #3f8dfd;
                   line-height: 26px;
                   text-align: center;
                   border-radius: 15px;
@@ -1061,7 +1145,7 @@ export default {
                       font-size: 14px;
                       font-family: Microsoft YaHei;
                       font-weight: 400;
-                      color: #ffffff;
+                      color: #666;
                     }
                   }
                 }
@@ -1093,6 +1177,7 @@ export default {
                 }
 
                 .text {
+                  flex: 1;
                   &__title {
                     cursor: pointer;
                     font-size: 16px;
@@ -1679,4 +1764,18 @@ export default {
     }
   }
 }
+.fade-enter,
+.fade-leave-to {
+  opacity: 0;
+  height: 0;
+}
+.fade-enter-to,
+.fade-leave {
+  opacity: 1;
+  height: 122px;
+}
+.fade-enter-active,
+.fade-leave-active {
+  transition: all 0.3s;
+}
 </style>

+ 2 - 0
src/pages/person-center/bank-record/index.vue

@@ -170,6 +170,7 @@ export default {
           this.$router.push({
             path: "/bank-exam/" + section.goodsId,
             query: {
+              orderGoodsId: section.orderGoodsId,
               examId: section.examId,
               moduleId: section.moduleExamId || 0,
               chapterId: section.chapterExamId || 0,
@@ -184,6 +185,7 @@ export default {
               moduleId: section.moduleExamId || 0,
               chapterId: section.chapterExamId || 0,
               goodsId: section.goodsId,
+              orderGoodsId: section.orderGoodsId,
             },
           });
         });

+ 2 - 0
src/pages/person-center/bank-record/record-list/index.vue

@@ -167,6 +167,7 @@ export default {
           this.$router.push({
             path: "/bank-exam/" + section.goodsId,
             query: {
+              orderGoodsId: section.orderGoodsId,
               examId: section.examId,
               moduleId: section.moduleExamId || 0,
               chapterId: section.chapterExamId || 0,
@@ -181,6 +182,7 @@ export default {
               moduleId: section.moduleExamId || 0,
               chapterId: section.chapterExamId || 0,
               goodsId: section.goodsId,
+              orderGoodsId: section.orderGoodsId,
             },
           });
         });

+ 11 - 3
src/pages/person-center/my-bank/bank-detail/index.vue

@@ -501,10 +501,15 @@
         <div class="right-box">
           <div class="right-box__header">
             <div class="title">
-              <router-link
-                :to="'/person-center/my-bank/bank-statistics/' + goodsId"
-                >做题统计></router-link
+              <div
+                @click="
+                  go('/person-center/my-bank/bank-statistics/' + goodsId, {
+                    orderGoodsId: orderGoodsId,
+                  })
+                "
               >
+                做题统计>
+              </div>
             </div>
             <div class="content">
               <div class="left">
@@ -634,6 +639,7 @@ export default {
     goodsBank() {
       this.$request
         .goodsBank({
+          orderGoodsId: this.orderGoodsId,
           goodsId: this.goodsId,
         })
         .then((res) => {
@@ -657,6 +663,7 @@ export default {
       }
       this.$request
         .goodsChapterList({
+          orderGoodsId: this.orderGoodsId,
           moduleExamId: Module.majorId,
           goodsId: this.goodsId,
         })
@@ -679,6 +686,7 @@ export default {
       }
       this.$request
         .bankExamExamList({
+          orderGoodsId: this.orderGoodsId,
           moduleExamId: moduleId,
           chapterExamId: chapter.chapterExamId || chapter.majorId,
           goodsId: this.goodsId,

+ 6 - 1
src/pages/person-center/my-classhour/appointment/index.vue

@@ -83,6 +83,7 @@ export default {
       var data = {
         goodsId: this.goodsId,
         gradeId: this.gradeId,
+        orderGoodsId: this.orderGoodsId,
       };
       this.$request.getApplysubscribe(data).then((res) => {
         if (res.data.applyStatus) {
@@ -125,7 +126,11 @@ export default {
           }
           if (res.data === 3) {
             this.$request
-              .goodsList({ makeGoodsId: this.goodsId, goodsType: 3 })
+              .goodsList({
+                makeGoodsId: this.goodsId,
+                goodsType: 3,
+                orderGoodsId: this.orderGoodsId,
+              })
               .then((res) => {
                 if (res.rows.length) {
                   this.goodsIdBK = res.rows[0].goodsId;

+ 8 - 2
src/pages/person-center/my-order/index.vue

@@ -83,14 +83,20 @@
                   </el-button>
                   <div
                     class="btn btn--nobg"
-                    v-if="item.orderStatus === 0"
+                    v-if="
+                      item.orderStatus === 0 &&
+                      (item.orderFrom === 2 || item.orderFrom === 3)
+                    "
                     @click="cancelOrder(item)"
                   >
                     取消订单
                   </div>
                   <div
                     class="btn btn--nobg"
-                    v-if="item.orderStatus === -1 || item.orderStatus === -2"
+                    v-if="
+                      (item.orderStatus === -1 || item.orderStatus === -2) &&
+                      (item.orderFrom === 2 || item.orderFrom === 3)
+                    "
                     @click="delOrder(item)"
                   >
                     删除订单

+ 24 - 21
src/pages/subject/collect-bank.vue

@@ -848,6 +848,7 @@ export default {
   data() {
     return {
       questionIndex: 0,
+      orderGoodsId: "",
       questionList: [],
       bankList: [],
       judge: ["错误", "正确"],
@@ -860,6 +861,7 @@ export default {
   async mounted() {
     this.examId = this.$route.params.examId;
     this.explain = this.$route.query.explain || "";
+    this.orderGoodsId = this.$route.query.orderGoodsId || "";
     this.collectQuestionExamQuestionList();
   },
   methods: {
@@ -884,6 +886,7 @@ export default {
       this.$request
         .collectQuestionExamQuestionList({
           examId: this.examId,
+          orderGoodsId: this.orderGoodsId,
         })
         .then(async (res) => {
           res.rows.forEach((item, index) => {
@@ -1054,13 +1057,13 @@ export default {
         this.questionList[questionIndex].ans
       ) {
       } else {
-        this.$request
-          .wrongRecordDelete({
-            examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
-            questionId: this.questionList[questionIndex].questionId,
-          })
-          .then((res) => {});
+        // this.$request
+        //   .wrongRecordDelete({
+        //     examId: this.questionList[questionIndex].examId,
+        //     goodsId: this.questionList[questionIndex].goodsId,
+        //     questionId: this.questionList[questionIndex].questionId,
+        //   })
+        //   .then((res) => {});
       }
     },
 
@@ -1107,13 +1110,13 @@ export default {
           (item) => item.questionId == this.questionList[bindex].questionId
         );
         if (question) {
-          this.$request
-            .wrongRecordDelete({
-              examId: question.examId,
-              goodsId: question.goodsId,
-              questionId: question.questionId,
-            })
-            .then((res) => {});
+          // this.$request
+          //   .wrongRecordDelete({
+          //     examId: question.examId,
+          //     goodsId: question.goodsId,
+          //     questionId: question.questionId,
+          //   })
+          //   .then((res) => {});
         }
       }
     },
@@ -1155,13 +1158,13 @@ export default {
         this.questionList[questionIndex].ans
       ) {
       } else {
-        this.$request
-          .wrongRecordDelete({
-            examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
-            questionId: this.questionList[questionIndex].questionId,
-          })
-          .then((res) => {});
+        // this.$request
+        //   .wrongRecordDelete({
+        //     examId: this.questionList[questionIndex].examId,
+        //     goodsId: this.questionList[questionIndex].goodsId,
+        //     questionId: this.questionList[questionIndex].questionId,
+        //   })
+        //   .then((res) => {});
       }
     },
     judgeSelectChild(questionIndex, jsonIndex, index) {

+ 21 - 21
src/pages/subject/collect-type-bank.vue

@@ -1054,13 +1054,13 @@ export default {
         this.questionList[questionIndex].ans
       ) {
       } else {
-        this.$request
-          .wrongRecordDelete({
-            examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
-            questionId: this.questionList[questionIndex].questionId,
-          })
-          .then((res) => {});
+        // this.$request
+        //   .wrongRecordDelete({
+        //     examId: this.questionList[questionIndex].examId,
+        //     goodsId: this.questionList[questionIndex].goodsId,
+        //     questionId: this.questionList[questionIndex].questionId,
+        //   })
+        //   .then((res) => {});
       }
     },
 
@@ -1107,13 +1107,13 @@ export default {
           (item) => item.questionId == this.questionList[bindex].questionId
         );
         if (question) {
-          this.$request
-            .wrongRecordDelete({
-              examId: question.examId,
-              goodsId: question.goodsId,
-              questionId: question.questionId,
-            })
-            .then((res) => {});
+          // this.$request
+          //   .wrongRecordDelete({
+          //     examId: question.examId,
+          //     goodsId: question.goodsId,
+          //     questionId: question.questionId,
+          //   })
+          //   .then((res) => {});
         }
       }
     },
@@ -1155,13 +1155,13 @@ export default {
         this.questionList[questionIndex].ans
       ) {
       } else {
-        this.$request
-          .wrongRecordDelete({
-            examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
-            questionId: this.questionList[questionIndex].questionId,
-          })
-          .then((res) => {});
+        // this.$request
+        //   .wrongRecordDelete({
+        //     examId: this.questionList[questionIndex].examId,
+        //     goodsId: this.questionList[questionIndex].goodsId,
+        //     questionId: this.questionList[questionIndex].questionId,
+        //   })
+        //   .then((res) => {});
       }
     },
     judgeSelectChild(questionIndex, jsonIndex, index) {

+ 5 - 3
src/pages/subject/wrong-bank.vue

@@ -849,6 +849,7 @@ export default {
     return {
       questionIndex: 0,
       questionList: [],
+      orderGoodsId: "",
       bankList: [],
       judge: ["错误", "正确"],
       ast: ["A", "B", "C", "D", "E", "F", "G"],
@@ -860,6 +861,7 @@ export default {
   async mounted() {
     this.examId = this.$route.params.examId;
     this.explain = this.$route.query.explain || "";
+    this.orderGoodsId = this.$route.query.orderGoodsId || "";
     this.wrongRecordExamQuestionList();
   },
   methods: {
@@ -1057,7 +1059,7 @@ export default {
         this.$request
           .wrongRecordDelete({
             examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
+            orderGoodsId: this.questionList[questionIndex].orderGoodsId,
             questionId: this.questionList[questionIndex].questionId,
           })
           .then((res) => {});
@@ -1110,7 +1112,7 @@ export default {
           this.$request
             .wrongRecordDelete({
               examId: question.examId,
-              goodsId: question.goodsId,
+              orderGoodsId: question.orderGoodsId,
               questionId: question.questionId,
             })
             .then((res) => {});
@@ -1158,7 +1160,7 @@ export default {
         this.$request
           .wrongRecordDelete({
             examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
+            orderGoodsId: this.questionList[questionIndex].orderGoodsId,
             questionId: this.questionList[questionIndex].questionId,
           })
           .then((res) => {});

+ 5 - 3
src/pages/subject/wrong-type-bank.vue

@@ -855,11 +855,13 @@ export default {
       current: 0,
       type: "",
       explain: "",
+      orderGoodsId: "",
     };
   },
   async mounted() {
     this.type = this.$route.params.type;
     this.explain = this.$route.query.explain || "";
+    this.orderGoodsId = this.$route.query.orderGoodsId || "";
     this.wrongRecordTypeQuestionList();
   },
   methods: {
@@ -1056,7 +1058,7 @@ export default {
         this.$request
           .wrongRecordDelete({
             examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
+            orderGoodsId: this.questionList[questionIndex].orderGoodsId,
             questionId: this.questionList[questionIndex].questionId,
           })
           .then((res) => {});
@@ -1109,7 +1111,7 @@ export default {
           this.$request
             .wrongRecordDelete({
               examId: question.examId,
-              goodsId: question.goodsId,
+              orderGoodsId: question.orderGoodsId,
               questionId: question.questionId,
             })
             .then((res) => {});
@@ -1157,7 +1159,7 @@ export default {
         this.$request
           .wrongRecordDelete({
             examId: this.questionList[questionIndex].examId,
-            goodsId: this.questionList[questionIndex].goodsId,
+            orderGoodsId: this.questionList[questionIndex].orderGoodsId,
             questionId: this.questionList[questionIndex].questionId,
           })
           .then((res) => {});

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.