yangsl 3 years ago
parent
commit
e54b3d96d6
1 changed files with 17 additions and 1 deletions
  1. 17 1
      src/components/LTTC/TaskList/MoveTaskList.vue

+ 17 - 1
src/components/LTTC/TaskList/MoveTaskList.vue

@@ -37,7 +37,7 @@
           <template slot="title">
             <span>添加到“我的一天”</span>
           </template>
-          <a-icon @click.stop="changeImportant(record)" type="plus" />
+          <a-icon @click.stop="addOneDayForMe(record)" type="plus" />
         </a-tooltip>
       </template>
     </a-table>
@@ -123,11 +123,27 @@ export default {
     }
   },
   methods:{
+
+    //添加到我的一天
+    addOneDayForMe(task){
+      //axios 添加到我的一天
+      console.log(task)
+    },
+
     //关闭右键菜单
     bodyClick() {
       this.menuVisible = false;
       document.body.removeEventListener("mousedown", this.bodyClick);
     },
+
+    //修改完成状态
+    changeFinish(task){  
+      let status = !task.finish
+      //axios 修改完成状态
+
+      //刷新数据
+      this.$emit('refreshData');
+    },
   },
 }
 </script>