|  | @@ -1,205 +1,184 @@
 | 
	
		
			
				|  |  | -/* eslint-disable vue/valid-template-root */
 | 
	
		
			
				|  |  |  <template>
 | 
	
		
			
				|  |  |    <div class="app-container">
 | 
	
		
			
				|  |  |      <div class="filter-container">
 | 
	
		
			
				|  |  |        <div class="block">
 | 
	
		
			
				|  |  | -        <el-date-picker v-model="yearDate" :clearable="false" type="year" placeholder="选择年" />
 | 
	
		
			
				|  |  | +        <el-date-picker v-model="yearDate" :clearable="false" type="month" placeholder="选择年" />
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <el-row v-if="isBarChart1" style="position: relative;">
 | 
	
		
			
				|  |  | +    <el-row v-if="isChart1" style="position: relative;">
 | 
	
		
			
				|  |  |        <p style="position: absolute;top:-12px;left:40%;color:rgb(130, 165, 252);background:rgb(230, 243, 255);border:1px solid rgb(130, 165, 252);padding:10px;border-radius:10px">
 | 
	
		
			
				|  |  | -        {{ year }}年集团用电量:{{ total }}万度
 | 
	
		
			
				|  |  | +        {{ year }}年集团用电量:{{ total }}万千瓦
 | 
	
		
			
				|  |  |        </p>
 | 
	
		
			
				|  |  | +       <el-radio-group v-model="radio1" class="group" @change="changeGroup('1')">
 | 
	
		
			
				|  |  | +          <el-radio :label="1">集团</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="2">一中心</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="3">二中心</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="4">三中心</el-radio>
 | 
	
		
			
				|  |  | +        </el-radio-group>
 | 
	
		
			
				|  |  |        <el-col :span="24">
 | 
	
		
			
				|  |  | -        <div id="barChart1" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  | +        <div id="chart1" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  |      </el-row>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <!-- 年度维修成本 -->
 | 
	
		
			
				|  |  | -    <el-row>
 | 
	
		
			
				|  |  | +    <el-row style="position: relative;">
 | 
	
		
			
				|  |  | +       <el-radio-group v-model="radio2" class="group" @change="changeGroup('2')">
 | 
	
		
			
				|  |  | +          <el-radio :label="1">集团</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="2">一中心</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="3">二中心</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="4">三中心</el-radio>
 | 
	
		
			
				|  |  | +        </el-radio-group>
 | 
	
		
			
				|  |  | +      <el-col :span="24">
 | 
	
		
			
				|  |  | +        <div id="chart2" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  | +      </el-col>
 | 
	
		
			
				|  |  | +    </el-row>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <el-row style="position: relative;">
 | 
	
		
			
				|  |  | +       <el-radio-group v-model="radio3" class="group" @change="changeGroup('3')">
 | 
	
		
			
				|  |  | +          <el-radio :label="1">集团</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="2">一中心</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="3">二中心</el-radio>
 | 
	
		
			
				|  |  | +          <el-radio :label="4">三中心</el-radio>
 | 
	
		
			
				|  |  | +        </el-radio-group>
 | 
	
		
			
				|  |  | +      <el-col :span="24">
 | 
	
		
			
				|  |  | +        <div id="chart3" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  | +      </el-col>
 | 
	
		
			
				|  |  | +    </el-row>
 | 
	
		
			
				|  |  | +    <el-row style="position: relative;">
 | 
	
		
			
				|  |  |        <el-col :span="12">
 | 
	
		
			
				|  |  | -        <div id="lineChart1" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  | +        <div style="height: 50px;">
 | 
	
		
			
				|  |  | +          <el-select style="float: right;margin-right: 20px;" v-model="getChart4Parm.parammaps.pastureName" multiple :multiple-limit="5" collapse-tags placeholder="牧场" @change="changePasture('4')">
 | 
	
		
			
				|  |  | +            <el-option v-for="item in pastureList" :key="item.id" :label="item.name" :value="item.name"> </el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +        <div id="chart4" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  |        <el-col :span="12">
 | 
	
		
			
				|  |  | -        <div id="lineChart2" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  | +        <div style="height: 50px;">
 | 
	
		
			
				|  |  | +          <el-select style="float: right;margin-right: 20px;" v-model="getChart5Parm.parammaps.deptName" placeholder="部门" @change="changeDept('5')">
 | 
	
		
			
				|  |  | +            <el-option v-for="item in deptList" :key="item.id" :label="item.name" :value="item.name"> </el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +        <div id="chart5" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  |      </el-row>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    <el-row>
 | 
	
		
			
				|  |  | +    <el-row style="position: relative;">
 | 
	
		
			
				|  |  |        <el-col :span="12">
 | 
	
		
			
				|  |  | -        <div id="pieChart1" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  | +        <div style="height: 50px;" />
 | 
	
		
			
				|  |  | +        <div id="chart6" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  |        <el-col :span="12">
 | 
	
		
			
				|  |  | -        <div id="barChart2" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  | +        <div style="height: 50px;">
 | 
	
		
			
				|  |  | +          <el-select style="float: right;margin-right: 20px;" v-model="getChart7Parm.parammaps.pastureName" multiple :multiple-limit="5" collapse-tags placeholder="牧场" @change="changePasture('7')">
 | 
	
		
			
				|  |  | +            <el-option v-for="item in pastureList" :key="item.id" :label="item.name" :value="item.name"> </el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +        <div id="chart7" style="width: 100%;height:400px;" />
 | 
	
		
			
				|  |  |        </el-col>
 | 
	
		
			
				|  |  |      </el-row>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  |  import echarts from 'echarts'
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -require('echarts/theme/macarons') // echarts theme
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -// eslint-disable-next-line no-unused-vars
 | 
	
		
			
				|  |  | -import waves from '@/directive/waves' // waves directive
 | 
	
		
			
				|  |  | -import Pagination from '@/components/Pagination' // secondary package based on el-pagination
 | 
	
		
			
				|  |  | -import { GetDataByName, GetDataByNames, GetReportform, checkButtons } from '@/api/common'
 | 
	
		
			
				|  |  | -import { parseTime } from '@/utils/index.js'
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +import { GetDataByName,GetDataByNames, GetReportform, checkButtons } from '@/api/common'
 | 
	
		
			
				|  |  |  import Cookies from 'js-cookie'
 | 
	
		
			
				|  |  | +import { parseTime } from '@/utils/index.js'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: 'QueryElec',
 | 
	
		
			
				|  |  | -  directives: { waves },
 | 
	
		
			
				|  |  | -  components: { Pagination },
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        yearDate: new Date(),
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -      pasture: Cookies.get('pasturename'),
 | 
	
		
			
				|  |  |        year: new Date().getFullYear(),
 | 
	
		
			
				|  |  |        month: new Date().getMonth() < 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1,
 | 
	
		
			
				|  |  | -      deptment: '维修处',
 | 
	
		
			
				|  |  | +      pastureList:[],
 | 
	
		
			
				|  |  | +      deptList:[],
 | 
	
		
			
				|  |  |        total: '',
 | 
	
		
			
				|  |  | -      getBarChart1Parm: {
 | 
	
		
			
				|  |  | -        name: 'getpSumNowElec',
 | 
	
		
			
				|  |  | +      radio1:1,
 | 
	
		
			
				|  |  | +      isChart1: [],
 | 
	
		
			
				|  |  | +      chart_data1: {},
 | 
	
		
			
				|  |  | +      getChart1Parm: {
 | 
	
		
			
				|  |  | +        name: 'getpSumNowWater',
 | 
	
		
			
				|  |  |          parammaps: {
 | 
	
		
			
				|  |  |            receiveTime: new Date().getFullYear(),
 | 
	
		
			
				|  |  | -          center:'',
 | 
	
		
			
				|  |  |            pastureName: Cookies.get('pasturename')
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      getLineChart1Parm: {
 | 
	
		
			
				|  |  | -        name: 'getPastureSumMonthElec',
 | 
	
		
			
				|  |  | +      radio2:1,
 | 
	
		
			
				|  |  | +      isChart2: [],
 | 
	
		
			
				|  |  | +      chart_data2: {},
 | 
	
		
			
				|  |  | +      getChart2Parm: {
 | 
	
		
			
				|  |  | +        name: 'getpSumNowWater',
 | 
	
		
			
				|  |  |          parammaps: {
 | 
	
		
			
				|  |  |            receiveTime: new Date().getFullYear(),
 | 
	
		
			
				|  |  |            pastureName: Cookies.get('pasturename')
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      getLineChart2Parm: {
 | 
	
		
			
				|  |  | -        name: 'getPastureSumDayElec',
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      radio3:1,
 | 
	
		
			
				|  |  | +      isChart3: [],
 | 
	
		
			
				|  |  | +      chart_data3: {},
 | 
	
		
			
				|  |  | +      getChart3Parm: {
 | 
	
		
			
				|  |  | +        name: 'getpSumNowWater',
 | 
	
		
			
				|  |  |          parammaps: {
 | 
	
		
			
				|  |  | -          receiveTime: new Date().getFullYear() + '-' + (new Date().getMonth() <= 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1),
 | 
	
		
			
				|  |  | +          receiveTime: new Date().getFullYear(),
 | 
	
		
			
				|  |  |            pastureName: Cookies.get('pasturename')
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      getPieChart1Parm: {
 | 
	
		
			
				|  |  | -        name: 'getdeptSumMonthElec',
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      isChart4: [],
 | 
	
		
			
				|  |  | +      chart_data4: {},
 | 
	
		
			
				|  |  | +      getChart4Parm: {
 | 
	
		
			
				|  |  | +        name: 'getpSumNowWater',
 | 
	
		
			
				|  |  |          parammaps: {
 | 
	
		
			
				|  |  | -          receiveTime: new Date().getFullYear() + '-' + (new Date().getMonth() <= 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1),
 | 
	
		
			
				|  |  | +          receiveTime: new Date().getFullYear(),
 | 
	
		
			
				|  |  |            pastureName: Cookies.get('pasturename')
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      getBarChart2Parm: {
 | 
	
		
			
				|  |  | -        name: 'geteqclassSumMonthElec',
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +      isChart5: [],
 | 
	
		
			
				|  |  | +      chart_data5: {},
 | 
	
		
			
				|  |  | +      getChart5Parm: {
 | 
	
		
			
				|  |  | +        name: 'getpSumNowWater',
 | 
	
		
			
				|  |  |          parammaps: {
 | 
	
		
			
				|  |  | -          receiveTime: new Date().getFullYear() + '-' + (new Date().getMonth() <= 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1),
 | 
	
		
			
				|  |  | +          receiveTime: new Date().getFullYear(),
 | 
	
		
			
				|  |  |            pastureName: Cookies.get('pasturename'),
 | 
	
		
			
				|  |  | -          deptName: ''
 | 
	
		
			
				|  |  | +          deptName:''
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      barChart1: null,
 | 
	
		
			
				|  |  | -      lineChart1: null,
 | 
	
		
			
				|  |  | -      lineChart2: null,
 | 
	
		
			
				|  |  | -      pieChart1: null,
 | 
	
		
			
				|  |  | -      barChart2: null,
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      chart_data1: {
 | 
	
		
			
				|  |  | -        // pasture: ['宝鸡', '恒盛', '塞一', '塞二', '塞三', '塞四', '塞五', '通山', '合肥', '和林'],
 | 
	
		
			
				|  |  | -        // nowYear: [123, 332, 222, 333, 444, 333, 222, 334, 234, 223],
 | 
	
		
			
				|  |  | -        // lastYear: [22, 44, 77, 88, 444, 234, 342, 234, 234, 66]
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      chart_data2: {
 | 
	
		
			
				|  |  | -        // months: ['2019-01', '2019-02', '2019-01', '2019-01', '2019-01', '2019-01', '2019-01', '2019-01', '2019-01', '2019-01'],
 | 
	
		
			
				|  |  | -        // nowYear: [123, 332, 222, 333, 444, 333, 222, 334, 234, 223],
 | 
	
		
			
				|  |  | -        // lastYear: [22, 44, 77, 88, 444, 234, 342, 234, 234, 66]
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      chart_data3: {
 | 
	
		
			
				|  |  | -        // day: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'],
 | 
	
		
			
				|  |  | -        // nowYear: [123, 332, 222, 333, 444, 333, 222, 334, 234, 223],
 | 
	
		
			
				|  |  | -        // lastYear: [22, 44, 77, 88, 444, 234, 342, 234, 234, 66]
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      chart_data4: {
 | 
	
		
			
				|  |  | -        // name: ['饲养处', '其他部门', '设备处', '能源处', '牧场办公室'],
 | 
	
		
			
				|  |  | -        // psum: [
 | 
	
		
			
				|  |  | -        //   { value: 335, name: '饲养处' },
 | 
	
		
			
				|  |  | -        //   { value: 310, name: '其他部门' },
 | 
	
		
			
				|  |  | -        //   { value: 234, name: '设备处' },
 | 
	
		
			
				|  |  | -        //   { value: 135, name: '能源处' },
 | 
	
		
			
				|  |  | -        //   { value: 1548, name: '牧场办公室' }
 | 
	
		
			
				|  |  | -        // ]
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      chart_data5: {
 | 
	
		
			
				|  |  | -        // typeName: ['小型装载机', '叉车', '拖拉机', '抛料机', '搅拌机'],
 | 
	
		
			
				|  |  | -        // eqCost: [123, 332, 222, 333, 444],
 | 
	
		
			
				|  |  | -        // lastYear: [22, 342, 234, 234, 66]
 | 
	
		
			
				|  |  | +      isChart6: [],
 | 
	
		
			
				|  |  | +      chart_data6: {},
 | 
	
		
			
				|  |  | +      getChart6Parm: {
 | 
	
		
			
				|  |  | +        name: 'getpSumNowWater',
 | 
	
		
			
				|  |  | +        parammaps: {
 | 
	
		
			
				|  |  | +          receiveTime: new Date().getFullYear(),
 | 
	
		
			
				|  |  | +          pastureName: Cookies.get('pasturename')
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -      tableKey: 0,
 | 
	
		
			
				|  |  | -      list: null,
 | 
	
		
			
				|  |  | -      total: 0,
 | 
	
		
			
				|  |  | -      listLoading: true,
 | 
	
		
			
				|  |  | -      rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
 | 
	
		
			
				|  |  | -      cellStyle: { padding: 0 + 'px' },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -      dialogFormVisibleCard: false,
 | 
	
		
			
				|  |  | -      listLoadingSee: true,
 | 
	
		
			
				|  |  | -      rowSeeData: {},
 | 
	
		
			
				|  |  | -      listSee: [],
 | 
	
		
			
				|  |  | -      totalSee: 0,
 | 
	
		
			
				|  |  | -      getdataListParmSee: {
 | 
	
		
			
				|  |  | -        name: 'geteqclassSumDay',
 | 
	
		
			
				|  |  | -        page: 1,
 | 
	
		
			
				|  |  | -        offset: 1,
 | 
	
		
			
				|  |  | -        pagecount: 10,
 | 
	
		
			
				|  |  | -        returntype: 'Map',
 | 
	
		
			
				|  |  | +      isChart7: [],
 | 
	
		
			
				|  |  | +      chart_data7: {},
 | 
	
		
			
				|  |  | +      getChart7Parm: {
 | 
	
		
			
				|  |  | +        name: 'getpSumNowWater',
 | 
	
		
			
				|  |  |          parammaps: {
 | 
	
		
			
				|  |  | -          receiveTime: new Date().getFullYear() + '-' + (new Date().getMonth() <= 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1),
 | 
	
		
			
				|  |  | -          pastureName: Cookies.get('pasturename'),
 | 
	
		
			
				|  |  | -          deptName: '',
 | 
	
		
			
				|  |  | -          typeName: '',
 | 
	
		
			
				|  |  | -          assetCode: '',
 | 
	
		
			
				|  |  | -          eqName: '',
 | 
	
		
			
				|  |  | -          startTime: '',
 | 
	
		
			
				|  |  | -          stopTime: '',
 | 
	
		
			
				|  |  | -          pastureId: Cookies.get('pastureid')
 | 
	
		
			
				|  |  | +          receiveTime: new Date().getFullYear(),
 | 
	
		
			
				|  |  | +          pastureName: Cookies.get('pasturename')
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      buttons: [],
 | 
	
		
			
				|  |  | -      isBarChart1: []
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -  },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -  watch: {
 | 
	
		
			
				|  |  | -    'yearDate': {
 | 
	
		
			
				|  |  | -      deep: true,
 | 
	
		
			
				|  |  | -      handler: function(newVal, oldVal) {
 | 
	
		
			
				|  |  | -        var time = this.yearDate
 | 
	
		
			
				|  |  | -        console.log(newVal.getFullYear())
 | 
	
		
			
				|  |  | -        this.year = time.getFullYear()
 | 
	
		
			
				|  |  | -        this.getBarChart1Parm.parammaps.receiveTime = time.getFullYear()
 | 
	
		
			
				|  |  | -        this.getLineChart1Parm.parammaps.receiveTime = time.getFullYear()
 | 
	
		
			
				|  |  | -        this.getLineChart2Parm.parammaps.receiveTime = time.getFullYear() + '-' + (new Date().getMonth() <= 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1)
 | 
	
		
			
				|  |  | -        this.getPieChart1Parm.parammaps.receiveTime = time.getFullYear() + '-' + (new Date().getMonth() <= 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1)
 | 
	
		
			
				|  |  | -        this.getBarChart2Parm.parammaps.receiveTime = time.getFullYear() + '-' + (new Date().getMonth() <= 9 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        this.getBarChart1()
 | 
	
		
			
				|  |  | -        this.getLineChart1()
 | 
	
		
			
				|  |  | -        this.getLineChart2()
 | 
	
		
			
				|  |  | -        this.getPieChart1()
 | 
	
		
			
				|  |  | -      }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  | -    this.getBarChart1()
 | 
	
		
			
				|  |  | -    this.getLineChart1()
 | 
	
		
			
				|  |  | -    this.getLineChart2()
 | 
	
		
			
				|  |  | -    this.getPieChart1()
 | 
	
		
			
				|  |  | +    this.get_select_list()
 | 
	
		
			
				|  |  | +    this.getChart1()
 | 
	
		
			
				|  |  | +    this.getChart2()
 | 
	
		
			
				|  |  | +    this.getChart3()
 | 
	
		
			
				|  |  | +    this.getChart4()
 | 
	
		
			
				|  |  | +    this.getChart5()
 | 
	
		
			
				|  |  | +    this.getChart6()
 | 
	
		
			
				|  |  | +    this.getChart7()
 | 
	
		
			
				|  |  |      const that = this
 | 
	
		
			
				|  |  |      GetDataByName({ 'name': 'getUserPCButtons', 'parammaps': { 'jwt_username': Cookies.get('name') }}).then(response => {
 | 
	
		
			
				|  |  |        that.buttons = response.data.list
 | 
	
	
		
			
				|  | @@ -207,306 +186,479 @@ export default {
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    mounted() {
 | 
	
		
			
				|  |  | -    // this.roadBarChart1(this.chart_data1)
 | 
	
		
			
				|  |  | -    // this.roadlineChart1(this.chart_data2, this.pasture, this.year)
 | 
	
		
			
				|  |  | -    // this.roadlineChart2(this.chart_data3, this.pasture, this.month)
 | 
	
		
			
				|  |  | -    //  this.roadpieChart1(this.chart_data4, this.month)
 | 
	
		
			
				|  |  | -    // this.roadBarChart2(this.chart_data5, this.deptment)
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | +    get_select_list() {
 | 
	
		
			
				|  |  | +      var send_data =  [
 | 
	
		
			
				|  |  | +        { name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
 | 
	
		
			
				|  |  | +      ]
 | 
	
		
			
				|  |  | +      GetDataByNames(send_data).then(response => {
 | 
	
		
			
				|  |  | +        this.pastureList = response.data.findAllPasture.list
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    changeGroup(item){
 | 
	
		
			
				|  |  | +      if(item == 1){
 | 
	
		
			
				|  |  | +        this.getChart1()
 | 
	
		
			
				|  |  | +      }else if(item == 2){
 | 
	
		
			
				|  |  | +        this.getChart2()
 | 
	
		
			
				|  |  | +      }else if(item == 3){
 | 
	
		
			
				|  |  | +        this.getChart3()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    changePasture(item){
 | 
	
		
			
				|  |  | +      if(item == 4){
 | 
	
		
			
				|  |  | +        this.getChart4()
 | 
	
		
			
				|  |  | +      }else if(item == 7){
 | 
	
		
			
				|  |  | +        this.getChart7()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    changeDept(item){
 | 
	
		
			
				|  |  | +      if(item == 5){
 | 
	
		
			
				|  |  | +        this.getChart5()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      get_auto_buttons() {
 | 
	
		
			
				|  |  |        // 图1
 | 
	
		
			
				|  |  | -      const BarChart1 = 'report:queryElec:pastures'
 | 
	
		
			
				|  |  | -      const isBarChart1 = checkButtons(this.$store.state.user.buttons, BarChart1)
 | 
	
		
			
				|  |  | -      this.isBarChart1 = isBarChart1
 | 
	
		
			
				|  |  | +      const chart1 = 'report:queryWater:pastures'
 | 
	
		
			
				|  |  | +      const isChart1 = checkButtons(this.$store.state.user.buttons, chart1)
 | 
	
		
			
				|  |  | +      this.isChart1 = isChart1
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    // 各牧场年度维修成本对比
 | 
	
		
			
				|  |  | -    getBarChart1() {
 | 
	
		
			
				|  |  | -      GetReportform(this.getBarChart1Parm).then(response => {
 | 
	
		
			
				|  |  | +    // 各牧场年度用水量对比
 | 
	
		
			
				|  |  | +    getChart1() {
 | 
	
		
			
				|  |  | +      GetReportform(this.getChart1Parm).then(response => {
 | 
	
		
			
				|  |  |          console.log('图1', response)
 | 
	
		
			
				|  |  | -        this.chart_data1 = response.data.chart_data
 | 
	
		
			
				|  |  | -        this.roadBarChart1(this.chart_data1)
 | 
	
		
			
				|  |  | +        // this.chart_data1 = response.data.chart_data
 | 
	
		
			
				|  |  | +        this.chart_data1 = {
 | 
	
		
			
				|  |  | +          data1:[10,20,30,40,50],
 | 
	
		
			
				|  |  | +          data2:[20,30,40,50,60],
 | 
	
		
			
				|  |  | +          xdata:["马鞍山牧场", "汶上牧场", "商河牧场", "合肥牧场", "蚌埠牧场"]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.roadChart1(this.chart_data1)
 | 
	
		
			
				|  |  |          var nowYear = response.data.chart_data.nowYear
 | 
	
		
			
				|  |  |          var total = 0
 | 
	
		
			
				|  |  |          if (nowYear !== null || nowYear !== undefined) {
 | 
	
		
			
				|  |  |            nowYear.forEach(function(item, index) {
 | 
	
		
			
				|  |  | -            console.log(parseFloat(item))
 | 
	
		
			
				|  |  |              total = total + parseFloat(item)
 | 
	
		
			
				|  |  |            })
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        this.total = total.toFixed(4)
 | 
	
		
			
				|  |  | +        this.total = total.toFixed(2)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getLineChart1() {
 | 
	
		
			
				|  |  | -      GetReportform(this.getLineChart1Parm).then(response => {
 | 
	
		
			
				|  |  | +    // 单头牛水量
 | 
	
		
			
				|  |  | +    getChart2() {
 | 
	
		
			
				|  |  | +      GetReportform(this.getChart2Parm).then(response => {
 | 
	
		
			
				|  |  |          console.log('图2', response)
 | 
	
		
			
				|  |  | -        this.chart_data2 = response.data.chart_data
 | 
	
		
			
				|  |  | -        this.roadlineChart1(this.chart_data2, this.pasture, this.year)
 | 
	
		
			
				|  |  | +        // this.chart_data2 = response.data.chart_data
 | 
	
		
			
				|  |  | +        this.chart_data2 = {
 | 
	
		
			
				|  |  | +          data1:[10,20,30,40,50],
 | 
	
		
			
				|  |  | +          data2:[20,30,40,50,60],
 | 
	
		
			
				|  |  | +          xdata:["马鞍山牧场", "汶上牧场", "商河牧场", "合肥牧场", "蚌埠牧场"]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.roadChart2(this.chart_data2)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getLineChart2() {
 | 
	
		
			
				|  |  | -      GetReportform(this.getLineChart2Parm).then(response => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // 单头牛水费
 | 
	
		
			
				|  |  | +    getChart3() {
 | 
	
		
			
				|  |  | +      GetReportform(this.getChart3Parm).then(response => {
 | 
	
		
			
				|  |  |          console.log('图3', response)
 | 
	
		
			
				|  |  | -        this.chart_data3 = response.data.chart_data
 | 
	
		
			
				|  |  | -        this.roadlineChart2(this.chart_data3, this.pasture, this.month)
 | 
	
		
			
				|  |  | +        // this.chart_data3 = response.data.chart_data
 | 
	
		
			
				|  |  | +        this.chart_data3 = {
 | 
	
		
			
				|  |  | +          data1:[10,20,30,40,50],
 | 
	
		
			
				|  |  | +          data2:[20,30,40,50,60],
 | 
	
		
			
				|  |  | +          data3:[30,40,50,60,70],
 | 
	
		
			
				|  |  | +          xdata:["马鞍山牧场", "汶上牧场", "商河牧场", "合肥牧场", "蚌埠牧场"]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.roadChart3(this.chart_data3)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getPieChart1() {
 | 
	
		
			
				|  |  | -      GetDataByName(this.getPieChart1Parm).then(response => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // XX牧场XX年每月单头牛用水量对比
 | 
	
		
			
				|  |  | +    getChart4() {
 | 
	
		
			
				|  |  | +      GetReportform(this.getChart4Parm).then(response => {
 | 
	
		
			
				|  |  |          console.log('图4', response)
 | 
	
		
			
				|  |  | -        if (response.data === null || response.data.list === null) {
 | 
	
		
			
				|  |  | -          this.chart_data4 = { name: [], psum: [] }
 | 
	
		
			
				|  |  | -          this.roadpieChart1(this.chart_data4, this.month)
 | 
	
		
			
				|  |  | -        } else {
 | 
	
		
			
				|  |  | -          this.chart_data4.psum = response.data.list
 | 
	
		
			
				|  |  | -          var name = []
 | 
	
		
			
				|  |  | -          console.log(response.data.list)
 | 
	
		
			
				|  |  | -          response.data.list.forEach(function(i) {
 | 
	
		
			
				|  |  | -            name.push(i.name)
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -          console.log(this.chart_data4)
 | 
	
		
			
				|  |  | -          this.chart_data4.name = name
 | 
	
		
			
				|  |  | -          this.roadpieChart1(this.chart_data4, this.month)
 | 
	
		
			
				|  |  | -          this.deptment = name[0]
 | 
	
		
			
				|  |  | -          this.getdataListParmSee.parammaps.deptName = name[0]
 | 
	
		
			
				|  |  | -          this.getBarChart2Parm.parammaps.deptName = name[0]
 | 
	
		
			
				|  |  | -          this.getBarChart2()
 | 
	
		
			
				|  |  | +        // this.chart_data4 = response.data.chart_data
 | 
	
		
			
				|  |  | +        this.chart_data4 = {
 | 
	
		
			
				|  |  | +          data1:[
 | 
	
		
			
				|  |  | +            {data:[10,20,30,40,50]},
 | 
	
		
			
				|  |  | +            {data:[20,30,40,50,60]},
 | 
	
		
			
				|  |  | +            {data:[30,40,50,60,70]},
 | 
	
		
			
				|  |  | +          ],
 | 
	
		
			
				|  |  | +          data_name:["马鞍山牧场", "汶上牧场", "商河牧场"],
 | 
	
		
			
				|  |  | +          xdata:["2023-01", "2023-02", "2023-03", "2023-04", "2023-05"]
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        this.roadChart4(this.chart_data4)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    getBarChart2() {
 | 
	
		
			
				|  |  | -      GetReportform(this.getBarChart2Parm).then(response => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // XX月部门统计
 | 
	
		
			
				|  |  | +    getChart5() {
 | 
	
		
			
				|  |  | +      GetReportform(this.getChart5Parm).then(response => {
 | 
	
		
			
				|  |  |          console.log('图5', response)
 | 
	
		
			
				|  |  | -        this.chart_data5 = response.data.chart_data
 | 
	
		
			
				|  |  | -        this.roadBarChart2(this.chart_data5, this.deptment)
 | 
	
		
			
				|  |  | +        // this.chart_data5 = response.data.chart_data
 | 
	
		
			
				|  |  | +        this.chart_data5 = {
 | 
	
		
			
				|  |  | +          data1:[10,20,30,40,50],
 | 
	
		
			
				|  |  | +          data2:[20,30,40,50,60],
 | 
	
		
			
				|  |  | +          xdata:["马鞍山牧场挤奶处", "和林牧场挤奶处", "蚌埠牧场挤奶处", "塞一牧场挤奶处", "塞二牧场挤奶处"]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.roadChart5(this.chart_data5)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    // 各牧场年度维修成本对比
 | 
	
		
			
				|  |  | -    roadBarChart1(chart_data1) {
 | 
	
		
			
				|  |  | -      if (this.barChart1 != null) {
 | 
	
		
			
				|  |  | -        this.barChart1.dispose()
 | 
	
		
			
				|  |  | +    // XX牧场XX年每月用水量对比
 | 
	
		
			
				|  |  | +    getChart6() {
 | 
	
		
			
				|  |  | +      GetReportform(this.getChart6Parm).then(response => {
 | 
	
		
			
				|  |  | +        console.log('图6', response)
 | 
	
		
			
				|  |  | +        // this.chart_data6 = response.data.chart_data
 | 
	
		
			
				|  |  | +        this.chart_data6 = {
 | 
	
		
			
				|  |  | +          data1:[10,20,30,40,50],
 | 
	
		
			
				|  |  | +          data2:[20,30,40,50,60],
 | 
	
		
			
				|  |  | +          data3:[30,40,50,60,70],
 | 
	
		
			
				|  |  | +          xdata:["2023-01", "2023-02", "2023-03", "2023-04", "2023-05"]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.roadChart6(this.chart_data6)
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    // XX月每日用水量
 | 
	
		
			
				|  |  | +    getChart7() {
 | 
	
		
			
				|  |  | +      GetReportform(this.getChart7Parm).then(response => {
 | 
	
		
			
				|  |  | +        console.log('图7', response)
 | 
	
		
			
				|  |  | +        // this.chart_data7 = response.data.chart_data
 | 
	
		
			
				|  |  | +        this.chart_data7 = {
 | 
	
		
			
				|  |  | +          data1:[
 | 
	
		
			
				|  |  | +            {data:[10,20,30,40,50]},
 | 
	
		
			
				|  |  | +            {data:[20,30,40,50,60]},
 | 
	
		
			
				|  |  | +            {data:[30,40,50,60,70]},
 | 
	
		
			
				|  |  | +          ],
 | 
	
		
			
				|  |  | +          data_name:["马鞍山牧场", "汶上牧场", "商河牧场"],
 | 
	
		
			
				|  |  | +          xdata:["2023-01", "2023-02", "2023-03", "2023-04", "2023-05"]
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        this.roadChart7(this.chart_data7)
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    // 各牧场年度用水量对比
 | 
	
		
			
				|  |  | +    roadChart1(chart_data) {
 | 
	
		
			
				|  |  | +      if (this.chart1 != null) {
 | 
	
		
			
				|  |  | +        this.chart1.dispose()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.barChart1 = echarts.init(document.getElementById('barChart1'))
 | 
	
		
			
				|  |  | +      this.chart1 = echarts.init(document.getElementById('chart1'))
 | 
	
		
			
				|  |  |        var option = {
 | 
	
		
			
				|  |  |          title: { text: '各牧场年度用电量对比', textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  |          tooltip: { trigger: 'axis' },
 | 
	
		
			
				|  |  |          legend: {
 | 
	
		
			
				|  |  | -          data: ['今年用量', '去年同期'],
 | 
	
		
			
				|  |  | +          data: ['今年用量', '迄今预算'],
 | 
	
		
			
				|  |  |            right: 40
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        color: ['#2dc0e8', '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | -        grid: { left: '3%', right: '4%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | -        xAxis: [{ type: 'category', data: chart_data1.pasture, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | -        yAxis: [{ type: 'value', name: '电量(度)', axisLabel: { formatter: '{value}万' }}],
 | 
	
		
			
				|  |  | +        color: ['#2dc0e8', '#769cfc'],
 | 
	
		
			
				|  |  | +        grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | +        xAxis: [{ type: 'category',  name: '牧场',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | +        yAxis: [{ type: 'value', name: '电量(千瓦)', axisLabel: { formatter: '{value}万' }}],
 | 
	
		
			
				|  |  |          series: [
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              name: '今年用量',
 | 
	
		
			
				|  |  |              type: 'bar',
 | 
	
		
			
				|  |  | -            data: chart_data1.nowYear,
 | 
	
		
			
				|  |  | +            data: chart_data.data1,
 | 
	
		
			
				|  |  | +            barMaxWidth:20,
 | 
	
		
			
				|  |  |              emphasis: { label: { show: true, position: 'inside' }}
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            name: '去年同期',
 | 
	
		
			
				|  |  | +            name: '迄今预算',
 | 
	
		
			
				|  |  |              type: 'bar',
 | 
	
		
			
				|  |  | -            data: chart_data1.lastYear,
 | 
	
		
			
				|  |  | +            barMaxWidth:20,
 | 
	
		
			
				|  |  | +            data: chart_data.data2,
 | 
	
		
			
				|  |  |              emphasis: { label: { show: true, position: 'inside' }}
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.barChart1.setOption(option)
 | 
	
		
			
				|  |  | +      this.chart1.setOption(option)
 | 
	
		
			
				|  |  |        window.onresize = function() {
 | 
	
		
			
				|  |  | -        this.barChart1.resize()
 | 
	
		
			
				|  |  | +        this.chart1.resize()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        var that = this
 | 
	
		
			
				|  |  | -      this.barChart1.on('click', function(param, i) {
 | 
	
		
			
				|  |  | +      this.chart1.on('click', function(param, i) {
 | 
	
		
			
				|  |  |          console.log(param)
 | 
	
		
			
				|  |  | -        that.pasture = param.name
 | 
	
		
			
				|  |  | -        that.getLineChart1Parm.parammaps.pastureName = param.name
 | 
	
		
			
				|  |  | -        that.getLineChart2Parm.parammaps.pastureName = param.name
 | 
	
		
			
				|  |  | -        that.getPieChart1Parm.parammaps.pastureName = param.name
 | 
	
		
			
				|  |  | -        that.getBarChart2Parm.parammaps.pastureName = param.name
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        that.getLineChart1()
 | 
	
		
			
				|  |  | -        that.getLineChart2()
 | 
	
		
			
				|  |  | -        that.getPieChart1()
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    // 每月维修成本对比
 | 
	
		
			
				|  |  | -    roadlineChart1(chart_data2, pasture, year) {
 | 
	
		
			
				|  |  | -      if (this.lineChart1 != null) {
 | 
	
		
			
				|  |  | -        this.lineChart1.dispose()
 | 
	
		
			
				|  |  | +    // 单头牛水量
 | 
	
		
			
				|  |  | +    roadChart2(chart_data) {
 | 
	
		
			
				|  |  | +      if (this.chart2 != null) {
 | 
	
		
			
				|  |  | +        this.chart2.dispose()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.lineChart1 = echarts.init(document.getElementById('lineChart1'))
 | 
	
		
			
				|  |  | +      this.chart2 = echarts.init(document.getElementById('chart2'))
 | 
	
		
			
				|  |  |        var option = {
 | 
	
		
			
				|  |  | -        title: { text: pasture + year + '每月用电量对比', textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  | +        title: { text: '单头牛电量', left:'center',textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  |          tooltip: { trigger: 'axis' },
 | 
	
		
			
				|  |  |          legend: {
 | 
	
		
			
				|  |  | -          data: ['今年用量', '去年同期用量'],
 | 
	
		
			
				|  |  | -          x: 'right'
 | 
	
		
			
				|  |  | +          data: ['实际费用', '去年同期'],
 | 
	
		
			
				|  |  | +          right: 40
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        color: [ '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | -        grid: { left: '3%', right: '5%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | -        xAxis: [{ type: 'category', data: chart_data2.months, name: '月份', axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | -        yAxis: [{ type: 'value', name: '电量(度)', axisLabel: { formatter: '{value}万' }}],
 | 
	
		
			
				|  |  | +        color: ['#2dc0e8', '#769cfc'],
 | 
	
		
			
				|  |  | +        grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | +        xAxis: [{ type: 'category',  name: '牧场',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | +        yAxis: [{ type: 'value', name: '价格(元)'}],
 | 
	
		
			
				|  |  |          series: [
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            name: '今年用量',
 | 
	
		
			
				|  |  | -            type: 'line',
 | 
	
		
			
				|  |  | -            data: chart_data2.nowYear,
 | 
	
		
			
				|  |  | -            emphasis: { label: { show: true, position: 'inside' }}
 | 
	
		
			
				|  |  | +            name: '实际费用',
 | 
	
		
			
				|  |  | +            type: 'bar',
 | 
	
		
			
				|  |  | +            data: chart_data.data1,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20,
 | 
	
		
			
				|  |  | +            markLine:{ data:[ {yAxis:20} ] }
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            name: '去年同期用量',
 | 
	
		
			
				|  |  | -            type: 'line',
 | 
	
		
			
				|  |  | -            data: chart_data2.lastYear,
 | 
	
		
			
				|  |  | -            emphasis: { label: { show: true, position: 'inside' }}
 | 
	
		
			
				|  |  | +            name: '去年同期',
 | 
	
		
			
				|  |  | +            type: 'bar',
 | 
	
		
			
				|  |  | +            data: chart_data.data2,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.lineChart1.setOption(option)
 | 
	
		
			
				|  |  | +      this.chart2.setOption(option)
 | 
	
		
			
				|  |  |        window.onresize = function() {
 | 
	
		
			
				|  |  | -        this.lineChart1.resize()
 | 
	
		
			
				|  |  | +        this.chart2.resize()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        var that = this
 | 
	
		
			
				|  |  | -      this.lineChart1.on('click', function(param, i) {
 | 
	
		
			
				|  |  | +      this.chart2.on('click', function(param, i) {
 | 
	
		
			
				|  |  |          console.log(param)
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        that.getLineChart2Parm.parammaps.receiveTime = param.name
 | 
	
		
			
				|  |  | -        that.getPieChart1Parm.parammaps.receiveTime = param.name
 | 
	
		
			
				|  |  | -        that.getBarChart2Parm.parammaps.receiveTime = param.name
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        var num = param.name.substring(5)
 | 
	
		
			
				|  |  | -        console.log(num)
 | 
	
		
			
				|  |  | -        that.month = num
 | 
	
		
			
				|  |  | -        that.getLineChart2()
 | 
	
		
			
				|  |  | -        that.getPieChart1()
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -    // 每月维修成本对比
 | 
	
		
			
				|  |  | -    roadlineChart2(chart_data3, pasture, month) {
 | 
	
		
			
				|  |  | -      if (this.lineChart2 != null) {
 | 
	
		
			
				|  |  | -        this.lineChart2.dispose()
 | 
	
		
			
				|  |  | +    // 单头牛水费
 | 
	
		
			
				|  |  | +    roadChart3(chart_data) {
 | 
	
		
			
				|  |  | +      if (this.chart3 != null) {
 | 
	
		
			
				|  |  | +        this.chart3.dispose()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.lineChart2 = echarts.init(document.getElementById('lineChart2'))
 | 
	
		
			
				|  |  | +      this.chart3 = echarts.init(document.getElementById('chart3'))
 | 
	
		
			
				|  |  |        var option = {
 | 
	
		
			
				|  |  | -        title: { text: pasture + month + '月每日用电量对比', textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  | +        title: { text: '单头牛电费', left:'center',textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  |          tooltip: { trigger: 'axis' },
 | 
	
		
			
				|  |  |          legend: {
 | 
	
		
			
				|  |  | -          data: ['今年日用量', '去年同期'],
 | 
	
		
			
				|  |  | -          x: 'right'
 | 
	
		
			
				|  |  | +          data: ['实际费用', '预算','去年同期'],
 | 
	
		
			
				|  |  | +          right: 40
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        color: [ '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | -        grid: { left: '3%', right: '5%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | -        xAxis: [{ type: 'category', data: chart_data3.day, name: '日期', axisLabel: { interval: 0 }}],
 | 
	
		
			
				|  |  | -        yAxis: [{ type: 'value', name: '电量(度)', axisLabel: { formatter: '{value}' }}],
 | 
	
		
			
				|  |  | +        color: ['#2dc0e8', '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | +        grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | +        xAxis: [{ type: 'category',  name: '牧场',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | +        yAxis: [{ type: 'value', name: '价格(元)'}],
 | 
	
		
			
				|  |  |          series: [
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            name: '今年日用量',
 | 
	
		
			
				|  |  | -            type: 'line',
 | 
	
		
			
				|  |  | -            data: chart_data3.nowYear,
 | 
	
		
			
				|  |  | -            emphasis: { label: { show: true, position: 'inside' }}
 | 
	
		
			
				|  |  | +            name: '实际费用',
 | 
	
		
			
				|  |  | +            type: 'bar',
 | 
	
		
			
				|  |  | +            data: chart_data.data1,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20,
 | 
	
		
			
				|  |  | +            markLine:{ data:[ {yAxis:20} ] }
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            name: '预算',
 | 
	
		
			
				|  |  | +            type: 'bar',
 | 
	
		
			
				|  |  | +            data: chart_data.data2,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  |              name: '去年同期',
 | 
	
		
			
				|  |  | -            type: 'line',
 | 
	
		
			
				|  |  | -            data: chart_data3.lastYear,
 | 
	
		
			
				|  |  | -            emphasis: { label: { show: true, position: 'inside' }}
 | 
	
		
			
				|  |  | +            type: 'bar',
 | 
	
		
			
				|  |  | +            data: chart_data.data3,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.lineChart2.setOption(option)
 | 
	
		
			
				|  |  | +      this.chart3.setOption(option)
 | 
	
		
			
				|  |  |        window.onresize = function() {
 | 
	
		
			
				|  |  | -        this.lineChart2.resize()
 | 
	
		
			
				|  |  | +        this.chart3.resize()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.lineChart2.on('click', function(param, i) {
 | 
	
		
			
				|  |  | +      var that = this
 | 
	
		
			
				|  |  | +      this.chart3.on('click', function(param, i) {
 | 
	
		
			
				|  |  |          console.log(param)
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    // 部门统计
 | 
	
		
			
				|  |  | -    roadpieChart1(chart_data4, month) {
 | 
	
		
			
				|  |  | -      if (this.pieChart1 != null) {
 | 
	
		
			
				|  |  | -        this.pieChart1.dispose()
 | 
	
		
			
				|  |  | +    // 各牧场XX年每月单头牛用水量对比
 | 
	
		
			
				|  |  | +    roadChart4(chart_data) {
 | 
	
		
			
				|  |  | +      if (this.chart4 != null) {
 | 
	
		
			
				|  |  | +        this.chart4.dispose()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.pieChart1 = echarts.init(document.getElementById('pieChart1'))
 | 
	
		
			
				|  |  | +      this.chart4 = echarts.init(document.getElementById('chart4'))
 | 
	
		
			
				|  |  | +      var text = '各牧场' + parseTime(this.yearDate, '{y}') + '年每月单头牛用水量对比'
 | 
	
		
			
				|  |  |        var option = {
 | 
	
		
			
				|  |  | -        title: { text: month + '月部门统计', textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  | -        tooltip: {
 | 
	
		
			
				|  |  | -          trigger: 'item',
 | 
	
		
			
				|  |  | -          formatter: '{a} <br/>{b} : {c} ({d}%)'
 | 
	
		
			
				|  |  | +        title: { text: text, left:'left',textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  | +        tooltip: { trigger: 'axis' },
 | 
	
		
			
				|  |  | +        legend: {
 | 
	
		
			
				|  |  | +          data: chart_data.data_name,
 | 
	
		
			
				|  |  | +          left: 40,
 | 
	
		
			
				|  |  | +          bottom:0
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | +        color: ['#2dc0e8', '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | +        grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | +        xAxis: [{ type: 'category',  name: '月份',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | +        yAxis: [{ type: 'value', name: '千瓦'}],
 | 
	
		
			
				|  |  | +        series: (function() {
 | 
	
		
			
				|  |  | +          var serie = []
 | 
	
		
			
				|  |  | +          if(chart_data.data1 !== null){
 | 
	
		
			
				|  |  | +            for (var i = 0; i < chart_data.data1.length; i++) {
 | 
	
		
			
				|  |  | +              var item = {
 | 
	
		
			
				|  |  | +                name: chart_data.data_name[i],
 | 
	
		
			
				|  |  | +                type: 'line',
 | 
	
		
			
				|  |  | +                data: chart_data.data1[i].data
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +              serie.push(item)
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          return serie
 | 
	
		
			
				|  |  | +        }())
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.chart4.setOption(option)
 | 
	
		
			
				|  |  | +      window.onresize = function() {
 | 
	
		
			
				|  |  | +        this.chart4.resize()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      var that = this
 | 
	
		
			
				|  |  | +      that.chart4.on('click', function(param, i) {
 | 
	
		
			
				|  |  | +        console.log(param)
 | 
	
		
			
				|  |  | +        that.getChart5()
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    // XX月部门统计
 | 
	
		
			
				|  |  | +    roadChart5(chart_data) {
 | 
	
		
			
				|  |  | +      if (this.chart5 != null) {
 | 
	
		
			
				|  |  | +        this.chart5.dispose()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.chart5 = echarts.init(document.getElementById('chart5'))
 | 
	
		
			
				|  |  | +      var text = parseTime(new Date(), '{m}') + '月部门统计'
 | 
	
		
			
				|  |  | +      var option = {
 | 
	
		
			
				|  |  | +        title: { text: text, left:'center',textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  | +        tooltip: { trigger: 'axis' },
 | 
	
		
			
				|  |  |          legend: {
 | 
	
		
			
				|  |  | -          data: chart_data4.name, top: 40, x: 'right'
 | 
	
		
			
				|  |  | +          data: ['实际', '预算'],
 | 
	
		
			
				|  |  | +          right: 40,
 | 
	
		
			
				|  |  | +          bottom:0
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        color: ['#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | -        grid: { left: '3%', right: '5%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | +        color: ['#2dc0e8', '#769cfc'],
 | 
	
		
			
				|  |  | +        grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | +        xAxis: [{ type: 'category',  name: '部门',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | +        yAxis: [{ type: 'value',name: '千瓦', axisLabel: { formatter:'{value} 万'}}],
 | 
	
		
			
				|  |  |          series: [
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            name: '',
 | 
	
		
			
				|  |  | -            type: 'pie',
 | 
	
		
			
				|  |  | -            radius: '55%',
 | 
	
		
			
				|  |  | -            center: ['50%', '60%'],
 | 
	
		
			
				|  |  | -            data: chart_data4.psum,
 | 
	
		
			
				|  |  | -            emphasis: {
 | 
	
		
			
				|  |  | -              itemStyle: {
 | 
	
		
			
				|  |  | -                shadowBlur: 10,
 | 
	
		
			
				|  |  | -                shadowOffsetX: 0,
 | 
	
		
			
				|  |  | -                shadowColor: 'rgba(0, 0, 0, 0.5)'
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | +            name: '实际',
 | 
	
		
			
				|  |  | +            type: 'bar',
 | 
	
		
			
				|  |  | +            data: chart_data.data1,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            name: '预算',
 | 
	
		
			
				|  |  | +            type: 'bar',
 | 
	
		
			
				|  |  | +            data: chart_data.data2,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.pieChart1.setOption(option)
 | 
	
		
			
				|  |  | +      this.chart5.setOption(option)
 | 
	
		
			
				|  |  |        window.onresize = function() {
 | 
	
		
			
				|  |  | -        this.pieChart1.resize()
 | 
	
		
			
				|  |  | +        this.chart5.resize()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        var that = this
 | 
	
		
			
				|  |  | -      this.pieChart1.on('click', function(param, i) {
 | 
	
		
			
				|  |  | +      this.chart5.on('click', function(param, i) {
 | 
	
		
			
				|  |  |          console.log(param)
 | 
	
		
			
				|  |  | -        that.deptment = param.name
 | 
	
		
			
				|  |  | -        that.getBarChart2Parm.parammaps.deptName = param.name
 | 
	
		
			
				|  |  | -        that.getBarChart2()
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    // 维修成本
 | 
	
		
			
				|  |  | -    roadBarChart2(chart_data5, deptment) {
 | 
	
		
			
				|  |  | -      if (this.barChart2 != null) {
 | 
	
		
			
				|  |  | -        this.barChart2.dispose()
 | 
	
		
			
				|  |  | +    // XX牧场XX年每月用水量对比
 | 
	
		
			
				|  |  | +    roadChart6(chart_data) {
 | 
	
		
			
				|  |  | +      if (this.chart6 != null) {
 | 
	
		
			
				|  |  | +        this.chart6.dispose()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.barChart2 = echarts.init(document.getElementById('barChart2'))
 | 
	
		
			
				|  |  | +      this.chart6 = echarts.init(document.getElementById('chart6'))
 | 
	
		
			
				|  |  |        var option = {
 | 
	
		
			
				|  |  | -        title: { text: deptment + '用电量', textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  | +        title: { text: 'XX牧场XX年每月用电量对比', left:'center',textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  |          tooltip: { trigger: 'axis' },
 | 
	
		
			
				|  |  |          legend: {
 | 
	
		
			
				|  |  | -          data: ['用电量'],
 | 
	
		
			
				|  |  | -          x: 'right'
 | 
	
		
			
				|  |  | +          data: ['去年同期用量', '今年用量','预算'],
 | 
	
		
			
				|  |  | +          right: 40,
 | 
	
		
			
				|  |  | +          bottom:0
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        color: [ '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | +        color: ['#2dc0e8', '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  |          grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | -        xAxis: [{ type: 'category', data: chart_data5.typeName, name: '电表名称', axisLabel: { interval: 0 }}],
 | 
	
		
			
				|  |  | -        yAxis: [{ type: 'value', name: '电量(度)', axisLabel: { formatter: '{value}万' }}],
 | 
	
		
			
				|  |  | +        xAxis: [{ type: 'category',  name: '月份',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | +        yAxis: [{ type: 'value',name: '电量(千瓦)'}],
 | 
	
		
			
				|  |  |          series: [
 | 
	
		
			
				|  |  |            {
 | 
	
		
			
				|  |  | -            name: '用电量',
 | 
	
		
			
				|  |  | -            type: 'bar',
 | 
	
		
			
				|  |  | -            barWidth: 14,
 | 
	
		
			
				|  |  | -            data: chart_data5.eqCost,
 | 
	
		
			
				|  |  | -            emphasis: { label: { show: true, position: 'inside' }}
 | 
	
		
			
				|  |  | +            name: '去年同期用量',
 | 
	
		
			
				|  |  | +            type: 'line',
 | 
	
		
			
				|  |  | +            data: chart_data.data1,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            name: '今年用量',
 | 
	
		
			
				|  |  | +            type: 'line',
 | 
	
		
			
				|  |  | +            data: chart_data.data2,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  | +          {
 | 
	
		
			
				|  |  | +            name: '预算',
 | 
	
		
			
				|  |  | +            type: 'line',
 | 
	
		
			
				|  |  | +            data: chart_data.data3,
 | 
	
		
			
				|  |  | +            emphasis: { label: { show: true, position: 'inside' }},
 | 
	
		
			
				|  |  | +            barMaxWidth:20
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          ]
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      this.barChart2.setOption(option)
 | 
	
		
			
				|  |  | +      this.chart6.setOption(option)
 | 
	
		
			
				|  |  |        window.onresize = function() {
 | 
	
		
			
				|  |  | -        this.barChart2.resize()
 | 
	
		
			
				|  |  | +        this.chart6.resize()
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | +      var that = this
 | 
	
		
			
				|  |  | +      this.chart6.on('click', function(param, i) {
 | 
	
		
			
				|  |  | +        console.log(param)
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    // XX月每日用水量
 | 
	
		
			
				|  |  | +    roadChart7(chart_data) {
 | 
	
		
			
				|  |  | +      if (this.chart7 != null) {
 | 
	
		
			
				|  |  | +        this.chart7.dispose()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.chart7 = echarts.init(document.getElementById('chart7'))
 | 
	
		
			
				|  |  | +      var text = parseTime(new Date(), '{m}') + '月每日用水量'
 | 
	
		
			
				|  |  | +      var option = {
 | 
	
		
			
				|  |  | +        title: { text: text, left:'left',textStyle: { color: '#769cfc' }},
 | 
	
		
			
				|  |  | +        tooltip: { trigger: 'axis' },
 | 
	
		
			
				|  |  | +        legend: {
 | 
	
		
			
				|  |  | +          data: chart_data.data_name,
 | 
	
		
			
				|  |  | +          left: 40,
 | 
	
		
			
				|  |  | +          bottom:0
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        color: ['#2dc0e8', '#769cfc', '#FFB800'],
 | 
	
		
			
				|  |  | +        grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
 | 
	
		
			
				|  |  | +        xAxis: [{ type: 'category',  name: '日',data: chart_data.xdata, axisLabel: { interval: 0, rotate: 30 }}],
 | 
	
		
			
				|  |  | +        yAxis: [{ type: 'value', name: '电量(千瓦)'}],
 | 
	
		
			
				|  |  | +        series: (function() {
 | 
	
		
			
				|  |  | +          var serie = []
 | 
	
		
			
				|  |  | +          if(chart_data.data1 !== null){
 | 
	
		
			
				|  |  | +            for (var i = 0; i < chart_data.data1.length; i++) {
 | 
	
		
			
				|  |  | +              var item = {
 | 
	
		
			
				|  |  | +                name: chart_data.data_name[i],
 | 
	
		
			
				|  |  | +                type: 'line',
 | 
	
		
			
				|  |  | +                data: chart_data.data1[i].data
 | 
	
		
			
				|  |  | +              }
 | 
	
		
			
				|  |  | +              serie.push(item)
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          return serie
 | 
	
		
			
				|  |  | +        }())
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      this.chart7.setOption(option)
 | 
	
		
			
				|  |  | +      window.onresize = function() {
 | 
	
		
			
				|  |  | +        this.chart7.resize()
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      var that = this
 | 
	
		
			
				|  |  | +      this.chart7.on('click', function(param, i) {
 | 
	
		
			
				|  |  | +        console.log(param)
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -521,28 +673,7 @@ export default {
 | 
	
		
			
				|  |  |  </style>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <style lang="scss" scoped>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -.dashboard-editor-container {
 | 
	
		
			
				|  |  | -  padding: 20px;
 | 
	
		
			
				|  |  | -  background-color: rgb(240, 242, 245);
 | 
	
		
			
				|  |  | -  position: relative;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -  .github-corner {
 | 
	
		
			
				|  |  | -    position: absolute;
 | 
	
		
			
				|  |  | -    top: 0px;
 | 
	
		
			
				|  |  | -    border: 0;
 | 
	
		
			
				|  |  | -    right: 0;
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -  .chart-wrapper {
 | 
	
		
			
				|  |  | -    background: #fff;
 | 
	
		
			
				|  |  | -    padding: 16px 16px 0;
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -@media (max-width:1024px) {
 | 
	
		
			
				|  |  | -  .chart-wrapper {
 | 
	
		
			
				|  |  | -    padding: 8px;
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | +.group{
 | 
	
		
			
				|  |  | +  float: right;margin-bottom: 20px;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </style>
 |