From b57d3ac0cd3790bd0e2495998262ecd9be84747d Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Tue, 3 Aug 2021 13:56:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(tips):=20=E4=BF=AE=E6=94=B9=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=8A=B6=E6=80=81=E6=96=B9=E6=B3=95=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/components/Tips/Tips.vue | 29 +++++++++++++---------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11a4466..8df8523 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,6 +96,7 @@ store/home | 删除store/home | db8a3b4 task beginTime | 格式化任务开始时间 | fbc0301 template | eslint prettier sass uview tailwindcss | 9c966a1 + tip | 任务状态显示及tip组件数据的重构 | 78a5750 - | 下滑时间轴添加备注 | 4fd20e3 - | 任务状态重构 | 4693655 - | 删除多余的技术验证界面 | 542ae5b diff --git a/src/components/Tips/Tips.vue b/src/components/Tips/Tips.vue index 8ccf777..6921a15 100644 --- a/src/components/Tips/Tips.vue +++ b/src/components/Tips/Tips.vue @@ -20,11 +20,11 @@ {{ tip.text }} 取消 - 暂停 - 继续 - 重新开始 - 结束 - 确定 + 暂停 + 继续 + 重新开始 + 结束 + 确定 @@ -58,17 +58,14 @@ export default { this.onCancel(); }, - // TODO: 暂停 - onPause() {}, - - // 重新开始 - onRestart() {}, - - // 结束完成 - onComplete() {}, - - // 继续 - onContinu() {}, + /** + * 执行修改任务状态的动作 + * @param {number} type 状态码 0开始 1暂停 2继续 3完成 默认0 + */ + onChangeStatus(type) { + const param = { id: this.tip.taskId, type }; + // TODO: 发请求 + }, // 点击了取消 onCancel() {