diff --git a/pages/workBenchTodoList/index.js b/pages/workBenchTodoList/index.js index 6b8133b..84c5a6d 100644 --- a/pages/workBenchTodoList/index.js +++ b/pages/workBenchTodoList/index.js @@ -85,6 +85,10 @@ onMenuSelect(e) { this.handleDoNotice(id); break; } +}, +handleDoNoticeBtn(e) { + const id = e.currentTarget.dataset.id; + this.handleDoNotice(id) }, async handleDoNotice(id) { const { code, message } = await doNoticeFlow(id) diff --git a/pages/workBenchTodoList/index.wxml b/pages/workBenchTodoList/index.wxml index 2f31823..7655ff8 100644 --- a/pages/workBenchTodoList/index.wxml +++ b/pages/workBenchTodoList/index.wxml @@ -64,7 +64,7 @@ class="primaryTextBtn" wx:if="{{item.flow_status === 1}}" data-id="{{item.id}}" - bind:tap="handleDoNotice" + bind:tap="handleDoNoticeBtn" > 确认 已确认