ludc
2023-12-05 25ef4e85586c27433c865b69c67ccf5a380b93a7
Source/UBCS-WEB/src/views/statistic/statisticPage.vue
@@ -17,7 +17,7 @@
        border
        style="width: 100%"
        @selection-change="selectChange"
       >
      >
        <el-table-column
          type="selection"
          width="55">
@@ -47,10 +47,11 @@
  </span>
    </el-dialog>
    <!--    echarts组件-->
    <div>
    <div style="margin-top: 15px">
      <lineChart v-for="(item,index) in lineList" :key="index" :chartName="item.menuName"
                 :lineData="item.menuData"></lineChart>
      <!--      <pieChart :pieData="pieData" :chartName="chartName"></pieChart>-->
      <pieChart v-for="(item,index) in pieList" :key="index" :chartName="item.menuName"
                :pieData="item.menuData"></pieChart>
      <ColumnarChart v-for="(item,index) in columnarList" :key="index" :chartName="item.menuName"
                     :columnarData="item.menuData"></ColumnarChart>
      <mixCart v-for="(item,index) in mixList" :key="index" :chartName="item.menuName"
@@ -64,7 +65,7 @@
import pieChart from "../../components/StatisticsComponent/pieChart"
import ColumnarChart from "../../components/StatisticsComponent/ColumnarChart"
import mixCart from "../../components/StatisticsComponent/mixCart"
import {getStatisticAnalysis} from "@/api/statistic/chart"
export default {
  components: {
    lineChart,
@@ -93,7 +94,7 @@
        },
        {
          menuName: "测试sc",
          codeType: "2",
          codeType: null,
          menuData: [
            [220, 232, 301, 334, 290, 330, 410, 330, 212, 322, 200, 234],
            [120, 132, 101, 134, 90, 230, 210, 130, 10, 122, 100, 80],
@@ -101,7 +102,7 @@
        },
        {
          menuName: "产品型号",
          codeType: "0",
          codeType: null,
          menuData: [
            [220, 232, 301, 334, 290, 330, 410, 330, 212, 322, 200, 234],
            [120, 132, 101, 134, 90, 230, 210, 130, 10, 122, 100, 80],
@@ -178,6 +179,9 @@
    //新增
    addHandler() {
      this.addVisible = true;
      getStatisticAnalysis({btmNames:'part'}  ).then(res=>{
        console.log(res)
      })
    },
    //取消
    escHandler() {
@@ -185,7 +189,6 @@
    },
    //保存
    addSaveHandler() {
      debugger
      if (this.selectData.length <= 0) {
        this.$message.warning('请至少选择一条数据!');
        return;
@@ -225,6 +228,6 @@
}
</script>
<style scoped>
<style scoped lang="scss">
</style>