Browse Source

04/28 15:31

11
Xiao_Mo 5 years ago
parent
commit
3a37f6d06b

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


+ 1 - 1
dist/static/css/chunk-10c43291.ab378102.css → dist/static/css/chunk-71bf792c.a2c6e674.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}.schoolCell[data-v-3feed52a]{width:400px;color:#333;background-color:#f5f7fa;border-color:#e4e7ed;height:40px;line-height:40px;outline:0;padding:0 15px;border-radius:4px;border:1px solid #dcdfe6;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-3feed52a] .el-textarea.is-disabled .el-textarea__inner{color:#333}.schoolCell[data-v-abbbfb34]{width:400px;color:#333;background-color:#f5f7fa;border-color:#e4e7ed;height:40px;line-height:40px;outline:0;padding:0 15px;border-radius:4px;border:1px solid #dcdfe6;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-abbbfb34] .el-textarea.is-disabled .el-textarea__inner{color:#333}
+.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}.schoolCell[data-v-3feed52a]{width:400px;color:#333;background-color:#f5f7fa;border-color:#e4e7ed;height:40px;line-height:40px;outline:0;padding:0 15px;border-radius:4px;border:1px solid #dcdfe6;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-3feed52a] .el-textarea.is-disabled .el-textarea__inner{color:#333}.schoolCell[data-v-7db04394]{width:400px;color:#333;background-color:#f5f7fa;border-color:#e4e7ed;height:40px;line-height:40px;outline:0;padding:0 15px;border-radius:4px;border:1px solid #dcdfe6;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-7db04394] .el-textarea.is-disabled .el-textarea__inner{color:#333}

+ 1 - 1
dist/static/css/chunk-cb78d8da.d95d32a5.css → dist/static/css/chunk-7ec4324a.247637e6.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}.schoolCell[data-v-abbbfb34]{width:400px;color:#333;background-color:#f5f7fa;border-color:#e4e7ed;height:40px;line-height:40px;outline:0;padding:0 15px;border-radius:4px;border:1px solid #dcdfe6;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-abbbfb34] .el-textarea.is-disabled .el-textarea__inner{color:#333}
+.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}.schoolCell[data-v-7db04394]{width:400px;color:#333;background-color:#f5f7fa;border-color:#e4e7ed;height:40px;line-height:40px;outline:0;padding:0 15px;border-radius:4px;border:1px solid #dcdfe6;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}[data-v-7db04394] .el-textarea.is-disabled .el-textarea__inner{color:#333}

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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-10c43291.ab6d374b.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-71bf792c.dd543221.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-7ec4324a.9023d6be.js


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


+ 23 - 9
src/views/afterSchoolManager/afterSchoolTeach.vue

@@ -10,7 +10,7 @@
             placeholder="学生姓名"
           ></el-input>
         </el-form-item>
-             <el-form-item>
+        <el-form-item>
           <el-select placeholder="指导老师" v-model="searchForm.teacherId" clearable filterable>
             <el-option
               v-for="(item,index) in teacherList"
@@ -37,6 +37,12 @@
           </el-select>
         </el-form-item>
         <el-form-item>
+          <el-select placeholder="当前有VIP课" v-model="searchForm.existVipCourse" clearable>
+            <el-option label="是" value="1"></el-option>
+            <el-option label="否" value="0"></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item>
           <el-select placeholder="实际安排" v-model="searchForm.actualExercisesNumIsAchieve" clearable>
             <el-option label="符合预期" value="1"></el-option>
             <el-option label="不符合预期" value="0"></el-option>
@@ -100,6 +106,11 @@
           <el-table-column align="center" prop="studentName" label="学生姓名"></el-table-column>
           <el-table-column align="center" prop="organName" label="所属分部"></el-table-column>
           <el-table-column align="center" prop="teacherName" label="指导老师"></el-table-column>
+          <el-table-column align="center" label="当前有VIP课" width="100" >
+            <template slot-scope="scope">
+              <div>{{scope.row.existVipCourse?'是':'否'}}</div>
+            </template>
+          </el-table-column>
           <el-table-column align="center" prop label="预期安排">
             <template slot-scope="scope">
               <div>{{scope.row.expectExercisesNum+'次'}}</div>
@@ -155,7 +166,7 @@ import axios from "axios";
 import { getToken } from "@/utils/auth";
 import pagination from "@/components/Pagination/index";
 import load from "@/utils/loading";
-import { getEmployeeOrgan,getTeacher } from "@/api/buildTeam";
+import { getEmployeeOrgan, getTeacher } from "@/api/buildTeam";
 
 import { findStudentExtracurricularExercisesSituations } from "@/api/afterSchool";
 // findStudentExtracurricularExercisesSituations
@@ -179,7 +190,8 @@ export default {
         exercisesMessageNumIsAchieve: null, //评价
         exercisesMessageTimelyNumIsAchieve: null, //及时评价
         exercisesReplyNumIsAchieve: null, // 提交次数
-        teacherId:null
+        teacherId: null,
+        existVipCourse: null
       },
       organList: [],
       teacherList: [],
@@ -201,7 +213,7 @@ export default {
     this.searchForm.timer = [];
     this.searchForm.timer.push(this.getNowDateAndMonday(nowTime));
     this.searchForm.timer.push(this.getNowDateAndSunday(nowTime));
-     getTeacher().then(res => {
+    getTeacher().then(res => {
       if (res.code == 200) {
         this.teacherList = res.data;
       }
@@ -220,8 +232,8 @@ export default {
   },
   methods: {
     init() {
-      if(this.$route.query.teacherId){
-        this.searchForm.teacherId = this.$route.query.teacherId*1
+      if (this.$route.query.teacherId) {
+        this.searchForm.teacherId = this.$route.query.teacherId * 1;
       }
       this.getList();
     },
@@ -237,9 +249,10 @@ export default {
         exercisesReplyNumIsAchieve:
           this.searchForm.exercisesReplyNumIsAchieve || null, // 提交次数
         organIdList: this.searchForm.organIdList || null,
-        teacherId:this.searchForm.teacherId,
+        teacherId: this.searchForm.teacherId,
         page: this.rules.page,
-        rows: this.rules.limit
+        rows: this.rules.limit,
+        existVipCourse: this.searchForm.existVipCourse || null
       };
       if (this.searchForm.timer && this.searchForm.timer.length > 0) {
         obj.monday = this.searchForm.timer[0];
@@ -269,7 +282,8 @@ export default {
         exercisesMessageNumIsAchieve: null, //评价
         exercisesMessageTimelyNumIsAchieve: null, //及时评价
         exercisesReplyNumIsAchieve: null, // 提交次数
-        teacherId:null
+        teacherId: null,
+        existVipCourse: null
       };
       this.search();
     },

+ 88 - 52
src/views/afterSchoolManager/afterWorkList.vue

@@ -43,12 +43,18 @@
           </el-select>
         </el-form-item>
         <el-form-item>
-          <el-select placeholder="是否及时评价" v-model="searchForm.isRepliedTimely" clearable>
+          <el-select placeholder="及时评价" v-model="searchForm.isRepliedTimely" clearable>
             <el-option label="是" value="1"></el-option>
             <el-option label="否" value="0"></el-option>
           </el-select>
         </el-form-item>
-        <br>
+        <el-form-item>
+          <el-select placeholder="是否有vip" v-model="searchForm.existVipCourse" clearable>
+            <el-option label="是" value="1"></el-option>
+            <el-option label="否" value="0"></el-option>
+          </el-select>
+        </el-form-item>
+        <br />
         <el-form-item label="布置时间">
           <el-date-picker
             v-model.trim="searchForm.timer"
@@ -60,8 +66,8 @@
             end-placeholder="布置结束日期"
           ></el-date-picker>
         </el-form-item>
-        <br>
-          <el-form-item label="截止时间">
+        <br />
+        <el-form-item label="截止时间">
           <el-date-picker
             v-model.trim="searchForm.expireDate"
             style="width:400px;"
@@ -72,11 +78,16 @@
             end-placeholder="截止结束日期"
           ></el-date-picker>
         </el-form-item>
-        
+
         <el-form-item>
           <el-button type="danger" @click="search">搜索</el-button>
           <el-button @click="onReSet" type="primary">重置</el-button>
-          <el-button @click="onExport" type="primary" v-permission="'export/extraExercisesReplys'" style=" background: #14928a; border:1px solid #14928a;">导出</el-button>
+          <el-button
+            @click="onExport"
+            type="primary"
+            v-permission="'export/extraExercisesReplys'"
+            style=" background: #14928a; border:1px solid #14928a;"
+          >导出</el-button>
         </el-form-item>
       </el-form>
       <div class="tableWrap">
@@ -86,14 +97,10 @@
           :data="tableList"
         >
           <el-table-column align="center" prop="createTime" label="布置时间" width="150">
-            <template slot-scope="scope">
-              {{scope.row.createTime | dateForMinFormat}}
-            </template>
+            <template slot-scope="scope">{{scope.row.createTime | dateForMinFormat}}</template>
           </el-table-column>
           <el-table-column align="center" prop="expireDate" label="截止时间" width="150">
-            <template slot-scope="scope">
-              {{scope.row.expireDate | dateForMinFormat}}
-            </template>
+            <template slot-scope="scope">{{scope.row.expireDate | dateForMinFormat}}</template>
           </el-table-column>
           <el-table-column align="center" prop="title" label="训练标题">
             <template slot-scope="scope">
@@ -113,25 +120,32 @@
               </div>
             </template>
           </el-table-column>
-             <el-table-column align="center" prop="userId" label="学生编号">
-          
-          </el-table-column>
+          <el-table-column align="center" prop="userId" label="学生编号"></el-table-column>
           <el-table-column align="center" label="提交作业">
             <template slot-scope="scope">
               <div>{{scope.row.status?'是':'否'}}</div>
             </template>
           </el-table-column>
-            <el-table-column align="center" prop="createTime" label="提交时间" width="150">
-            <template slot-scope="scope">
-              {{scope.row.submitTime | dateForMinFormat}}
-            </template>
+          <el-table-column align="center" prop="createTime" label="提交时间" width="150">
+            <template slot-scope="scope">{{scope.row.submitTime | dateForMinFormat}}</template>
           </el-table-column>
           <el-table-column align="center" prop="isReplied" label="是否评价">
             <template slot-scope="scope">
               <div>{{scope.row.isReplied?'是':'否'}}</div>
             </template>
           </el-table-column>
-          <el-table-column align="center" prop="isRepliedTimely" label="是否及时评价">
+          <el-table-column align="center" label="是否有vip" width="100" fixed="right">
+            <template slot-scope="scope">
+              <div>{{scope.row.existVipCourse?'是':'否'}}</div>
+            </template>
+          </el-table-column>
+          <el-table-column
+            align="center"
+            prop="isRepliedTimely"
+            label="及时评价"
+            width="100"
+            fixed="right"
+          >
             <template slot-scope="scope">
               <div>{{scope.row.isRepliedTimely?'是':'否'}}</div>
             </template>
@@ -141,10 +155,14 @@
               <div v-if="scope.row.extracurricularExercises&&scope.row.extracurricularExercises.teacher">{{scope.row.extracurricularExercises.teacher.username}}</div>
             </template>
           </el-table-column>-->
-          <el-table-column align="center" label="操作">
+          <el-table-column align="center" label="操作" fixed="right">
             <template slot-scope="scope">
               <div>
-                <el-button type="text" v-permission="'afterWorkList/look'" @click="lookDetail(scope.row)">查看</el-button>
+                <el-button
+                  type="text"
+                  v-permission="'afterWorkList/look'"
+                  @click="lookDetail(scope.row)"
+                >查看</el-button>
               </div>
             </template>
           </el-table-column>
@@ -230,7 +248,8 @@ export default {
         isRepliedTimely: null,
         isView: null,
         organIdList: null,
-        expireDate:[]
+        expireDate: [],
+        existVipCourse: null
       },
       rules: {
         // 分页规则
@@ -254,7 +273,7 @@ export default {
       workVisible: false,
       activeSrc: "",
       extracurricularExercisesId: null,
-      show:true
+      show: true
     };
   },
   //生命周期 - 创建完成(可以访问当前this实例)
@@ -290,12 +309,15 @@ export default {
       //   this.searchForm.timer.push(endDate);
 
       this.extracurricularExercisesId = this.$route.query.extracurricularExercisesId;
-      if(this.extracurricularExercisesId){
-        this.show = false
+      if (this.extracurricularExercisesId) {
+        this.show = false;
       }
-      this.searchForm.search = this.$route.query.studentId
-      if(this.$route.query.startTime&&this.$route.query.endTime){
-        this.searchForm.timer = [this.$route.query.startTime,this.$route.query.endTime]
+      this.searchForm.search = this.$route.query.studentId;
+      if (this.$route.query.startTime && this.$route.query.endTime) {
+        this.searchForm.timer = [
+          this.$route.query.startTime,
+          this.$route.query.endTime
+        ];
       }
       // console.log(this.$route.query)
       this.getList();
@@ -314,10 +336,10 @@ export default {
       this.rules.page = 1;
       this.getList();
     },
-    // 导出 
-    onExport(){
-       let url = "/api-web/export/extraExercisesReplys";
-      let obj = this.getDate()
+    // 导出
+    onExport() {
+      let url = "/api-web/export/extraExercisesReplys";
+      let obj = this.getDate();
       const options = {
         method: "get",
         headers: {
@@ -342,11 +364,18 @@ export default {
             });
             let objectUrl = URL.createObjectURL(blob);
             let link = document.createElement("a");
-             let nowTime = new Date()
-              let ymd = nowTime.getFullYear() + '' + (nowTime.getMonth() + 1) + '' + nowTime.getDate() + '' +
-                nowTime.getHours() +
-                '' + nowTime.getMinutes()
-            let fname =ymd+"课外训练(学员)";
+            let nowTime = new Date();
+            let ymd =
+              nowTime.getFullYear() +
+              "" +
+              (nowTime.getMonth() + 1) +
+              "" +
+              nowTime.getDate() +
+              "" +
+              nowTime.getHours() +
+              "" +
+              nowTime.getMinutes();
+            let fname = ymd + "课外训练(学员)";
             link.href = objectUrl;
             link.setAttribute("download", fname);
             document.body.appendChild(link);
@@ -355,18 +384,18 @@ export default {
         })
         .catch(() => {});
     },
-    getDate(){
-       let obj = {};
+    getDate() {
+      let obj = {};
       if (this.searchForm.timer && this.searchForm.timer.length > 0) {
         obj.submitStartTime = this.searchForm.timer[0];
         obj.submitEndTime = this.searchForm.timer[1];
       }
-      if(this.searchForm.expireDate && this.searchForm.expireDate.length>0){
-        obj.expireStartDate = this.searchForm.expireDate[0]
-         obj.expireEndDate = this.searchForm.expireDate[1]
+      if (this.searchForm.expireDate && this.searchForm.expireDate.length > 0) {
+        obj.expireStartDate = this.searchForm.expireDate[0];
+        obj.expireEndDate = this.searchForm.expireDate[1];
       }
       obj.page = this.rules.page;
-      
+
       (obj.rows = this.rules.limit),
         this.searchForm.teacherId
           ? (obj.teacherId = this.searchForm.teacherId)
@@ -377,11 +406,17 @@ export default {
         ? (obj.isRepliedTimely = this.searchForm.isRepliedTimely)
         : null;
       this.searchForm.isView ? (obj.isView = this.searchForm.isView) : null;
-      this.extracurricularExercisesId&&this.extracurricularExercisesId !='yes'
+      this.extracurricularExercisesId &&
+      this.extracurricularExercisesId != "yes"
         ? (obj.extracurricularExercisesId = this.extracurricularExercisesId)
         : null;
-      this.searchForm.organIdList ? (obj.organIdList = this.searchForm.organIdList) : null;
-      return obj
+      this.searchForm.organIdList
+        ? (obj.organIdList = this.searchForm.organIdList)
+        : null;
+      this.searchForm.existVipCourse
+        ? (obj.existVipCourse = this.searchForm.existVipCourse)
+        : null;
+      return obj;
     },
     onReSet() {
       this.searchForm = {
@@ -391,7 +426,8 @@ export default {
         isReplied: null,
         isView: null,
         organId: null,
-        expireDate:[]
+        expireDate: [],
+        existVipCourse: null
       };
       this.extracurricularExercisesId = null;
       this.getList();
@@ -421,10 +457,10 @@ export default {
       this.workVisible = true;
     }
   },
-  watch:{
-    workVisible(val){
-      if(!val){
-        this.activeSrc = '';
+  watch: {
+    workVisible(val) {
+      if (!val) {
+        this.activeSrc = "";
       }
     }
   }

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