lsc %!s(int64=2) %!d(string=hai) anos
pai
achega
02cda0009b

+ 7 - 2
src/components/pages/components/worksDetail2.vue

@@ -134,7 +134,9 @@
               <div>
                 {{
                   dyList.length > 0
-                    ? dyList[scope.row.stage].taskList[scope.row.task].name
+                    ? dyList[scope.row.stage].taskList[scope.row.task]
+                      ? dyList[scope.row.stage].taskList[scope.row.task].name
+                      : ""
                     : ""
                 }}
               </div>
@@ -2702,11 +2704,14 @@ export default {
 .answerbox {
   display: flex;
   flex-direction: row;
-  align-items: center;
+  /* align-items: center; */
   margin-bottom: 20px;
   font-size: 18px;
   font-weight: bold;
 }
+.answerbox > div:nth-child(1) {
+  min-width: 70px;
+}
 .answerbox > div:nth-child(2) {
   margin-left: 15px;
 }

+ 2 - 2
src/components/pages/works.vue

@@ -390,9 +390,9 @@ export default {
       //获取作业
       this.signDialog = true;
       this.isLoading2 = true;
-      this.checkCourse = row.courseId;
+      this.checkCourse = row ? row.courseId : this.checkCourse;
       let params = {
-        cid: row.courseId,
+        cid: this.checkCourse,
         uname: "",
         stage: "",
         task: "",