Sfoglia il codice sorgente

03/28 15:54

课表列表  网管课评价 时间必填
Xiao_Mo 5 anni fa
parent
commit
d0c594d4ec

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


+ 1 - 1
dist/static/css/chunk-5d1de07c.1f8f3a96.css → dist/static/css/chunk-3c9d6427.2a55adcb.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.wrap[data-v-66f9505a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-66f9505a]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-66f9505a],.wrap .rightCell[data-v-66f9505a]{width:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:50px}.wrap .rightCell[data-v-66f9505a]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wrap .rightCell p[data-v-66f9505a]{margin-right:30px}[data-v-66f9505a] .el-tag{cursor:pointer}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.wrap[data-v-6d086b5d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-6d086b5d]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.wrap .leftCell[data-v-6d086b5d],.wrap .rightCell[data-v-6d086b5d]{width:300px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:50px}.wrap .rightCell[data-v-6d086b5d]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.wrap .rightCell p[data-v-6d086b5d]{margin-right:30px}[data-v-6d086b5d] .el-tag{cursor:pointer}

+ 1 - 1
dist/static/css/chunk-ab4515fa.6c1af9fe.css → dist/static/css/chunk-5dd9c9c4.688c8c81.css

@@ -1 +1 @@
-.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.inputStyle[data-v-29a2e64d]{width:100px;text-align:center}.title[data-v-0eb05fc4]{margin-bottom:20px}.amap-demo[data-v-0eb05fc4]{height:300px}.inputStyle[data-v-63cd9bec]{width:100px;text-align:center}.work[data-v-63cd9bec]{margin-bottom:30px;font-size:16px}.visible[data-v-661f9985]{visibility:hidden}.cl-container .topFrom[data-v-661f9985]{margin:20px 30px 0}.cl-container .topFrom .classlist[data-v-661f9985]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cl-container .topFrom .classlist ul li[data-v-661f9985]{list-style:none}.cl-container .searchForm[data-v-661f9985]{margin:0 30px}.btnWraps[data-v-661f9985]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.btnWraps div[data-v-661f9985]{margin-right:20px}.inputStyle[data-v-661f9985]{width:180px}.red[data-v-661f9985]{color:red}.exportBtn[data-v-661f9985]{background:#13817a}
+.pagination-container[data-v-31cb099a]{background:#fff;padding:32px 16px;width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination-container.hidden[data-v-31cb099a]{display:none}.inputStyle[data-v-29a2e64d]{width:100px;text-align:center}.title[data-v-0eb05fc4]{margin-bottom:20px}.amap-demo[data-v-0eb05fc4]{height:300px}.inputStyle[data-v-63cd9bec]{width:100px;text-align:center}.work[data-v-63cd9bec]{margin-bottom:30px;font-size:16px}.visible[data-v-f06fddf2]{visibility:hidden}.cl-container .topFrom[data-v-f06fddf2]{margin:20px 30px 0}.cl-container .topFrom .classlist[data-v-f06fddf2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.cl-container .topFrom .classlist ul li[data-v-f06fddf2]{list-style:none}.cl-container .searchForm[data-v-f06fddf2]{margin:0 30px}.btnWraps[data-v-f06fddf2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.btnWraps div[data-v-f06fddf2]{margin-right:20px}.inputStyle[data-v-f06fddf2]{width:180px}.red[data-v-f06fddf2]{color:red}.exportBtn[data-v-f06fddf2]{background:#13817a}

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.1e7495be.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-3c9d6427.016a1138.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-5d1de07c.b2d40a2e.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-5dd9c9c4.48e7ac60.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-ab4515fa.c2ea7243.js


+ 9 - 2
src/views/evaluateManager/networkList.vue

@@ -93,6 +93,7 @@
           range-separator="至"
           start-placeholder="开始日期"
           end-placeholder="结束日期"
+          :default-time="['00:00:00', '23:59:59']">
         ></el-date-picker>
       </el-form-item>
       <el-form-item>
@@ -397,9 +398,12 @@ export default {
       obj.hasArrived = this.searchForm.hasArrived || null;
       obj.homeWorkReplied = this.searchForm.homeWorkReplied || null;
       obj.search = this.searchForm.search;
-      if (this.searchForm.month.length > 0) {
+      if (this.searchForm.month&&this.searchForm.month.length > 0) {
         obj.startTime = this.searchForm.month[0];
         obj.endTime = this.searchForm.month[1];
+      }else{
+        this.$message.error('请选择时间范围')
+        return
       }
 
       obj.page = this.rules.page;
@@ -512,9 +516,12 @@ export default {
       this.searchForm.homeWorkReplied
         ? (obj.homeWorkReplied = this.searchForm.homeWorkReplied)
         : null;
-      if (this.searchForm.month.length > 0) {
+     if (this.searchForm.month&&this.searchForm.month.length > 0) {
         obj.startTime = this.searchForm.month[0];
         obj.endTime = this.searchForm.month[1];
+      }else{
+        this.$message.error('请选择时间范围')
+        return
       }
       const options = {
         method: "POST",

+ 59 - 41
src/views/teamDetail/teamCourseList.vue

@@ -24,7 +24,12 @@
           </el-select>
         </el-form-item>
         <el-form-item>
-          <el-select v-model.trim="searchForm.teacherIdList" clearable filterable placeholder="请选择老师">
+          <el-select
+            v-model.trim="searchForm.teacherIdList"
+            clearable
+            filterable
+            placeholder="请选择老师"
+          >
             <el-option
               v-for="(item, index) in teacherList"
               :key="index"
@@ -103,12 +108,10 @@
           <el-table-column align="center" prop="classGroupName" label="班级名称"></el-table-column>
           <el-table-column align="center" prop="studentId" label="学生id">
             <template slot-scope="scope">
-              <div v-if="scope.row.groupType != 'MUSIC'">
-                {{scope.row.studentId}}
-              </div>
+              <div v-if="scope.row.groupType != 'MUSIC'">{{scope.row.studentId}}</div>
             </template>
           </el-table-column>
-           <el-table-column align="center" prop="subjectName" label="声部"></el-table-column>
+          <el-table-column align="center" prop="subjectName" label="声部"></el-table-column>
           <el-table-column align="center" prop="name" label="课程名称"></el-table-column>
           <el-table-column align="center" label="课程类型">
             <template slot-scope="scope">
@@ -135,16 +138,16 @@
               <div>{{ scope.row.isSignIn | attendanceType}}</div>
             </template>
           </el-table-column>
-          <el-table-column align="center" label="是否签退"  fixed="right">
+          <el-table-column align="center" label="是否签退" fixed="right">
             <template slot-scope="scope">
               <div>{{ scope.row.isSignOut | attendanceOutType}}</div>
             </template>
           </el-table-column>
-          <el-table-column align="center" prop="isCallNames" label="是否点名"  fixed="right">
+          <el-table-column align="center" prop="isCallNames" label="是否点名" fixed="right">
             <template slot-scope="scope">{{ scope.row.isCallNames ? '是' : '否' }}</template>
           </el-table-column>
-          <el-table-column align="center" prop="teacherName" label="指导老师"  fixed="right"></el-table-column>
-          <el-table-column align="center" label="详情"  fixed="right">
+          <el-table-column align="center" prop="teacherName" label="指导老师" fixed="right"></el-table-column>
+          <el-table-column align="center" label="详情" fixed="right">
             <template slot-scope="scope">
               <div>
                 <el-button type="text" @click="lookDetail(scope.row)">详情</el-button>
@@ -161,7 +164,12 @@
         />
       </div>
     </div>
-    <el-dialog title="课表详情" :visible.sync="classVisible" :before-close="closeClassVisible" width="1000px">
+    <el-dialog
+      title="课表详情"
+      :visible.sync="classVisible"
+      :before-close="closeClassVisible"
+      width="1000px"
+    >
       <el-form :model="maskForm" :inline="true">
         <el-form-item label="老师姓名">
           <!-- <el-input v-model.trim="maskForm.teacherName"
@@ -244,7 +252,11 @@
             <studentWork :courseScheduleId="maskForm.id"></studentWork>
           </div>
         </el-tab-pane>
-          <el-tab-pane label="评论" v-if="maskForm.type == 'VIP' || maskForm.type == 'PRACTICE'" name="four">
+        <el-tab-pane
+          label="评论"
+          v-if="maskForm.type == 'VIP' || maskForm.type == 'PRACTICE'"
+          name="four"
+        >
           <div v-if="activeName == 'four'">
             <courseEvaluate :courseScheduleId="maskForm.id"></courseEvaluate>
           </div>
@@ -269,7 +281,7 @@ import studentWork from "./componentCourse/studentWork";
 import courseEvaluate from "./componentCourse/courseEvaluate";
 import axios from "axios";
 import { getToken } from "@/utils/auth";
-import load from '@/utils/loading'
+import load from "@/utils/loading";
 let nowTime = new Date();
 nowTime =
   nowTime.getFullYear() +
@@ -354,8 +366,10 @@ export default {
     onCourseExport() {
       // 课表导出
       let searchForm = this.searchForm;
-      if (!searchForm.timer) {
+      if (!searchForm.timer || searchForm.timer.length <= 0) {
         searchForm.timer = [];
+        this.$message.error("请选择时间段");
+        return;
       }
       let obj = {
         courseStatus: searchForm.courseStatus || null,
@@ -384,41 +398,45 @@ export default {
         type: "warning"
       })
         .then(() => {
-          load.startLoading()
-          axios(options).then(res => {
-            let blob = new Blob([res.data], {
-              // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
-              type: "application/vnd.ms-excel;charset=utf-8"
-              //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
-            });
-            let text = (new Response(blob)).text()
-            text.then(res => {
-              // 判断是否报错
-              if(res.indexOf('code') != -1) {
-                let json = JSON.parse(res)
-                this.$message.error(json.msg)
-              } else {
-                let objectUrl = URL.createObjectURL(blob);
-                let link = document.createElement("a");
-                let fname = "课表列表" + new Date().getTime(); //下载文件的名字
-                link.href = objectUrl;
-                link.setAttribute("download", fname);
-                document.body.appendChild(link);
-                link.click();
-              }
+          load.startLoading();
+          axios(options)
+            .then(res => {
+              let blob = new Blob([res.data], {
+                // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
+                type: "application/vnd.ms-excel;charset=utf-8"
+                //word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
+              });
+              let text = new Response(blob).text();
+              text.then(res => {
+                // 判断是否报错
+                if (res.indexOf("code") != -1) {
+                  let json = JSON.parse(res);
+                  this.$message.error(json.msg);
+                } else {
+                  let objectUrl = URL.createObjectURL(blob);
+                  let link = document.createElement("a");
+                  let fname = "课表列表" + new Date().getTime(); //下载文件的名字
+                  link.href = objectUrl;
+                  link.setAttribute("download", fname);
+                  document.body.appendChild(link);
+                  link.click();
+                }
+              });
+              load.endLoading();
             })
-            load.endLoading();
-          }).catch(error => {
-            this.$message.error('导出数据失败,请连接管理员');
-            load.endLoading();
-          })
+            .catch(error => {
+              this.$message.error("导出数据失败,请连接管理员");
+              load.endLoading();
+            });
         })
         .catch(() => {});
     },
     getList() {
       let searchForm = this.searchForm;
-      if (!searchForm.timer) {
+      if (!searchForm.timer || searchForm.timer.length <= 0) {
         searchForm.timer = [];
+        this.$message.error("请选择时间段");
+        return;
       }
       let obj = {
         courseStatus: searchForm.courseStatus || null,

Some files were not shown because too many files changed in this diff