From b9cbcd5b45e5a4721d9b162c49aba3c1a5ad887c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 15 Dec 2025 22:41:12 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=B0=86=20pages=20=E9=87=8C?= =?UTF-8?q?=E7=9A=84=20uni.showToast=20=E6=9B=BF=E6=8D=A2=E6=88=90=20wd-to?= =?UTF-8?q?ast?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processInstance/create/index.vue | 16 +++++++------- .../processInstance/detail/audit/index.vue | 17 +++++---------- .../processInstance/detail/index.vue | 14 ++++++------- src/pages-infra/apiAccessLog/detail/index.vue | 9 +++----- src/pages-infra/apiErrorLog/detail/index.vue | 7 ++----- src/pages-infra/webSocket/index.vue | 21 ++++++++++--------- src/pages/contact/index.vue | 6 ++++-- src/pages/index/components/menu-grid.vue | 9 +++++--- src/pages/index/settings/index.vue | 8 ++++--- src/pages/user/contact/index.vue | 8 +++---- src/pages/user/index.vue | 7 +++---- 11 files changed, 57 insertions(+), 65 deletions(-) diff --git a/src/pages-bpm/processInstance/create/index.vue b/src/pages-bpm/processInstance/create/index.vue index c26d05f..4ace5c5 100644 --- a/src/pages-bpm/processInstance/create/index.vue +++ b/src/pages-bpm/processInstance/create/index.vue @@ -90,9 +90,10 @@ import type { Category } from '@/api/bpm/category' import type { ProcessDefinition } from '@/api/bpm/definition' import { onLoad } from '@dcloudio/uni-app' import { computed, ref } from 'vue' +import { useToast } from 'wot-design-uni' import { getCategorySimpleList } from '@/api/bpm/category' import { getProcessDefinitionList } from '@/api/bpm/definition' -import { navigateBackPlus } from '@/utils'; +import { navigateBackPlus } from '@/utils' definePage({ style: { @@ -101,6 +102,8 @@ definePage({ }, }) +const toast = useToast() + const searchName = ref('') const activeIndex = ref(0) const scrollIntoView = ref('') @@ -197,10 +200,7 @@ function getIconColor(index: number) { /** 选择流程定义 */ function handleSelect(item: ProcessDefinition) { // TODO @芋艿:跳转到流程表单页面 - uni.showToast({ - title: `选择了: ${item.name}`, - icon: 'none', - }) + toast.show(`选择了: ${item.name}`) } /** 加载分类列表 */ @@ -211,8 +211,7 @@ async function loadCategoryList() { categoryList.value.forEach((cat) => { expandedCategories.value[cat.code] = true }) - } - catch (error) { + } catch (error) { console.error('[create] 加载分类失败:', error) } } @@ -221,8 +220,7 @@ async function loadCategoryList() { async function loadDefinitionList() { try { definitionList.value = await getProcessDefinitionList({ suspensionState: 1 }) - } - catch (error) { + } catch (error) { console.error('[create] 加载流程定义失败:', error) } } diff --git a/src/pages-bpm/processInstance/detail/audit/index.vue b/src/pages-bpm/processInstance/detail/audit/index.vue index cfd3d35..9e17616 100644 --- a/src/pages-bpm/processInstance/detail/audit/index.vue +++ b/src/pages-bpm/processInstance/detail/audit/index.vue @@ -44,6 +44,7 @@