瀏覽代碼

数据看板调整

qymljy 2 年之前
父節點
當前提交
6a2ebda202

+ 34 - 5
src/HDrpManagement/customerData/index.vue

@@ -29,7 +29,18 @@
                 <div class="data-left">
                   <div class="data-item">
                     <p>{{ tool.formatAmount(dataAll.total)|| 0 }}</p>
-                    <p>客户总数</p>
+                    <p>
+                      客户总数
+                      <el-tooltip class="item" effect="dark" content="客户总数:包含我的客户、公海客户数量" placement="top">
+                        <img style="vertical-align: middle" src="@/assets/icons/prompt_icon.svg" alt="">
+                      </el-tooltip>
+                    </p>
+                  </div>
+                  <div class="data-item">
+                    <p>{{ tool.formatAmount(dataAll.customerpoolqty)}}</p>
+                    <p>
+                      公海客户数
+                    </p>
                   </div>
                   <div class="data-item">
                     <p>{{ tool.formatAmount(dataAll.tradedCustomers)}}</p>
@@ -1018,6 +1029,14 @@ export default {
         map:[],
         table:[]
       },
+      dataAllParam:{
+        "id": 20231015170504,
+        "content" :{
+          "dataid": '',
+          "type":"",
+          "username":JSON.parse(sessionStorage.getItem('accountinfo')).name,
+        }
+      },
     }
   },
   methods:{
@@ -1032,10 +1051,7 @@ export default {
     },
     //获取数据总览
     async getdataAll () {
-      let res = await this.$api.requested({
-        id:20231015170504,
-        content:{}
-      })
+      let res = await this.$api.requested(this.dataAllParam)
       this.dataAll = res.data
       console.log(this.dataAll,'数据总览');
     },
@@ -1611,6 +1627,12 @@ export default {
     selectDep (val) {
       let id = val[val.length - 1]
       if (val.length) {
+        /*数据总览*/
+        this.dataAllParam.content.dataid = id
+        this.dataAllParam.content.type = 1
+        this.dataAllParam.content.username = ''
+        this.getdataAll()
+
         this.chartParam1.content.dataid = id
         this.chartParam1.content.type = 1
         this.chartParam1.content.username = ''
@@ -1676,7 +1698,14 @@ export default {
         this.unfllowTableParam.content.username = ''
         this.$refs.customerUnfllowTable.listData()
       } else {
+
         let name = JSON.parse(sessionStorage.getItem('accountinfo')).name
+        /*数据总览*/
+        this.dataAllParam.content.dataid = ''
+        this.dataAllParam.content.type = ''
+        this.dataAllParam.content.username =name
+        this.getdataAll()
+
         this.chartParam1.content.dataid = ''
         this.chartParam1.content.type =''
         this.chartParam1.content.username =name

+ 22 - 5
src/HDrpManagement/projectData/index.vue

@@ -1509,7 +1509,15 @@ export default {
           }
         }
       },
-      dateList:{}
+      dateList:{},
+      dataAllParam:{
+        "id": 20231018110404,
+        "content" :{
+          "dataid": '',
+          "type":"",
+          "username":JSON.parse(sessionStorage.getItem('accountinfo')).name,
+        }
+      },
     }
   },
   methods:{
@@ -1524,10 +1532,7 @@ export default {
     },
     //获取数据总览
     async getdataAll () {
-      let res = await this.$api.requested({
-        id:20231018110404,
-        content:{}
-      })
+      let res = await this.$api.requested(this.dataAllParam)
       this.dataAll = res.data
       console.log(this.dataAll,'数据总览');
     },
@@ -2280,6 +2285,12 @@ export default {
     selectDep (val) {
       let id = val[val.length - 1]
       if (val.length) {
+        /*数据总览*/
+        this.dataAllParam.content.dataid = id
+        this.dataAllParam.content.type = 1
+        this.dataAllParam.content.username = ''
+        this.getdataAll()
+
         /*项目类型分析*/
         this.typeMapParam.content.dataid = id
         this.typeMapParam.content.type = 1
@@ -2385,6 +2396,12 @@ export default {
       } else {
         /*项目类型分析*/
         let name = JSON.parse(sessionStorage.getItem('accountinfo')).name
+        /*数据总览*/
+        this.dataAllParam.content.dataid = ''
+        this.dataAllParam.content.type = ''
+        this.dataAllParam.content.username = name
+        this.getdataAll()
+
         this.typeMapParam.content.dataid = ''
         this.typeMapParam.content.type = ''
         this.typeInit()

+ 4 - 2
src/views/clueData/index.vue

@@ -74,7 +74,8 @@ export default {
     otherMethod(dataid){
       const userName = JSON.parse(sessionStorage.getItem('active_account')).name
       /*数字看板*/
-      this.$refs.digitalSigns.listData()
+      this.$refs.digitalSigns.param.content.type = '0'
+      this.$refs.digitalSigns.listData(dataid)
       /*线索新增*/
       this.$refs.clueAdd.$refs.departmentSalesperson.depment = ''
       this.$refs.clueAdd.$refs.departmentSalesperson.deplist = this.deplist
@@ -107,7 +108,8 @@ export default {
     /*其他页面调用图表*/
     otherModel(dataid,type){
       /*数字看板*/
-      this.$refs.digitalSigns.listData()
+      this.$refs.digitalSigns.param.content.type = type
+      this.$refs.digitalSigns.listData(dataid)
       /*线索新增*/
       this.$refs.clueAdd.$refs.departmentSalesperson.depment = type == '1'?dataid:''
       this.$refs.clueAdd.$refs.departmentSalesperson.deplist = this.deplist

+ 4 - 1
src/views/clueData/modules/digitalSigns.vue

@@ -110,12 +110,15 @@ export default {
       param:{
         "id": 20231014114204,
         "content": {
+          "type": 0,
+          "dataid": '',
         }
       }
     }
   },
   methods:{
-    async listData(){
+    async listData(val){
+      this.param.content.dataid = val
       const res = await this.$api.requested(this.param)
       this.list = res.data
     }