浏览代码

Merge branch 'test' into ol_12_30

mo 3 年之前
父节点
当前提交
a9ca9693e6

文件差异内容过多而无法显示
+ 0 - 0
dist/index.html


+ 1 - 0
dist/static/css/chunk-0834f6be.664a25a6.css

@@ -0,0 +1 @@
+.titlewrap[data-v-2eec22a4]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.titlewrap[data-v-2eec22a4],.wrap[data-v-2eec22a4]{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}.wrap div[data-v-2eec22a4]{margin-right:20px;max-width:inherit}.countWrap[data-v-2eec22a4] .el-date-editor.el-input,.countWrap[data-v-2eec22a4] .el-date-editor.el-input__inner{width:100px!important}

+ 0 - 1
dist/static/css/chunk-7a64171e.9bdadf41.css

@@ -1 +0,0 @@
-.titlewrap[data-v-d44284fc]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.titlewrap[data-v-d44284fc],.wrap[data-v-d44284fc]{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}.wrap div[data-v-d44284fc]{margin-right:20px;max-width:inherit}.countWrap[data-v-d44284fc] .el-date-editor.el-input,.countWrap[data-v-d44284fc] .el-date-editor.el-input__inner{width:100px!important}

+ 1 - 1
dist/static/css/chunk-431d210c.74726296.css → dist/static/css/chunk-cdcdb9ae.31ffee39.css

