|
@@ -1,38 +1,40 @@
|
|
|
<template>
|
|
|
- <Page :title="`${currentRoutingInformation?.name}详情`">
|
|
|
+ <Page :title="`${currentRoutingInformation?.name}详情`" styleReset="backNone">
|
|
|
<template v-slot:body>
|
|
|
- <!-- 商机 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'business'">
|
|
|
- <Business />
|
|
|
- </template>
|
|
|
- <!-- 线索 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'thread'">
|
|
|
- <Thread />
|
|
|
- </template>
|
|
|
- <!-- 客户 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'customer'">
|
|
|
- <Customer />
|
|
|
- </template>
|
|
|
- <!-- 联系人 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'contacts'">
|
|
|
- <Contacts />
|
|
|
- </template>
|
|
|
- <!-- 任务 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'tasks'">
|
|
|
- <Tasks />
|
|
|
- </template>
|
|
|
- <!-- 产品管理 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'product'">
|
|
|
- <Product />
|
|
|
- </template>
|
|
|
- <!-- 合同管理 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'contract'">
|
|
|
- <Contract />
|
|
|
- </template>
|
|
|
- <!-- 销售订单 -->
|
|
|
- <template v-if="currentRoutingInformation?.key == 'order'">
|
|
|
- <Order />
|
|
|
- </template>
|
|
|
+ <div class="w-full h-full detailsClass">
|
|
|
+ <!-- 商机 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'business'">
|
|
|
+ <Business :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ <!-- 线索 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'thread'">
|
|
|
+ <Thread :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ <!-- 客户 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'customer'">
|
|
|
+ <Customer :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ <!-- 联系人 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'contacts'">
|
|
|
+ <Contacts :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ <!-- 任务 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'tasks'">
|
|
|
+ <Tasks :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ <!-- 产品管理 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'product'">
|
|
|
+ <Product :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ <!-- 合同管理 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'contract'">
|
|
|
+ <Contract :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ <!-- 销售订单 -->
|
|
|
+ <template v-if="currentRoutingInformation?.key == 'order'">
|
|
|
+ <Order :info="queryParameters" />
|
|
|
+ </template>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</Page>
|
|
|
</template>
|
|
@@ -42,7 +44,7 @@ import { ref } from 'vue';
|
|
|
import { useLifecycle } from '@hooks/useCommon.js';
|
|
|
import useRouterStore from "@store/useRouterStore.js";
|
|
|
|
|
|
-import Business from "@pages/pageComponents/business/detail.vue"
|
|
|
+import Business from "@pages/pageComponents/business/detail.vue"
|
|
|
import Thread from "@pages/pageComponents/thread/detail.vue"
|
|
|
import Customer from "@pages/pageComponents/customer/detail.vue"
|
|
|
import Contacts from "@pages/pageComponents/contacts/detail.vue"
|
|
@@ -70,5 +72,29 @@ useLifecycle({
|
|
|
</script>
|
|
|
|
|
|
<style lang='scss' scoped>
|
|
|
- /* 样式代码 */
|
|
|
+.backNone {
|
|
|
+ background: linear-gradient(to bottom, #E0EFFF, #F8F8F8 60%) !important;
|
|
|
+
|
|
|
+ :deep(.van-nav-bar) {
|
|
|
+ background: none;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.detailsClass {
|
|
|
+ :deep(.van-tabs) {
|
|
|
+ height: 100%;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+ :deep(.van-tabs__content) {
|
|
|
+ flex: 1;
|
|
|
+ overflow: hidden;
|
|
|
+ }
|
|
|
+ :deep(.van-tab__panel) {
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ :deep(.van-tabs__nav) {
|
|
|
+ background: none;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|