任务直接标记为已完成,任务描述和备注改为富文本渲染
This commit is contained in:
@@ -57,12 +57,12 @@
|
|||||||
|
|
||||||
<!-- 任务描述 -->
|
<!-- 任务描述 -->
|
||||||
<view class="section-title">任务描述</view>
|
<view class="section-title">任务描述</view>
|
||||||
<view v-if="taskDetail.content" class="content-text">{{ taskDetail.content }}</view>
|
<mp-html v-if="taskDetail.content" :content="taskDetail.content" class="content-text" />
|
||||||
<view v-else class="empty-content">暂无任务描述</view>
|
<view v-else class="empty-content">暂无任务描述</view>
|
||||||
|
|
||||||
<!-- 备注 -->
|
<!-- 备注 -->
|
||||||
<view v-if="taskDetail.remark" class="section-title">备注</view>
|
<view v-if="taskDetail.remark" class="section-title">备注</view>
|
||||||
<view v-if="taskDetail.remark" class="content-text">{{ taskDetail.remark }}</view>
|
<mp-html v-if="taskDetail.remark" :content="taskDetail.remark" class="content-text" />
|
||||||
|
|
||||||
<!-- 报工进度(仅报工任务显示) -->
|
<!-- 报工进度(仅报工任务显示) -->
|
||||||
<view v-if="isReportTask" class="section-title">报工进度</view>
|
<view v-if="isReportTask" class="section-title">报工进度</view>
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ export default {
|
|||||||
try {
|
try {
|
||||||
const response = await updateTask({
|
const response = await updateTask({
|
||||||
taskId: task.taskId,
|
taskId: task.taskId,
|
||||||
state: 1,
|
state: 2, // 2表示任务已完成
|
||||||
completedTime: new Date()
|
completedTime: new Date()
|
||||||
});
|
});
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user