zengyicheng 1 year ago
parent
commit
e2ad12a24c

+ 17 - 1
src/components/courseDetail.vue

@@ -136,7 +136,7 @@
                   <div>导出信息</div>
                 </div>
                 <!--  -->
-                <div class="now_study" @click="uploadCourse" v-if="tType != 2">
+                <div class="now_study" @click="downDialogVisible = true" v-if="tType != 2">
                   <div class="returnIndexImg">
                     <img src="../assets/icon/newIcon/uploadCourse.png" alt="" />
                   </div>
@@ -717,6 +717,20 @@
       </div>
       <div class="cancelDiy" @click="dialogVisibleSk = false">取消</div>
     </el-dialog>
+    <el-dialog
+      title="提示"
+      :visible.sync="downDialogVisible"
+      width="500px"
+      :before-close="handleClose"
+      class="dialog_diy"
+      center
+    >
+      <div style="font-size: 18px;">是否导出该课程所有文件?</div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="downDialogVisible = false">取 消</el-button>
+        <el-button type="primary" @click="uploadCourse">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -784,6 +798,7 @@ export default {
       isFollow: "",
       followC: "",
       dialogVisibleQR: false,
+      downDialogVisible: false,
       checkStage: 0,
       tools: tools
     };
@@ -1569,6 +1584,7 @@ export default {
       // );
     },
     uploadCourse() {
+      this.downDialogVisible = false;
       const loading = this.$loading.service({
         background: "rgba(255, 255, 255, 0.7)",
         target: document.body,

+ 28 - 7
src/components/easy2/studyStudent.vue

@@ -1315,7 +1315,7 @@
                       type="primary"
                       v-if="tool.tool[0] == 16 && worksStudent[toolIndex].length > 0"
                       style="position: absolute; right: 30px; top: 30px"
-                      @click="uploadWorks(toolIndex)"
+                      @click="openTips(toolIndex)"
                       >导出作业</el-button
                     >
                     <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
@@ -11060,6 +11060,20 @@
         </div>
       </div>
     </el-dialog>
+    <el-dialog
+      title="提示"
+      :visible.sync="downDialogVisible"
+      width="500px"
+      :before-close="handleClose"
+      class="dialog_diy"
+      center
+    >
+      <div style="font-size: 18px;">是否导出作业?</div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="downDialogVisible = false">取 消</el-button>
+        <el-button type="primary" @click="uploadWorks">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -11337,6 +11351,8 @@ export default {
       dialogVisibleChoiceTeacher: false,
       answerDialogVisible: false,
       answerDialogVisibleTeacher: false,
+      downDialogVisible: false,
+      tipsIndex: 0,
       juriVisible: false,
       timeDialogVisible: false,
       replyDialogVisible: false,
@@ -18033,7 +18049,12 @@ export default {
       this.wordCloudData = array;
       this.dialogVisibleWordCloud = true;
     },
-    uploadWorks(i) {
+    openTips(i){
+      this.tipsIndex = i;
+      this.downDialogVisible = true;
+    },
+    uploadWorks() {
+      this.downDialogVisible = false;
       const loading = this.$loading.service({
         background: "rgba(255, 255, 255, 0.7)",
         target: document.body,
@@ -18042,8 +18063,8 @@ export default {
       const _worksStudent = this.worksStudent;
       let url = [];
       var counts = {};
-      for (var l = 0; l < _worksStudent[i].length; l++) {
-        var item = _worksStudent[i][l];
+      for (var l = 0; l < _worksStudent[this.tipsIndex].length; l++) {
+        var item = _worksStudent[this.tipsIndex][l];
         var name = item.sName;
         if (!counts.hasOwnProperty(name)) {
           counts[name] = 0;
@@ -18054,8 +18075,8 @@ export default {
           item.sName += " (" + counts[name] + ")";
         }
       }
-      for (var l = 0; l < _worksStudent[i].length; l++) {
-        var item = _worksStudent[i][l];
+      for (var l = 0; l < _worksStudent[this.tipsIndex].length; l++) {
+        var item = _worksStudent[this.tipsIndex][l];
         if (
           item.works.indexOf(
             "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
@@ -19767,7 +19788,7 @@ export default {
 .toolActive {
   height: auto !important;
   overflow: auto !important;
-  // padding-bottom: 16px;
+  /* padding-bottom: 16px; */
 }
 .toolActive {
   padding: 0;

+ 27 - 6
src/components/easy3/studyStudent.vue

@@ -1317,7 +1317,7 @@
                       type="primary"
                       v-if="tool.tool[0] == 16 && worksStudent[toolIndex].length > 0"
                       style="position: absolute; right: 30px; top: 30px"
-                      @click="uploadWorks(toolIndex)"
+                      @click="openTips(toolIndex)"
                       >导出作业</el-button
                     >
                     <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
@@ -11062,6 +11062,20 @@
         </div>
       </div>
     </el-dialog>
+    <el-dialog
+      title="提示"
+      :visible.sync="downDialogVisible"
+      width="500px"
+      :before-close="handleClose"
+      class="dialog_diy"
+      center
+    >
+      <div style="font-size: 18px;">是否导出作业?</div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="downDialogVisible = false">取 消</el-button>
+        <el-button type="primary" @click="uploadWorks">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -11339,6 +11353,8 @@ export default {
       dialogVisibleChoiceTeacher: false,
       answerDialogVisible: false,
       answerDialogVisibleTeacher: false,
+      downDialogVisible: false,
+      tipsIndex: 0,
       juriVisible: false,
       timeDialogVisible: false,
       replyDialogVisible: false,
@@ -18038,7 +18054,12 @@ export default {
       this.wordCloudData = array;
       this.dialogVisibleWordCloud = true;
     },
-    uploadWorks(i) {
+    openTips(i){
+      this.tipsIndex = i;
+      this.downDialogVisible = true;
+    },
+    uploadWorks() {
+      this.downDialogVisible = false;
       const loading = this.$loading.service({
         background: "rgba(255, 255, 255, 0.7)",
         target: document.body,
@@ -18047,8 +18068,8 @@ export default {
       const _worksStudent = this.worksStudent;
       let url = [];
       var counts = {};
-      for (var l = 0; l < _worksStudent[i].length; l++) {
-        var item = _worksStudent[i][l];
+      for (var l = 0; l < _worksStudent[this.tipsIndex].length; l++) {
+        var item = _worksStudent[this.tipsIndex][l];
         var name = item.sName;
         if (!counts.hasOwnProperty(name)) {
           counts[name] = 0;
@@ -18059,8 +18080,8 @@ export default {
           item.sName += " (" + counts[name] + ")";
         }
       }
-      for (var l = 0; l < _worksStudent[i].length; l++) {
-        var item = _worksStudent[i][l];
+      for (var l = 0; l < _worksStudent[this.tipsIndex].length; l++) {
+        var item = _worksStudent[this.tipsIndex][l];
         if (
           item.works.indexOf(
             "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"

+ 27 - 6
src/components/studyStudent.vue

@@ -1322,7 +1322,7 @@
                       type="primary"
                       v-if="tool.tool[0] == 16 && worksStudent[toolIndex].length > 0"
                       style="position: absolute; right: 30px; top: 30px"
-                      @click="uploadWorks(toolIndex)"
+                      @click="openTips(toolIndex)"
                       >导出作业</el-button
                     >
                     <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
@@ -11067,6 +11067,20 @@
         </div>
       </div>
     </el-dialog>
+    <el-dialog
+      title="提示"
+      :visible.sync="downDialogVisible"
+      width="500px"
+      :before-close="handleClose"
+      class="dialog_diy"
+      center
+    >
+      <div style="font-size: 18px;">是否导出作业?</div>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="downDialogVisible = false">取 消</el-button>
+        <el-button type="primary" @click="uploadWorks">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
@@ -11344,6 +11358,8 @@ export default {
       dialogVisibleChoiceTeacher: false,
       answerDialogVisible: false,
       answerDialogVisibleTeacher: false,
+      downDialogVisible: false,
+      tipsIndex: 0,
       juriVisible: false,
       timeDialogVisible: false,
       replyDialogVisible: false,
@@ -18040,7 +18056,12 @@ export default {
       this.wordCloudData = array;
       this.dialogVisibleWordCloud = true;
     },
-    uploadWorks(i) {
+    openTips(i){
+      this.tipsIndex = i;
+      this.downDialogVisible = true;
+    },
+    uploadWorks() {
+      this.downDialogVisible = false;
       const loading = this.$loading.service({
         background: "rgba(255, 255, 255, 0.7)",
         target: document.body,
@@ -18049,8 +18070,8 @@ export default {
       const _worksStudent = this.worksStudent;
       let url = [];
       var counts = {};
-      for (var l = 0; l < _worksStudent[i].length; l++) {
-        var item = _worksStudent[i][l];
+      for (var l = 0; l < _worksStudent[this.tipsIndex].length; l++) {
+        var item = _worksStudent[this.tipsIndex][l];
         var name = item.sName;
         if (!counts.hasOwnProperty(name)) {
           counts[name] = 0;
@@ -18061,8 +18082,8 @@ export default {
           item.sName += " (" + counts[name] + ")";
         }
       }
-      for (var l = 0; l < _worksStudent[i].length; l++) {
-        var item = _worksStudent[i][l];
+      for (var l = 0; l < _worksStudent[this.tipsIndex].length; l++) {
+        var item = _worksStudent[this.tipsIndex][l];
         if (
           item.works.indexOf(
             "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"