| | |
| | | </view> |
| | | </view> |
| | | <view class="line"><text class="text">{{ startTime}} - {{endTime}} </text> |
| | | <text class="text">{{Math.ceil((taskData.end_time- taskData.start_time) / (60* 1000)) }}min</text> |
| | | <text class="text">{{Math.ceil((taskData.end_time- taskData.start_time) / (60* 1000)) }}{{translate("minute")}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | taskStatusText() { |
| | | let statusText = "" |
| | | if (this.taskData.task_status == "finish") { |
| | | statusText = "任务完成" |
| | | statusText = this.translate("task_completed") |
| | | } else if (this.taskData.task_status == "cancel") { |
| | | statusText = "任务异常" |
| | | statusText = this.translate("task_exception") |
| | | } else { |
| | | statusText = this.taskData.task_status |
| | | } |
| | |
| | | taskStatusText() { |
| | | let statusText = "" |
| | | if (this.taskData.task_status == "finish") { |
| | | statusText = "任务完成" |
| | | statusText = this.translate("task_completed") |
| | | } else if (this.taskData.task_status == "cancel") { |
| | | statusText = "任务异常" |
| | | statusText =this.translate("task_exception") |
| | | } else { |
| | | statusText = this.taskData.task_status |
| | | } |
| | |
| | | }, |
| | | clickTask() { |
| | | this.$emit('click-item', this.taskData) |
| | | } |
| | | }, |
| | | translate(t) { |
| | | if (typeof this.$t == "function") return this.$t(`page.${t}`) |
| | | else return t; |
| | | }, |
| | | |
| | | } |
| | | } |