@@ -1 +1 @@
-.computeMoney[data-v-7ae4c584]{margin-top:10px;float:right}.m-core[data-v-7ae4c584]{margin-top:30px}.m-core .el-input[data-v-7ae4c584]{width:180px}.m-core h4[data-v-7ae4c584]{font-size:16px;background-color:#ccc;color:#fff;width:100%;height:40px;line-height:40px;margin-bottom:20px;padding:0 20px}.m-core .right[data-v-7ae4c584]{margin-top:20px}.vipMsg[data-v-7ae4c584]{margin-bottom:20px}.planList[data-v-7ae4c584]{padding:0 25px}.planList .planTop[data-v-7ae4c584]{height:40px;line-height:40px;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;border-bottom:1px solid #ccc;margin-top:20px}.planList .planTop>p[data-v-7ae4c584]{font-size:14px}.planList .planCore .row[data-v-7ae4c584]{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:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:40px;line-height:40px;font-size:14px;text-align:center}.planList .planCore .row div[data-v-7ae4c584]{width:87px}.planList .nomore[data-v-7ae4c584]{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;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:40px}.okBtn[data-v-7ae4c584]{width:120px;height:40px;line-height:40px;text-align:center;color:#fff;border-radius:4px;margin-right:20px;cursor:pointer;background-color:#f97215;float:right}.submitP[data-v-7ae4c584]{margin-bottom:20px;font-size:14px;padding-left:24px}
+.computeMoney[data-v-04d26b12]{margin-top:10px;float:right}.m-core[data-v-04d26b12]{margin-top:30px}.m-core .el-input[data-v-04d26b12]{width:180px}.m-core h4[data-v-04d26b12]{font-size:16px;background-color:#ccc;color:#fff;width:100%;height:40px;line-height:40px;margin-bottom:20px;padding:0 20px}.m-core .right[data-v-04d26b12]{margin-top:20px}.vipMsg[data-v-04d26b12]{margin-bottom:20px}.planList[data-v-04d26b12]{padding:0 25px}.planList .planTop[data-v-04d26b12]{height:40px;line-height:40px;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;border-bottom:1px solid #ccc;margin-top:20px}.planList .planTop>p[data-v-04d26b12]{font-size:14px}.planList .planCore .row[data-v-04d26b12]{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:justify;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:40px;line-height:40px;font-size:14px;text-align:center}.planList .planCore .row div[data-v-04d26b12]{width:87px}.planList .nomore[data-v-04d26b12]{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;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:40px}.okBtn[data-v-04d26b12]{width:120px;height:40px;line-height:40px;text-align:center;color:#fff;border-radius:4px;margin-right:20px;cursor:pointer;background-color:#f97215;float:right}.submitP[data-v-04d26b12]{margin-bottom:20px;font-size:14px;padding-left:24px}

文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.fc7d520b.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-0834f6be.a6b75a0f.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-431d210c.1f16c7da.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-7a64171e.ef596f60.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/chunk-cdcdb9ae.6cbb36cc.js


+ 39 - 23
src/views/accompanyManager/accompanys.vue

@@ -217,7 +217,7 @@
                   @pagination="getList" /> 乔乔说后台没有分页所以一口气都展示-->
     </div>
     <el-dialog
-      :title="updateCourseStatus==2?'有效期调整':'有效期调整(高权限)'"
+      :title="updateCourseStatus == 2 ? '有效期调整' : '有效期调整(高权限)'"
       width="400px"
       :before-close="expireClose"
       :visible.sync="expireVisible"
@@ -849,9 +849,9 @@ export default {
       this.getList();
     },
     onUpdateCourse(type) {
-      this.updateCourseStatus = type
+      this.updateCourseStatus = type;
 
-      this.expireVisible = true
+      this.expireVisible = true;
     },
     onCallName(item) {
       // 点名表
@@ -915,6 +915,7 @@ export default {
               ? new Date(this.courseData[0].coursesStartDate)
               : new Date();
             let buyMonths = this.courseData[0].buyMonths;
+            this.accompanTime = this.courseData[0].singleClassMinutes || 25;
             let lastDayNum = nextMonthLastDay(
               originalStartDate.getFullYear(),
               originalStartDate.getMonth() + buyMonths + 1
@@ -946,10 +947,12 @@ export default {
       return {
         firstDayOfWeek: 1,
         disabledDate(time) {
-          if (self.tableList[self.tableList.length -1].classDate) {
+          if (self.tableList[self.tableList.length - 1].classDate) {
             return (
-              new Date(self.tableList[self.tableList.length -1].classDate).getTime() >=
-              time.getTime()+24*60*60*1000
+              new Date(
+                self.tableList[self.tableList.length - 1].classDate
+              ).getTime() >=
+              time.getTime() + 24 * 60 * 60 * 1000
             );
           } else {
             return time.getTime() >= Date.now();
@@ -958,15 +961,16 @@ export default {
         },
       };
     },
-     resetDate() {
+    resetDate() {
       let self = this;
       return {
         firstDayOfWeek: 1,
         disabledDate(time) {
-          if (self.tableList[self.tableList.length -1].classDate) {
+          if (self.tableList[self.tableList.length - 1].classDate) {
             return (
-              new Date(self.tableList[self.tableList.length -1].classDate).getTime() >=
-              time.getTime()
+              new Date(
+                self.tableList[self.tableList.length - 1].classDate
+              ).getTime() >= time.getTime()
             );
           } else {
             return time.getTime() >= Date.now();
@@ -996,7 +1000,7 @@ export default {
     submitExpireDate() {
       this.$refs.expireForm.validate((some) => {
         if (some) {
-          if(this.updateCourseStatus == 1) {
+          if (this.updateCourseStatus == 1) {
             updateCoursesExpireDate({
               practiceGroupId: this.practiceId,
               coursesExpireDate: this.expireForm.coursesExpireDate,
@@ -1011,7 +1015,7 @@ export default {
                   }),
                 });
                 this.timers =
-                  this.expireForm.coursesStartDate+
+                  this.expireForm.coursesStartDate +
                   "至" +
                   this.expireForm.coursesExpireDate;
                 this.expireVisible = false;
@@ -1021,7 +1025,7 @@ export default {
                 this.$message.error(res.msg);
               }
             });
-          } else if(this.updateCourseStatus == 2) {
+          } else if (this.updateCourseStatus == 2) {
             updateCoursesExpireDateOnlyNormal({
               practiceGroupId: this.practiceId,
               coursesExpireDate: this.expireForm.coursesExpireDate,
@@ -1036,7 +1040,7 @@ export default {
                   }),
                 });
                 this.timers =
-                  this.expireForm.coursesStartDate+
+                  this.expireForm.coursesStartDate +
                   "至" +
                   this.expireForm.coursesExpireDate;
                 this.expireVisible = false;
@@ -1047,7 +1051,6 @@ export default {
               }
             });
           }
-
         } else {
           return;
         }
@@ -1227,14 +1230,17 @@ export default {
           // let date = new Date(self.leftForm.courseStart.replace(/-/, "/"));
           // coursesExpireDate
           let dayjs = this.$helpers.dayjs;
-          let nowDate =   dayjs(new Date()).valueOf()-24*60*60*1000
-          let coursesStartDate = dayjs(this.expireForm.coursesStartDate).valueOf()
-          let coursesExpireDate =  dayjs(this.expireForm.coursesExpireDate).valueOf()
-         let startTime =
-          coursesStartDate - nowDate >0?coursesStartDate:nowDate
+          let nowDate = dayjs(new Date()).valueOf() - 24 * 60 * 60 * 1000;
+          let coursesStartDate = dayjs(
+            this.expireForm.coursesStartDate
+          ).valueOf();
+          let coursesExpireDate = dayjs(
+            this.expireForm.coursesExpireDate
+          ).valueOf();
+          let startTime =
+            coursesStartDate - nowDate > 0 ? coursesStartDate : nowDate;
           return (
-            time.getTime() <(startTime)||
-            time.getTime()>coursesExpireDate
+            time.getTime() < startTime || time.getTime() > coursesExpireDate
           );
           // }
           // return;
@@ -1439,7 +1445,17 @@ export default {
   watch: {
     adjustmentVisible(val) {
       if (!val) {
-        this.$refs.adjustmentForm.resetFields();
+        if( this.$refs.adjustmentForm){
+            this.$refs.adjustmentForm.resetFields();
+        }
+        this.weekList = [
+          {
+            dayOfWeek: "",
+            startTime: "",
+            endTime: "",
+            moid: new Date().getTime(),
+          },
+        ];
       }
     },
   },

+ 1 - 1
src/views/buildVip/index.vue

@@ -500,7 +500,7 @@
                   <span>缴费总额</span>
                   <el-tooltip placement="top" popper-class="mTooltip">
                     <div slot="content">
-                      (线上课单价*课时数+线下课单价*课时数)*折扣后四舍五入
+                      (线上课单价*课时数+线下课单价*课时数)*折扣后向上取整
                     </div>
                     <i
                       class="el-icon-question micon el-tooltip"

部分文件因为文件数量过多而无法显示