mo 4 years ago
parent
commit
6b49b2e408

+ 3 - 3
src/views/accompanyManager/accompanyList.vue

@@ -575,11 +575,11 @@ export default {
       });
     },
     lookCrouse(row) {
-      let rules = JSON.stringify(this.rules);
-      let searchForm = JSON.stringify(this.searchForm);
+    let coursesStartDate = this.$helpers.dayjs(row.coursesStartDate).format('YYYY-MM-DD')
+    let coursesExpireDate = this.$helpers.dayjs(row.coursesExpireDate).format('YYYY-MM-DD')
       this.$router.push({
         path: "/business/accompanys",
-        query: { id: row.id, type: row.type },
+        query: { id: row.id, type: row.type,coursesStartDate,coursesExpireDate },
       });
     },
     closeCrouse(row) {

+ 16 - 4
src/views/accompanyManager/accompanys.vue

@@ -223,6 +223,16 @@
         label-width="80px;"
         :inline="true"
       >
+         <el-form-item label="课程开始时间" prop="coursesStartDate">
+          <el-date-picker
+            v-model.trim="expireForm.coursesStartDate"
+            style="width: 200px !important"
+            type="date"
+            :picker-options="bigin"
+            value-format="yyyy-MM-dd"
+            placeholder="选择日期"
+          ></el-date-picker>
+        </el-form-item>
         <el-form-item label="课程结束时间" prop="coursesExpireDate">
           <el-date-picker
             v-model.trim="expireForm.coursesExpireDate"
@@ -699,6 +709,7 @@ export default {
       startTime: null,
       expireForm: {
         coursesExpireDate: null,
+        coursesStartDate:null,
         tempCoursesExpireDate: null,
       },
       expireRules: {
@@ -790,6 +801,10 @@ export default {
       this.practiceId = this.$route.query.id;
       this.userId = this.$route.query.userId;
       this.courseType = this.$route.query.type;
+            this.timers =
+              this.$route.query.coursesStartDate.substring(0, 10) +
+              "至" +
+             this.$route.query.coursesExpireDate.substring(0, 10);
       //  获取乐团主管
       findEducationUsers().then((res) => {
         if (res.code == 200) {
@@ -876,10 +891,7 @@ export default {
               0,
               10
             );
-            this.timers =
-              this.courseData[0].coursesStartDate.substring(0, 10) +
-              "至" +
-              this.courseData[0].coursesExpireDate.substring(0, 10);
+
 
             let originalStartDate = this.courseData[0].coursesStartDate
               ? new Date(this.courseData[0].coursesStartDate)