From 32c78e0a82739521ee3057337a66af1d05f625b0 Mon Sep 17 00:00:00 2001 From: xuli Date: Wed, 28 Jan 2026 11:40:06 +0800 Subject: [PATCH] =?UTF-8?q?nfc=E9=AA=8C=E8=AF=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/polling.js | 11 +++++- src/components/NFCTemplate.vue | 39 +++++++++++++++----- src/enums/requestEnums.js | 7 +++- src/pages/business/polling/nfcTest/index.vue | 2 +- src/pages/business/polling/optionDetail.vue | 27 ++++++++------ src/utils/request/http.js | 2 +- src/utils/request/index.js | 17 ++++++--- 7 files changed, 74 insertions(+), 31 deletions(-) diff --git a/src/api/polling.js b/src/api/polling.js index accc77c..ccc93bc 100644 --- a/src/api/polling.js +++ b/src/api/polling.js @@ -170,5 +170,12 @@ export function patrolBugAddLog(data) { data }) } -// -/**主动上报 end */ \ No newline at end of file +/**主动上报 end */ + +// 验证NFC扫描是否正确 +export function patroltaskValidateNfc(data) { + return request.post({ + url: '/patrol/patroltask/validateNfc', + data + }) +} \ No newline at end of file diff --git a/src/components/NFCTemplate.vue b/src/components/NFCTemplate.vue index c0e13ee..db1229c 100644 --- a/src/components/NFCTemplate.vue +++ b/src/components/NFCTemplate.vue @@ -4,7 +4,7 @@ NFC识别 - + @@ -40,16 +40,20 @@