ludc
2023-12-11 c73d1e4b05ad210d87b696536a4afde36f10f725
Source/UBCS-WEB/src/views/statistic/statisticPage.vue
@@ -48,7 +48,7 @@
  </span>
    </el-dialog>
    <!--    echarts组件-->
    <div style="margin-top: 15px">
    <div style="margin-top: 15px;padding-bottom: 35px">
      <lineChart v-for="(item,index) in lineList" :key="index" :chartName="item.menuName"
                 :lineData="item.menuData"></lineChart>
      <pieChart v-for="(item,index) in pieList" :key="index" :chartName="item.menuName"
@@ -79,7 +79,7 @@
  name: "statisticPage",
  data() {
    return {
      menuList:[],
      menuList: [],
      dataKeyList: [],
      addVisible: false,
      chartName: "",
@@ -124,37 +124,12 @@
      this.dataKeyList = this.selectData.map(obj => obj.code)
      const btmName = this.dataKeyList.join(",");
      if (btmName) {
        this.menuList=[
          {
            menuData: [
              [0, 0, 0, 0, 0, 0, 4, 9, 12, 12, 12, 12],
              [0, 0, 0, 0, 0, 0, 4, 5, 3, 0, 0, 0]
            ],
            code:1
          },
          {
            menuData: [
              [0, 0, 0, 1, 1, 1, 1, 1, 1, 29, 5315, 5315],
              [0, 0, 0, 1, 0, 0, 0, 0, 0, 28, 5286, 0]
            ],
            code:2
          },
          {
            menuData: [
              [0, 58, 60, 61, 75, 84, 145, 162, 166, 177, 186, 186],
              [0, 58, 2, 1, 14, 9, 61, 17, 4, 11, 9, 0]
            ],
            code:3
          }
        ]
        this.nextSave();
        this.$message.success('保存成功')
        // getStatisticAnalysis({btmNames: btmName}).then(res => {
          // this.menuList = res.data.data;
          // this.nextSave();
          // this.$message.success('保存成功')
        // });
      }else {
        getStatisticAnalysis({btmNames: btmName}).then(res => {
          this.menuList = res.data.data;
          this.nextSave();
          this.$message.success('保存成功')
        });
      } else {
        this.$message.warning('请选择数据!')
      }
    },
@@ -173,6 +148,9 @@
        const dataKey = typeList[item.codeType];
        if (dataKey) {
          this[dataKey].push(item);
          this[dataKey].forEach(res=>{
            console.log('res',res)
          })
          hasValidData = true;
        }
      });