Quellcode durchsuchen

Merge branch '02/24resetMain' into test

mo vor 4 Jahren
Ursprung
Commit
74fe8c8bfe

+ 2 - 1
src/views/accompanyManager/accompanys.vue

@@ -217,7 +217,7 @@
                   @pagination="getList" /> 乔乔说后台没有分页所以一口气都展示-->
     </div>
     <el-dialog
-      title="有效期调整"
+      :title="updateCourseStatus==2?'有效期调整':'有效期调整(高权限)'"
       width="400px"
       :before-close="expireClose"
       :visible.sync="expireVisible"
@@ -850,6 +850,7 @@ export default {
     },
     onUpdateCourse(type) {
       this.updateCourseStatus = type
+
       this.expireVisible = true
     },
     onCallName(item) {

+ 57 - 44
src/views/buildVip/index.vue

@@ -509,9 +509,11 @@
     >
       <el-form :model="maskForm" label-position="right" label-width="150px">
         <el-form-item label="开课时间">
+          <!-- :picker-options="pickerOptions" -->
           <el-date-picker
             v-model.trim="maskForm.courseStartOnline"
             type="date"
+
             :picker-options="courseOption"
             placeholder="请选择开课时间"
           />
@@ -585,7 +587,7 @@
         <div class="planTop">
           <p>已排课程</p>
         </div>
-        <div class="planCore" v-if="this.lookList.length>0">
+        <div class="planCore" v-if="this.lookList.length > 0">
           <div v-for="(item, index) in this.lookList" class="row" :key="index">
             <div class="name">{{ item.type }}</div>
             <div class="week">{{ item.week }}</div>
@@ -597,9 +599,7 @@
             </div>
           </div>
         </div>
-        <div class="nomore" v-else>
-          暂无数据
-        </div>
+        <div class="nomore" v-else>暂无数据</div>
         <div slot="footer" style="margin-top: 20px" class="dialog-footer">
           <el-button @click="dialogFormVisible = false">取 消</el-button>
           <el-button type="primary" @click="setTimeTable">确 定</el-button>
@@ -910,7 +910,9 @@ export default {
         disabledDate: (time) => {
           if (self.leftForm.courseStart) {
             let date = new Date(self.leftForm.courseStart.replace(/-/, "/"));
-            return time.getTime() < date.getTime();
+            let nowDate = new Date()
+            let changeDate = date.getTime()-nowDate.getTime() >0?date:nowDate
+            return time.getTime() < changeDate.getTime();
           }
           return;
         },
@@ -1537,25 +1539,50 @@ export default {
         educationalTeacherId: this.leftForm.educationalTeacherId,
         organId: this.leftForm.classOrganId,
       };
+      // 新增
+      createVip(obj).then((res) => {
+        if (res.code == 200) {
+          if (res.data == "ING") {
+            this.$confirm(
+              "课程提交成功,已提交运营主管审批,审批通过后,课程创建成功!",
+              "提示",
+              {
+                confirmButtonText: "确定",
+                type: "warning",
+              }
+            ).then(() => {
+              this.$message.success("提交成功");
+              this.$store.dispatch("delVisitedViews", this.$route);
+              this.$router.push({
+                path: "/vipManager/vipList",
+                query: {
+                  rules: this.rules,
+                  searchForm: this.searchForm,
+                },
+              });
+            });
+          } else {
+            this.$message.success("恭喜您创建成功");
+            this.$store.dispatch("delVisitedViews", this.$route);
+            this.$router.push({
+              path: "/vipManager/vipList",
+              query: {
+                rules: this.rules,
+                searchForm: this.searchForm,
+              },
+            });
+          }
+        }
+            console.log(res)
+        if (res.code == 206) {
 
-      // 调接前判断是新增还是修改
-      if (!this.id) {
-        // 新增
-        createVip(obj).then((res) => {
-          if (res.code == 200) {
-            if (res.data == "ING") {
-              this.$confirm(
-                "课程提交成功,已提交运营主管审批,审批通过后,课程创建成功!",
-                "提示",
-                {
-                  confirmButtonText: "确定",
-                  type: "warning",
-                }
-              ).then(() => {
-                // this.$message({
-                //   type: 'success',
-                //   message: '提交成功!'
-                // });
+          this.$confirm(res.msg, "提示", {
+            confirmButtonText: "确定",
+            type: "warning",
+          }).then(() => {
+            obj.allowOverstepActivityStudentNum = 1;
+            createVip(obj).then((res) => {
+              if (res.code == 200) {
                 this.$message.success("提交成功");
                 this.$store.dispatch("delVisitedViews", this.$route);
                 this.$router.push({
@@ -1565,25 +1592,11 @@ export default {
                     searchForm: this.searchForm,
                   },
                 });
-              });
-            } else {
-              this.$message.success("恭喜您创建成功");
-              this.$store.dispatch("delVisitedViews", this.$route);
-              this.$router.push({
-                path: "/vipManager/vipList",
-                query: {
-                  rules: this.rules,
-                  searchForm: this.searchForm,
-                },
-              });
-            }
-          }
-        });
-      } else {
-        // 修改
-        obj.vipGroupApplyBaseInfo.id = this.id;
-        updateVipBaseInfo(obj.vipGroupApplyBaseInfo).then((res) => {});
-      }
+              }
+            });
+          });
+        }
+      });
     },
     setSection(val) {
       this.leftForm.section = "";
@@ -1661,7 +1674,7 @@ export default {
 
       // this.leftForm.courseType = null;
       if (val) {
-        this.getOrganStudentList(val)
+        this.getOrganStudentList(val);
         vipGroupCategory({
           organId: val,
         }).then((res) => {
@@ -1767,7 +1780,7 @@ export default {
       if (organId) {
         queryOrganStudentList({
           rows: 50,
-          organId:organId,
+          organId: organId,
         }).then((res) => {
           if (res.code == 200) {
             this.studentList = res.data.rows;

+ 1 - 1
src/views/operateManager/serverIndexList.vue

@@ -175,7 +175,7 @@
             <template slot-scope="scope">
               <div
                 :style="
-                  scope.row.exercisesMessageNum < scope.row.expectExercisesNum
+                  scope.row.exercisesMessageNum < scope.row.exercisesReplyNum
                     ? 'color:red'
                     : ''
                 "

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

@@ -243,7 +243,7 @@
           <el-table-column align="center" prop label="评价次数">
             <template slot-scope="scope">
               <div  :style="
-                  scope.row.exercisesMessageNum < scope.row.expectExercisesNum
+                  scope.row.exercisesMessageNum < scope.row.exercisesReplyNum
                     ? 'color:red'
                     : ''
                 ">{{ scope.row.exercisesMessageNum + "次" }}</div>

+ 1 - 1
src/views/teacherManager/teacherDetail/components/courseInfo.vue

@@ -11,7 +11,7 @@
           <el-option
             v-for="item in musicGroupStatus"
             :key="item.value"
-            :label="item.text"
+            :label="item.label"
             :value="item.value"
           >
           </el-option>