Browse Source

fix: 数据大屏首页数据去除市本级

zhangying 5 months ago
parent
commit
4551c8d156
1 changed files with 7 additions and 2 deletions
  1. 7 2
      vue/src/views/dataScreen/html/index.vue

+ 7 - 2
vue/src/views/dataScreen/html/index.vue

@@ -389,8 +389,13 @@ function loadDifficultyUser() {
 // 获取年度使用数据
 function loadAllData() {
   getYearSystemDataCount({}).then((result: any) => {
-    allSystemDataCountList.value.list = result['汇总'];
-    allSystemDataCountList.value.count = result['汇总'].filter(item => item.regionCode == '100')[0];
+    result['汇总'].forEach((item: any) => {
+      if (item.regionName != '合计' && item.regionName != "市本级") {
+        allSystemDataCountList.value.count.companyCount += item.companyCount;
+        allSystemDataCountList.value.count.postCount += item.postCount;
+        allSystemDataCountList.value.count.jobUserCount += item.jobUserCount;
+      }
+    })
 
     let arr = new Array<any>();
     arr.push(['类型', '企业数', '岗位数', "求职人员数"]);