wangziqian 5 年之前
父節點
當前提交
4475af3203

+ 7 - 0
src/views/projectManage/projectList/components/modifySchedule.vue

@@ -237,6 +237,9 @@ export default {
       }
     },
     async getNowTask() { // 获取当前项目下任务
+      if (!this.$route.query.id) {
+        return
+      }
       const res = await taskList({
         projectId: this.$route.query.id
       })
@@ -245,6 +248,10 @@ export default {
       }
     },
     async remoteMethod(query) { // 远程搜索任务
+      query = query.replace(/^\s+|\s+$/g, '')
+      if (query === '') {
+        return
+      }
       this.loading = true
       const res = await allTaskList({
         bizId: Number(localStorage.getItem('bizId')),

+ 0 - 2
src/views/workbench/person/components/calenderDetail.vue

@@ -70,9 +70,7 @@ export default {
     },
     data: {
       handler(newV) {
-        console.log(newV)
         if (newV) {
-          console.log(newV, '////')
           this.nowDetailData = newV
         }
       },