|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="message_overview">
|
|
|
|
|
|
|
+ <div v-if="hasHistoryPermission" class="message_overview">
|
|
|
<!-- 左侧:产品概览与最新状态 -->
|
|
<!-- 左侧:产品概览与最新状态 -->
|
|
|
<div class="left_panel hide_scrollbar">
|
|
<div class="left_panel hide_scrollbar">
|
|
|
<div v-if="productDataList?.length > 0" class="product_list">
|
|
<div v-if="productDataList?.length > 0" class="product_list">
|
|
@@ -67,6 +67,9 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div v-else class="message_overview no_data_bg">
|
|
|
|
|
+ <span>暂无权限 </span>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
@@ -110,6 +113,8 @@ const historyFollowData = ref({
|
|
|
const currentPage = ref(1)
|
|
const currentPage = ref(1)
|
|
|
const pageSize = ref(20)
|
|
const pageSize = ref(20)
|
|
|
const totalNum = ref(0)
|
|
const totalNum = ref(0)
|
|
|
|
|
+
|
|
|
|
|
+const hasHistoryPermission = ref(true) //是否有查看历史跟进记录的权限
|
|
|
const handlePaginationChange = async (params)=>{
|
|
const handlePaginationChange = async (params)=>{
|
|
|
const {type,val} = params
|
|
const {type,val} = params
|
|
|
if(type == 'currentPage'){
|
|
if(type == 'currentPage'){
|
|
@@ -120,6 +125,7 @@ const handlePaginationChange = async (params)=>{
|
|
|
await GetHighSeasCustomerDetail()
|
|
await GetHighSeasCustomerDetail()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
// 跟进记录筛选条件
|
|
// 跟进记录筛选条件
|
|
|
const historyFollowSearchParams = ref({
|
|
const historyFollowSearchParams = ref({
|
|
|
member:'all',
|
|
member:'all',
|
|
@@ -140,8 +146,10 @@ const GetHighSeasCustomerDetail = async ()=>{
|
|
|
let res = await getHighSeasCustomerDetailApi(params)
|
|
let res = await getHighSeasCustomerDetailApi(params)
|
|
|
if(res?.code == 200){
|
|
if(res?.code == 200){
|
|
|
const {followOverViewData,productOverviewData,
|
|
const {followOverViewData,productOverviewData,
|
|
|
- selectData,dataPageList
|
|
|
|
|
|
|
+ selectData,dataPageList,historyFollowStatus
|
|
|
} = res?.data || {}
|
|
} = res?.data || {}
|
|
|
|
|
+
|
|
|
|
|
+ hasHistoryPermission.value = historyFollowStatus === 0 ? false : true
|
|
|
// 右侧 跟进记录
|
|
// 右侧 跟进记录
|
|
|
historyFollowData.value = {
|
|
historyFollowData.value = {
|
|
|
hsitoryProductNum:followOverViewData.historyProductCount,
|
|
hsitoryProductNum:followOverViewData.historyProductCount,
|
|
@@ -272,6 +280,13 @@ onMounted(async ()=>{
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
color: #333;
|
|
color: #333;
|
|
|
|
|
|
|
|
|
|
+ &.no_data_bg{
|
|
|
|
|
+ span{
|
|
|
|
|
+ margin-top: 0px;
|
|
|
|
|
+ padding-top:290px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
> * {
|
|
> * {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
overflow: auto;
|
|
overflow: auto;
|