| | |
| | | border |
| | | style="width: 100%" |
| | | @selection-change="selectChange" |
| | | > |
| | | > |
| | | <el-table-column |
| | | type="selection" |
| | | width="55"> |
| | |
| | | </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" |
| | |
| | | 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, |
| | |
| | | }, |
| | | { |
| | | 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], |
| | |
| | | }, |
| | | { |
| | | 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], |
| | |
| | | //新增 |
| | | addHandler() { |
| | | this.addVisible = true; |
| | | getStatisticAnalysis({btmNames:'part'} ).then(res=>{ |
| | | console.log(res) |
| | | }) |
| | | }, |
| | | //取消 |
| | | escHandler() { |
| | |
| | | }, |
| | | //保存 |
| | | addSaveHandler() { |
| | | debugger |
| | | if (this.selectData.length <= 0) { |
| | | this.$message.warning('请至少选择一条数据!'); |
| | | return; |
| | |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style scoped lang="scss"> |
| | | |
| | | </style> |