From b3cfcdd210536fa672b36e37b0f54bb9c4e98ada Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期五, 20 六月 2025 14:22:13 +0800 Subject: [PATCH] feat(tabbar): 二维码扫描功能适配 H5 端- 在 fg-tabbar 组件中添加了对 H5 端二维码扫描的支持 - 引入 qrcode 解析库以处理 H5 端的二维码扫描结果 - 根据平台类型(app 或 H5)选择不同的扫描方式 --- eims-ui-mobile/src/pages/inspect/insp-st.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/eims-ui-mobile/src/pages/inspect/insp-st.vue b/eims-ui-mobile/src/pages/inspect/insp-st.vue index 0ca9158..85c1cda 100644 --- a/eims-ui-mobile/src/pages/inspect/insp-st.vue +++ b/eims-ui-mobile/src/pages/inspect/insp-st.vue @@ -78,7 +78,8 @@ <script setup lang="ts"> import { getInspStList } from '@/service/inspect' import dayjs from 'dayjs' - +import { useUserStore, useAccessStore, useSystemConfigStore } from '@/store' +import { isLeader, isLineOrRepair, isOperator } from "@/utils/RoleUtils"; // 鏍囩椤电浉鍏� const activeTab = ref(0) // 榛樿閫変腑绗竴涓爣绛鹃〉锛堝緟鐐规锛� @@ -98,7 +99,7 @@ ]) const equList = ref<Record<string, any>[]>([{ label: '鎵�鏈夎澶�', value: '鎵�鏈夎澶�' }]) - +const userStore = useUserStore() // 鏍囩椤靛垏鎹㈠鐞嗗嚱鏁� function handleTabChange({ index }) { // 鏍规嵁鏍囩椤电储寮曡缃搴旂殑鐘舵�佸�� @@ -142,6 +143,14 @@ } else { delete params.planTime } + + console.log('queryList::', isLineOrRepair(), isOperator(), userStore.userInfo) + if (isLineOrRepair() || isOperator()) { + params.updateBy = userStore.userInfo.userId + } else if (isLeader()) { + delete params.updateBy + } + console.log('params::', params) getInspStList(params) .then((res: any) => { // 璇峰嬁鍦ㄧ綉缁滆姹傚洖璋冧腑缁檇ataList璧嬪�硷紒锛佸彧闇�瑕佽皟鐢╟omplete灏卞彲浠ヤ簡 -- Gitblit v1.9.3