Administrator
2021-12-31 cd33ec4672397c6665665d59ed8ea0d13150367c
src/views/securityAnalysis/index.vue
@@ -109,6 +109,7 @@
  getExamStatisInfo, //保安员考试情况统计
  getinformationselectDisp, //保安派遣情况
  getinformationselectSoil, //社保缴纳情况统计
  getEducationStatistics
} from "@/api/securityAnalysis/securityAnalysis";
import { mapState } from "vuex";
import { getRoleDetail } from "@/api/system/role";
@@ -849,35 +850,18 @@
    },
    getEC6() {
      var that = this;
      getinformationselectSoil(this.deptid, this.jurisdiction)
      getEducationStatistics(this.deptid, this.jurisdiction)
        .then((res) => {
          var a = res.data.data;
          var b = that.changedata(
            a,
            "numj",
            "nmuwj",
            "已缴纳社保",
            "未缴纳社保"
          );
          that.setEC6(b);
        })
        .catch((res) => {
          var b = that.changedata(
            [],
            "numj",
            "nmuwj",
            "已缴纳社保",
            "未缴纳社保"
          );
          that.setEC6(b);
          that.setEC6(a);
        });
    },
    setEC6(d) {
      var option;
      d = this.setColor(d, this.colors);
      // d = this.setColor(d, this.colors);
      option = {
        title: {
          text: "社保缴纳情况统计",
          text: "保安员学历分布统计",
          // subtext: "纯属虚构",
          top: 25,
          left: "center",