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() {