diff --git a/src/env.d.ts b/src/env.d.ts index d27eb5a..cffc168 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,8 +1,8 @@ /// -declare module '*.vue' { - import { DefineComponent } from 'vue' - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types - const component: DefineComponent<{}, {}, any> - export default component +declare module "*.vue" { + import { DefineComponent } from "vue" + // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types + const component: DefineComponent + export default component } diff --git a/src/pages/integrated/visitor/detail.vue b/src/pages/integrated/visitor/detail.vue index be74412..f320cdd 100644 --- a/src/pages/integrated/visitor/detail.vue +++ b/src/pages/integrated/visitor/detail.vue @@ -2,8 +2,21 @@ - - {{ alertList[detail.checkStatus].text }} + + {{ alertListType2[detail.checkStatus].text }} + + + {{ alertListType1[detail.checkStatus].text }} 访客信息 @@ -16,7 +29,7 @@ {{ detail.mobile }} - 来访公司名称 + 访客公司名称 {{ detail.companyName }} @@ -75,12 +88,18 @@ import { ref } from "vue" import { onLoad } from "@dcloudio/uni-app" import { invitationApi } from "@/sheep/api" -const alertList = { - 1: { color: "#2db7f5", text: "访客未接受邀约" }, +const alertListType2 = { + 1: { color: "#2db7f5", text: "访客还未接受邀约" }, 2: { color: "#52c41a", text: "访客待到访" }, 3: { color: "#f5a623", text: "访客拒绝了邀约" }, 5: { color: "#f5222d", text: "您取消了邀约" }, } +const alertListType1 = { + 1: { color: "#2db7f5", text: "您还未接受访客申请" }, + 2: { color: "#52c41a", text: "访客待到访" }, + 3: { color: "#f5a623", text: "您拒绝了访客申请" }, + 5: { color: "#f5222d", text: "访客申请者取消了申请" }, +} const detail = ref({}) const visitorReasonList = ref<{ title: string; id: string }[]>([]) diff --git a/src/pages/integrated/visitor/invitation-record.vue b/src/pages/integrated/visitor/invitation-record.vue index 7883819..b4bd7b7 100644 --- a/src/pages/integrated/visitor/invitation-record.vue +++ b/src/pages/integrated/visitor/invitation-record.vue @@ -15,7 +15,7 @@ @scroll="pageHook.scroll" >