|  | @@ -104,73 +104,8 @@
 | 
	
		
			
				|  |  |        
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <div class="table">
 | 
	
		
			
				|  |  | -          <el-table
 | 
	
		
			
				|  |  | -            :key="tableObj.tableKey"
 | 
	
		
			
				|  |  | -            v-loading="tableObj.listLoading"
 | 
	
		
			
				|  |  | -            element-loading-text="给我一点时间"
 | 
	
		
			
				|  |  | -            :data="tableObj.list"
 | 
	
		
			
				|  |  | -            border
 | 
	
		
			
				|  |  | -            fit
 | 
	
		
			
				|  |  | -            highlight-current-row
 | 
	
		
			
				|  |  | -            style="width: 100%;"
 | 
	
		
			
				|  |  | -            :row-style="rowStyle"
 | 
	
		
			
				|  |  | -            :cell-style="cellStyle"
 | 
	
		
			
				|  |  | -            class="elTable table-fixed" 
 | 
	
		
			
				|  |  | -          >
 | 
	
		
			
				|  |  | -            <el-table-column type="selection" align="center" width="50" />
 | 
	
		
			
				|  |  | -            <el-table-column label="序号" align="center" type="index" width="50px">
 | 
	
		
			
				|  |  | -              <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                <span v-if="tableObj.pageNum">{{ scope.$index + (tableObj.pageNum-1) * tableObj.pageSize + 1 }}</span>
 | 
	
		
			
				|  |  | -                <span v-else>1</span>
 | 
	
		
			
				|  |  | -              </template>
 | 
	
		
			
				|  |  | -            </el-table-column>
 | 
	
		
			
				|  |  | -            <el-table-column label="分日日期/维度" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -              <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                <span>{{ scope.row.drivername }}</span>
 | 
	
		
			
				|  |  | -              </template>
 | 
	
		
			
				|  |  | -            </el-table-column>
 | 
	
		
			
				|  |  | -            <el-table-column label="混料数据" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -              <el-table-column label="理论重量" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -                <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                  <span>{{ scope.row.drivercode }}</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  | -              <el-table-column label="实际重量" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -                <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                  <span>{{ scope.row.drivercode }}</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  | -              <el-table-column label="误差值" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -                <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                  <span>{{ scope.row.drivercode }}</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  | -            </el-table-column>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            <el-table-column label="混料数据" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -              <el-table-column label="理论重量" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -                <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                  <span>{{ scope.row.drivercode }}</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  | -              <el-table-column label="实际重量" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -                <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                  <span>{{ scope.row.drivercode }}</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  | -              <el-table-column label="误差值" min-width="130px" align="center">
 | 
	
		
			
				|  |  | -                <template slot-scope="scope">
 | 
	
		
			
				|  |  | -                  <span>{{ scope.row.drivercode }}</span>
 | 
	
		
			
				|  |  | -                </template>
 | 
	
		
			
				|  |  | -              </el-table-column>
 | 
	
		
			
				|  |  | -            </el-table-column>
 | 
	
		
			
				|  |  | -           
 | 
	
		
			
				|  |  | -           
 | 
	
		
			
				|  |  | -           
 | 
	
		
			
				|  |  | -          </el-table>
 | 
	
		
			
				|  |  | -          <pagination v-show="tableObj.total>0" :total="tableObj.total" :page.sync="tableObj.getDataParameters.offset" :limit.sync="tableObj.getDataParameters.pagecount" @pagination="getList" />
 | 
	
		
			
				|  |  | -        </div>
 | 
	
		
			
				|  |  | +  
 | 
	
		
			
				|  |  | +        <ChartTable/>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          <div>
 | 
	
		
			
				|  |  |            <!-- <div style = "">
 | 
	
	
		
			
				|  | @@ -179,10 +114,15 @@
 | 
	
		
			
				|  |  |              </el-select>
 | 
	
		
			
				|  |  |            </div> -->
 | 
	
		
			
				|  |  |            
 | 
	
		
			
				|  |  | +        <BarChart v-if = "chartData.chartType == 'bar'"   :chart-data="chartData" />
 | 
	
		
			
				|  |  | +        <LineChart v-if = "chartData.chartType == 'line'"   :chart-data="chartData" />
 | 
	
		
			
				|  |  | +         <HorizontalBarChart v-if = "chartData.chartType == 'line'"   :chart-data="chartData" />
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -          <div id="chartLine" style="width:100%;height:385px;" >
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -          </div>
 | 
	
		
			
				|  |  | +          <!-- <div id="chartLine" style="width:100%;height:385px;" >
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +          </div> -->
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -218,7 +158,13 @@
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import echarts from 'echarts'
 | 
	
		
			
				|  |  | - import draggable from 'vuedraggable'
 | 
	
		
			
				|  |  | +import draggable from 'vuedraggable'
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +import ChartTable from '@/componentChart/ChartTable.vue'
 | 
	
		
			
				|  |  | +import LineChart from '@/componentChart/LineChart.vue'
 | 
	
		
			
				|  |  | +import BarChart from '@/componentChart/BarChart.vue'
 | 
	
		
			
				|  |  | +// import HorizontalBarChart from '@/componentChart/BarChart.vue'
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  require('echarts/theme/macarons')
 | 
	
		
			
				|  |  |  import { GetDataByName, PostDataByName, failproccess, ExecDataByConfig, checkButtons } from '@/api/common'
 | 
	
	
		
			
				|  | @@ -227,7 +173,7 @@ import Pagination from '@/components/Pagination'
 | 
	
		
			
				|  |  |  import { MessageBox } from 'element-ui'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'ChartPanel2',
 | 
	
		
			
				|  |  | -  components: { Pagination, draggable  },
 | 
	
		
			
				|  |  | +  components: { Pagination, draggable , ChartTable ,LineChart,BarChart },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        
 | 
	
	
		
			
				|  | @@ -593,21 +539,23 @@ export default {
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      chartLine:null,
 | 
	
		
			
				|  |  | -      chartLine_data:{
 | 
	
		
			
				|  |  | -        chartType:'line',
 | 
	
		
			
				|  |  | -        xAxisArr: ['2019-01', '2019-02', '2019-03', '2019-04', '2019-05', '2019-06', '2019-07', '2019-08', '2019-09', '2019-10', '2019-11', '2019-12'],
 | 
	
		
			
				|  |  | -        legendArr: ['数据1', '数据2', '数据3', '数据4', '线条1'],
 | 
	
		
			
				|  |  | -        dataArr:[
 | 
	
		
			
				|  |  | -          [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | -          [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | -          [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | -          [2, 10, 3, 2, 10, 4, 4, 9, 3, 9, 3, 8],
 | 
	
		
			
				|  |  | -          [2, 10, 3, 2, 10, 4, 4, 9, 3, 9, 3, 8]
 | 
	
		
			
				|  |  | -        ]
 | 
	
		
			
				|  |  | +      chartData:{
 | 
	
		
			
				|  |  | +         chartType:null,
 | 
	
		
			
				|  |  | +        // xAxisArr: ['2019-01', '2019-02', '2019-03', '2019-04', '2019-05', '2019-06', '2019-07', '2019-08', '2019-09', '2019-10', '2019-11', '2019-12'],
 | 
	
		
			
				|  |  | +        // legendArr: ['数据1', '数据2', '数据3', '数据4', '线条1'],
 | 
	
		
			
				|  |  | +        // dataArr:[
 | 
	
		
			
				|  |  | +        //   [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +        //   [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +        //   [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +        //   [2, 10, 3, 2, 10, 4, 4, 9, 3, 9, 3, 8],
 | 
	
		
			
				|  |  | +        //   [2, 10, 3, 2, 10, 4, 4, 9, 3, 9, 3, 8]
 | 
	
		
			
				|  |  | +        // ]
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        chartLine_data2:{
 | 
	
		
			
				|  |  |          chartType:'pie',
 | 
	
		
			
				|  |  |          xAxisArr: ['2019-01', '2019-02', '2019-03', '2019-04', '2019-05', '2019-06', '2019-07', '2019-08', '2019-09', '2019-10', '2019-11', '2019-12'],
 | 
	
	
		
			
				|  | @@ -1211,25 +1159,67 @@ export default {
 | 
	
		
			
				|  |  |        this.chartTypeList = chartTypeList
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      if(item.type == 'line'){
 | 
	
		
			
				|  |  | -        this.chartLine_data.chartType = 'line'
 | 
	
		
			
				|  |  | -        this.roadChartLine(this.chartLine_data)
 | 
	
		
			
				|  |  | +     if(item.type == 'line'){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        this.chartData = {
 | 
	
		
			
				|  |  | +          chartType:'line',
 | 
	
		
			
				|  |  | +          xAxisArr: ['2019-01', '2019-02', '2019-03', '2019-04', '2019-05', '2019-06', '2019-07', '2019-08', '2019-09', '2019-10', '2019-11', '2019-12'],
 | 
	
		
			
				|  |  | +          legendArr: ['数据1', '数据2', '数据3'],
 | 
	
		
			
				|  |  | +          dataArr:[
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +          ]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |        } else if(item.type == 'bar'){
 | 
	
		
			
				|  |  | -        this.chartLine_data.chartType = 'bar'
 | 
	
		
			
				|  |  | -        this.roadChartLine(this.chartLine_data)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        this.chartData = {
 | 
	
		
			
				|  |  | +          chartType:'bar',
 | 
	
		
			
				|  |  | +          xAxisArr: ['2019-01', '2019-02', '2019-03', '2019-04', '2019-05', '2019-06', '2019-07', '2019-08', '2019-09', '2019-10', '2019-11', '2019-12'],
 | 
	
		
			
				|  |  | +          legendArr: ['数据1', '数据2', '数据3'],
 | 
	
		
			
				|  |  | +          dataArr:[
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +      
 | 
	
		
			
				|  |  | +          ]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  |        } else if(item.type == 'horizontal_bar'){
 | 
	
		
			
				|  |  | -        this.chartLine_data.chartType = 'horizontal_bar'
 | 
	
		
			
				|  |  | -         this.roadChartLine(this.chartLine_data)
 | 
	
		
			
				|  |  | -      }  else if(item.type == 'pie'){
 | 
	
		
			
				|  |  | -        this.chartLine_data2.chartType = 'pie'
 | 
	
		
			
				|  |  | -         this.roadChartLine(this.chartLine_data2)
 | 
	
		
			
				|  |  | -      }   else if(item.type == 'line_bar'){
 | 
	
		
			
				|  |  | -        console.log(1111)
 | 
	
		
			
				|  |  | -         this.chartLine_data3.chartType = 'line_bar'
 | 
	
		
			
				|  |  | -         console.log(this.chartLine_data3)
 | 
	
		
			
				|  |  | -        this.roadChartLine(this.chartLine_data3)
 | 
	
		
			
				|  |  | +        this.chartData = {
 | 
	
		
			
				|  |  | +          chartType:'horizontal_bar',
 | 
	
		
			
				|  |  | +          xAxisArr: ['2019-01', '2019-02', '2019-03', '2019-04', '2019-05', '2019-06', '2019-07', '2019-08', '2019-09', '2019-10', '2019-11', '2019-12'],
 | 
	
		
			
				|  |  | +          legendArr: ['数据1', '数据2', '数据3'],
 | 
	
		
			
				|  |  | +          dataArr:[
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +            [1, 10, 7, 0, 1, 7, 7, 6, 4, 4, 1, 6],
 | 
	
		
			
				|  |  | +      
 | 
	
		
			
				|  |  | +          ]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      // if(item.type == 'line'){
 | 
	
		
			
				|  |  | +      //   this.chartLine_data.chartType = 'line'
 | 
	
		
			
				|  |  | +      //   this.roadChartLine(this.chartLine_data)
 | 
	
		
			
				|  |  | +      // } else if(item.type == 'bar'){
 | 
	
		
			
				|  |  | +      //   this.chartLine_data.chartType = 'bar'
 | 
	
		
			
				|  |  | +      //   this.roadChartLine(this.chartLine_data)
 | 
	
		
			
				|  |  | +      // } else if(item.type == 'horizontal_bar'){
 | 
	
		
			
				|  |  | +      //   this.chartLine_data.chartType = 'horizontal_bar'
 | 
	
		
			
				|  |  | +      //    this.roadChartLine(this.chartLine_data)
 | 
	
		
			
				|  |  | +      // }  else if(item.type == 'pie'){
 | 
	
		
			
				|  |  | +      //   this.chartLine_data2.chartType = 'pie'
 | 
	
		
			
				|  |  | +      //    this.roadChartLine(this.chartLine_data2)
 | 
	
		
			
				|  |  | +      // }   else if(item.type == 'line_bar'){
 | 
	
		
			
				|  |  | +      //   console.log(1111)
 | 
	
		
			
				|  |  | +      //    this.chartLine_data3.chartType = 'line_bar'
 | 
	
		
			
				|  |  | +      //    console.log(this.chartLine_data3)
 | 
	
		
			
				|  |  | +      //   this.roadChartLine(this.chartLine_data3)
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  | -      } 
 | 
	
		
			
				|  |  | +      // } 
 | 
	
		
			
				|  |  |        
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 |