Pārlūkot izejas kodu

分部经理布置任务完成

1
mo 4 gadi atpakaļ
vecāks
revīzija
4b234ce162

+ 4 - 1
src/views/main/teamSchedule/compontent/taskInfo.vue

@@ -90,13 +90,14 @@ export default {
         endTimer:'',
         startTimer: '',
         musicGroupId: "",
+        userId:''
       },
       timerStr:''
     };
   },
   mounted() {
     this.checkTimes()
-
+        this.userId = this.$route.query.teacher;
     if (this.taskInfo) {
       this.taskForm.date = this.taskInfo.planStart;
       this.taskForm.startTimer = dayjs(this.taskInfo.planStart).format('HH:mm:ss')
@@ -151,6 +152,7 @@ export default {
                 planEnd,
                 itemId: this.itemId,
                 id: this.taskInfo.id,
+                userId:this.userId
               });
                 this.$message.success("提交成功");
               this.$emit("refreshList", this.taskForm.date);
@@ -166,6 +168,7 @@ export default {
                 planStart,
                 planEnd,
                 itemId: this.itemId,
+                userId:this.userId
               });
               this.$message.success("提交成功");
               this.$emit("refreshList", this.taskForm.date);

+ 2 - 0
src/views/main/teamSchedule/compontent/taskList.vue

@@ -82,6 +82,7 @@ export default {
     this.rangeStart = this.$route.query.startTime;
     this.rangeEnd = this.$route.query.endTime;
     this.userId = this.$route.query.teacher;
+     this.itemId = this.$route.query.itemId;
     this.getList();
   },
   methods: {
@@ -93,6 +94,7 @@ export default {
           userId: this.userId,
           page: this.rules.page,
           rows: this.rules.limit,
+          itemId:this.itemId
         });
         this.tableList = result.data.rows;
         this.rules.total = result.data.total;

+ 2 - 4
src/views/main/teamSchedule/scheduleDetail.vue

@@ -124,11 +124,10 @@ export default {
     };
   },
   async mounted() {
-    console.log('加载页面')
     this.init();
     // 获取乐团
     try {
-      const ruselt = await getMusicGroup({ organId: this.organId });
+      const ruselt = await getMusicGroup({ organId: this.organId,userId:this.userId });
       this.MusicGroupList = ruselt.data;
     } catch (e) {}
   },
@@ -164,6 +163,7 @@ export default {
           startTime: this.startTime,
           endTime: this.endTime,
           userId: this.userId,
+          itemId: this.itemId,
           page: 1,
           rows: 9999,
         });
@@ -230,7 +230,6 @@ export default {
     },
 
     drop(e) {
-      console.log(e)
       this.isNew = true;
       this.activeTask = null;
       this.taskStatus = true;
@@ -239,7 +238,6 @@ export default {
       event.preventDefault();
     },
     dragstart(e){
-      console.log(e)
     },
     submitInfo(val) {
       // 新增修改提交