he wei
2023-07-27 172bd6b34a43037f188c337100371f7bfd9c640c
src/views/home/home-conductor.vue
@@ -5,6 +5,7 @@
      <!-- 上 -->
      <div class="row-1">
        <card class="card row-1" title="基础资源信息" content-class="base-card">
          <!-- TODO 设备数量等接口改好 -->
          <total-data
            class="row-item"
            :type="0"
@@ -474,8 +475,8 @@
        pwrProd: [],
        pwrProdDialog: false,
        pwrProdList: [],
        // 因为投运年限有四个级别 所以要存四份
        battProdAnalysis: [[], [], [], []],
        // 因为投运年限有八个级别 所以要存八份
        battProdAnalysis: [[], [], [], [], [], [], [], []],
      },
      toObj: {},
      listVisible: false,
@@ -484,18 +485,34 @@
      years: [
        {
          value: 0,
          label: "3年以内",
          label: "1年以内",
        },
        {
          value: 1,
          label: "3-5年",
          label: "2年以内",
        },
        {
          value: 2,
          label: "5-7年",
          label: "3年以内",
        },
        {
          value: 3,
          label: "4年以内",
        },
        {
          value: 4,
          label: "5年以内",
        },
        {
          value: 5,
          label: "6年以内",
        },
        {
          value: 6,
          label: "7年以内",
        },
        {
          value: 7,
          label: "7年以上",
        },
      ],
@@ -625,7 +642,7 @@
          data2: { node, stationType },
        },
        resProductQuaAnalysis: {
          data: { threeYear, fiveYear, sevenYear, otherYear },
          data: { year1, year2, year3, year4, year5, year6, year7, yearOther },
        },
        resPwrdevInfAnalysis: { data2: power },
        battGroupInfo: {
@@ -735,7 +752,7 @@
      let analysis = [],
        analysis1 = [];
      // let prodList = [];
      [threeYear, fiveYear, sevenYear, otherYear].forEach((item, idx) => {
      [year1, year2, year3, year4, year5, year6, year7, yearOther].forEach((item, idx) => {
        analysis.push(this.formatTestData(item, idx));
        analysis1.push(Object.keys(item).map((v) => ({ name: v, ...item[v] })));
        // prodList.push(...Object.keys(item));
@@ -753,9 +770,9 @@
      this.$refs.battChart.setData(analysis[this.year0]);
      this.year0Change(this.year0);
      let { getTestData, year1, battProd } = this;
      let { getTestData, battProd } = this;
      // 性能2
      this.$refs.analysis1.setData(getTestData(year1, battProd));
      this.$refs.analysis1.setData(getTestData(this.year1, battProd));
      if (!this.updateFlag) {
        this.updateFlag = true;
        this.resizeChart();
@@ -1034,6 +1051,8 @@
        path: "/dataMager/powerMager",
        query: {
          producer: JSON.stringify(producer),
          // TODO
          pageFlag: Math.random()
        },
      });
    },
@@ -1154,7 +1173,8 @@
        ][this.testLevel];
        let testType = params.name == "核容放电" ? "3" : "2";
        this.$router.push({
          path: "/dataTest/historyInfoMager",
          // TODO
          path: "/dataTest/historyInfoMager?pageFlag="+Math.random(),
          query: {
            testType,
            startDrsj,
@@ -1173,7 +1193,8 @@
            ? this.others.battProdAnalysis[this.year0]
            : [params.name];
        this.$router.push({
          path: "/reportStatistics/taskplan",
          // TODO
          path: "/reportStatistics/taskplan?pageFlag="+Math.random(),
          query: {
            quality,
            dateRange: this.year0,
@@ -1187,7 +1208,8 @@
        let quality = params.name == "损坏" ? "0" : "1";
        let battProduct = [this.battProd];
        this.$router.push({
          path: "/reportStatistics/taskplan",
          // TODO
          path: "/reportStatistics/taskplan?pageFlag="+Math.random(),
          query: {
            quality,
            dateRange: this.year1,