Browse Source

2023-10-30

codeMan 2 years ago
parent
commit
a17f3973e2

+ 2 - 2
src/HDrpManagement/projectData/components/pageTable.vue

@@ -74,8 +74,8 @@ export default {
       this.listData()
     },
   },
-  mounted() {
-    this.listData(init)
+  created() {
+    this.listData(true)
   }
 }
 

+ 3 - 4
src/HDrpManagement/projectData/index.vue

@@ -30,7 +30,7 @@
               <div class="data-all-wrapper">
                 <div class="data-left">
                   <div class="data-item">
-                    <p>{{ tool.formatAmount(dataAll.dealProject) }}</p>
+                    <p>{{ tool.formatAmount(dataAll.totalqty) }}</p>
                     <p>项目总数</p>
                   </div>
                   <div class="data-item">
@@ -52,7 +52,7 @@
                     </p>
                   </div>
                   <div class="data-item">
-                    <p>{{ tool.formatAmount(dataAll.totalqty) }}</p>
+                    <p>{{ tool.formatAmount(dataAll.dealProject) }}</p>
                     <p>
                       项目成交数
                       <el-tooltip class="item" effect="dark" content="项目成交数:统计有关联审核过的订单的项目数量" placement="top">
@@ -1900,7 +1900,7 @@ export default {
             position:'left'
           },
           // 添加 中心统计文本 交互
-          interactions: [{ type: 'element-selected' },{ type: 'element-active' },{ type: 'pie-statistic-active' }],
+          interactions: [{ type: 'element-highlight-by-x ' },{ type: 'element-active' },{ type: 'pie-statistic-active' }],
         });
         this.projectScoreMap.on('element:click',(v) => {
           if (v.data.data.key != this.scoreTableParam.content.where.istask) {
@@ -1919,7 +1919,6 @@ export default {
     },
     async getDate (init) {
       if(init === true) this.dateParam.content.where.projecttype = this.projectType.length ? this.projectType[0].value : ''
-      console.log(this.dateParam.content.where.projecttype,init);
       let res = await this.$api.requested(this.dateParam)
       this.dateList = res.data
       console.log(this.dateList,'周期数据');