Browse Source

修改问题

lex-xin 9 months ago
parent
commit
172144756e

+ 1 - 1
src/views/afterSchoolManager/components/textConment.vue

@@ -66,7 +66,7 @@ export default {
       const videoMusic = []
       const txt = []
       child.forEach(c => {
-        if(c === "DESCRIPTION") {
+        if(c.homeworkType === "DESCRIPTION") {
           txt.push(c)
         } else {
           videoMusic.push(c)

+ 5 - 0
src/views/afterSchoolManager/modal/homework-detail.vue

@@ -153,6 +153,11 @@ export default {
     },
     onDetail(row) {
       this.selectItem = row.fileJson && row.fileJson.length > 0 ? row.fileJson[0] : {}
+      console.log(this.selectItem, 'this.selectItem')
+      if(this.selectItem.expireFlag) {
+        this.$message.error('文件已过期')
+        return
+      }
       this.videoVisible = true
     }
   }

+ 1 - 1
src/views/attendanceManager/attendanceList/components/textConment.vue

@@ -66,7 +66,7 @@ export default {
       const videoMusic = []
       const txt = []
       child.forEach(c => {
-        if(c === "DESCRIPTION") {
+        if(c.homeworkType === "DESCRIPTION") {
           txt.push(c)
         } else {
           videoMusic.push(c)

+ 5 - 0
src/views/attendanceManager/modal/homework-detail.vue

@@ -136,6 +136,11 @@ export default {
     },
     onDetail(row) {
       this.selectItem = row.fileJson && row.fileJson.length > 0 ? row.fileJson[0] : {}
+      console.log(this.selectItem, 'this.selectItem')
+      if(this.selectItem.expireFlag) {
+        this.$message.error('文件已过期')
+        return
+      }
       this.videoVisible = true
     }
   }