Browse Source

联系人数据bug修复

qymljy 3 months ago
parent
commit
2452c98228

+ 2 - 1
src/HDrpManagement/contactData/components/statisticsOfClues.vue

@@ -8,7 +8,7 @@
       <template slot="content">
         <div style="display: flex;justify-content: space-between" :style="{height:heightDiv}">
           <div ref="statisticsOfCluesChart" :style="{height: heightChart}"></div>
-          <div style="width: 70%"  :style="{height: heightDiv}">
+          <div  :style="{height: heightDiv,width:windowWidth > 1646 ? '70%' : '50%'}">
             <tableDetail :layout="tablecols" :data="tableList" :opwidth="200" :custom="true" fixed-name="operation" :height="heightTable">
               <template v-slot:customcol="scope">
                 <div v-if="scope.column.columnname === 'tag'">
@@ -55,6 +55,7 @@ import {Pie} from "@antv/g2plot";
 import fullScreen from "@/views/salesData/components/fullScreen";
 export default {
   name: "statisticsOfClues",
+  props:['windowWidth'],
   components:{dataTemPlate,btnSelect,fullScreen,
     drawerTemp:() =>  import('@/components/normal-basic-layout/drawerDetail/index')},
   data() {

+ 2 - 1
src/HDrpManagement/contactData/components/statisticsOfCustomer.vue

@@ -28,7 +28,7 @@
       <template slot="content">
         <div style="display: flex;justify-content: space-between" :style="{height:heightDiv}">
           <div ref="statisticsOfCustomerChart" :style="{height: heightChart}"></div>
-          <div style="width: 70%"  :style="{height: heightDiv}">
+          <div  :style="{height: heightDiv,width:windowWidth > 1646 ? '70%' : '50%'}">
             <tableDetail :layout="tablecols" :data="tableList" :opwidth="200" :custom="true" fixed-name="operation" :height="heightTable">
               <template v-slot:customcol="scope">
                 <div v-if="scope.column.columnname === 'tag'">
@@ -75,6 +75,7 @@ import {Pie} from "@antv/g2plot";
 import fullScreen from "@/views/salesData/components/fullScreen";
 export default {
   name: "statisticsOfCustomer",
+  props:['windowWidth'],
   components:{dataTemPlate,btnSelect,fullScreen,
     drawerTemp:() =>  import('@/components/normal-basic-layout/drawerDetail/index')},
   data() {

+ 2 - 1
src/HDrpManagement/contactData/components/statisticsOfFollow.vue

@@ -8,7 +8,7 @@
       <template slot="content">
         <div style="display: flex;justify-content: space-between" :style="{height:heightDiv}">
           <div ref="statisticsOfFollowChart" :style="{height: heightChart}"></div>
-          <div style="width: 70%"  :style="{height: heightDiv}">
+          <div   :style="{height: heightDiv,width:windowWidth > 1646 ? '70%' : '50%'}">
             <tableDetail :layout="tablecols" :data="tableList" :opwidth="200" :custom="true" fixed-name="operation" :height="heightTable">
               <template v-slot:customcol="scope">
                 <div v-if="scope.column.columnname === 'tag'">
@@ -55,6 +55,7 @@ import {Pie} from "@antv/g2plot";
 import fullScreen from "@/views/salesData/components/fullScreen";
 export default {
   name: "statisticsOfFollow",
+  props:['windowWidth'],
   components:{dataTemPlate,btnSelect,fullScreen,
     drawerTemp:() =>  import('@/components/normal-basic-layout/drawerDetail/index')},
   data() {

+ 2 - 1
src/HDrpManagement/contactData/components/statisticsOfProject.vue

@@ -41,7 +41,7 @@
       <template slot="content">
         <div style="display: flex;justify-content: space-between" :style="{height:heightDiv}">
           <div ref="statisticsOfProjectChart" :style="{height: heightChart}"></div>
-          <div style="width: 70%"  :style="{height: heightDiv}">
+          <div  :style="{height: heightDiv,width:windowWidth > 1646 ? '70%' : '50%'}">
             <tableDetail :layout="tablecols" :data="tableList" :opwidth="200" :custom="true" fixed-name="operation" :height="heightTable">
               <template v-slot:customcol="scope">
                 <div v-if="scope.column.columnname === 'tag'">
@@ -88,6 +88,7 @@ import {Pie} from "@antv/g2plot";
 import fullScreen from "@/views/salesData/components/fullScreen";
 export default {
   name: "statisticsOfProject",
+  props:['windowWidth'],
   components:{dataTemPlate,btnSelect,fullScreen,
     drawerTemp:() =>  import('@/components/normal-basic-layout/drawerDetail/index')},
   data() {

+ 2 - 2
src/HDrpManagement/contactData/components/statisticsOfUnFollow.vue

@@ -114,7 +114,7 @@ export default {
       chartMap:null,
       typesData:[],
       heightChart:'50%',
-      heightDiv:'800px',
+      heightDiv:'830px',
       heightTable:'360px'
     }
   },
@@ -214,7 +214,7 @@ export default {
     /*退出全屏*/
     backFull(val){
       // this.heightChart = '100%'
-      this.heightDiv = '800px'
+      this.heightDiv = '830px'
       this.heightTable = '360px'
       this.isFull = false
       this.$emit('backFull',val)

+ 4 - 4
src/HDrpManagement/contactData/index.vue

@@ -166,13 +166,13 @@
           <!--  近12月联系人新增分析        -->
           <contactsAddAnalysis class="mt-10" ref="contactsAddAnalysisRef"></contactsAddAnalysis>
           <!--  联系人关联线索情况统计       -->
-          <statisticsOfClues class="mt-10" ref="statisticsOfCluesRef"></statisticsOfClues>
+          <statisticsOfClues class="mt-10" ref="statisticsOfCluesRef" :windowWidth="windowWidth"></statisticsOfClues>
           <!--  联系人关联客户情况统计       -->
-          <statisticsOfCustomer class="mt-10" ref="statisticsOfCustomerRef"></statisticsOfCustomer>
+          <statisticsOfCustomer class="mt-10" ref="statisticsOfCustomerRef" :windowWidth="windowWidth"></statisticsOfCustomer>
           <!--  联系人关联项目情况统计       -->
-          <statisticsOfProject class="mt-10" ref="statisticsOfProjectRef"></statisticsOfProject>
+          <statisticsOfProject class="mt-10" ref="statisticsOfProjectRef" :windowWidth="windowWidth"></statisticsOfProject>
           <!--  联系人跟进情况统计       -->
-          <statisticsOfFollow class="mt-10" ref="statisticsOfFollowRef"></statisticsOfFollow>
+          <statisticsOfFollow class="mt-10" ref="statisticsOfFollowRef" :windowWidth="windowWidth"></statisticsOfFollow>
           <!--  近12月联系人跟进分析        -->
           <contactsFollowAnalysis class="mt-10" ref="contactsFollowAnalysisRef"></contactsFollowAnalysis>
           <!--  联系人未跟进天数分析        -->