Administrator
2022-01-04 0e4d44c2f5a7511d2eee72deecb76b5ba67358cd
src/views/securityAnalysis/index.vue
@@ -50,12 +50,13 @@
    </div>
    <div>
      <el-dialog
        width="90%"
        width="80%"
        :title="titles"
        append-to-body
        :visible.sync="dialogVisible"
        top="8vh"
        height="70%"
        lock-scroll="false"
        top="1vh"
        center
      >
        <situation
          :card="{ deptId: deptid, jurisdiction: jurisdiction }"
@@ -617,6 +618,12 @@
    // },
    //后改,考试数据统计
    setEC3(data) {
      //获取年份
      // let year = new Date().getFullYear();
      // var timeData = [];
      // for (let index = 1; index < 13; index++) {
      //   timeData.push(year+"-"+ index );
      // }
      const seriesdata = [];
      data.forEach((item) => {
        if (item.type == 1) {
@@ -642,6 +649,20 @@
          });
        }
      });
      var datetime = [
              "1月",
              "2月",
              "3月",
              "4月",
              "5月",
              "6月",
              "7月",
              "8月",
              "9月",
              "10月",
              "11月",
              "12月",
            ]
      //echarts 图表数据
      var option = {
        title: {
@@ -673,20 +694,7 @@
        xAxis: [
          {
            type: "category",
            data: [
              "1月",
              "2月",
              "3月",
              "4月",
              "5月",
              "6月",
              "7月",
              "8月",
              "9月",
              "10月",
              "11月",
              "12月",
            ],
            data: datetime
          },
        ],
        yAxis: [
@@ -783,7 +791,6 @@
        },
        series: [
          {
            // data: dd,
            data: data,
            type: "bar",
          },