设备数据分析界面绘制以及各个配置界面新增,编辑的时候备注框的输入值限制字数
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <div style="width: 100%; height: 100%;overflow: hidden"> |
| | | <a-row type="flex" :gutter="16"> |
| | | <!--<a-col :md="5" :sm="24">--> |
| | | <!--<base-tree @getCurrSelected="changeSelectionNode"></base-tree>--> |
| | | <!--</a-col>--> |
| | | <a-col :md="5"> |
| | | <a-tabs :activeKey="activeKey" @change="tabChange"> |
| | | <a-tab-pane key="1" tab="车é´å±çº§" force-render> |
| | | <base-tree @getCurrSelected="changeSelectionNode"></base-tree> |
| | | </a-tab-pane> |
| | | <a-tab-pane key="2" tab="é¨é¨å±çº§"> |
| | | <depart-tree @getCurrSelectedDD="changeSelectionNodedd" |
| | | ></depart-tree> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </a-col> |
| | | <a-col :md="24-5" :sm="24"> |
| | | <!--<statistical-analysis-main :equip="selectEquementnode"></statistical-analysis-main>--> |
| | | <!--<device-repair-list ref="DeviceRepairList" :nodeTree='selectEquement' :nodePeople='selectPeople' :Type="slectTypeTree" />--> |
| | | <comparative-analysismain ref="comparativeAnalysismain" :nodeTree='selectEquement' :nodePeople='selectPeople' :Type="slectTypeTree"></comparative-analysismain> |
| | | </a-col> |
| | | </a-row> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTree from '../common/BaseTree' |
| | | import comparativeAnalysismain from './modules/comparativeAnalysis/comparativeAnalysismain' |
| | | export default { |
| | | name: 'ComparativeAnalysis', |
| | | components:{ |
| | | BaseTree, |
| | | comparativeAnalysismain |
| | | }, |
| | | data() { |
| | | return { |
| | | activeKey: '1', |
| | | description: '设å¤ä¿¡æ¯', |
| | | selectEquementId: '', |
| | | selectEquement: {}, |
| | | selectPeople:{}, |
| | | slectTypeTree: '', |
| | | url: { |
| | | equipmentStatistics: '/mdc/equipment/equipmentStatistics' |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | tabChange(val) { |
| | | // console.log(val) |
| | | this.activeKey = val |
| | | this.slectTypeTree = val |
| | | }, |
| | | /* changeSelection(val) { |
| | | this.selectEquementId = val |
| | | this.$refs.DeviceRepairList.pQuery(val) |
| | | },*/ |
| | | changeSelectionNode(val) { |
| | | this.selectEquement = val |
| | | this.slectTypeTree = '1' |
| | | }, |
| | | changeSelectionNodedd(val) { |
| | | this.selectPeople = val |
| | | this.slectTypeTree = '2' |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="夿³¨" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark"> |
| | | <a-textarea v-model="model.remark" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" v-model="model.remark" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | this.queryParams.collectTime = collectTime; |
| | | |
| | | this.queryParams.dateTime = this.queryParams.collectTime.format('YYYYMMDD') |
| | | this.initEquipmentNode('-1') |
| | | this.initEquipmentNode() |
| | | this.queryStatistical(); |
| | | // this.getTime(37800); |
| | | }, |
| | |
| | | this.queryParams.collectTime = val.format('YYYY-MM-DD'); |
| | | |
| | | }, |
| | | initEquipmentNode(id) { |
| | | initEquipmentNode() { |
| | | let _this = this |
| | | getAction(this.url.getBaseTree).then((res) => { |
| | | if (res.success) { |
| | | // console.log(res.result[0].entity.tierName) |
| | | _this.$set(this.queryParam, 'tierName', res.result[0].title) |
| | | _this.$set(this.queryParams, 'parentId', res.result[0].key) |
| | | _this.queryStatistical() |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | } |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['notes', validatorRules.notes]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-row> |
| | | </a-form> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="comparative_Bar" style="width: 100%;height: 700px;display: flex;flex-direction: column;overflow: scroll"> |
| | | <div id="compAnalBar1" style="flex: 1;"></div> |
| | | <div id="compAnalBar2" style="flex: 1;"></div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts' |
| | | export default { |
| | | name: 'comparativeAnalysisBar', |
| | | propa:{}, |
| | | data(){ |
| | | return{ |
| | | openRate:0, |
| | | utilizationRate:0, |
| | | openLong:0, |
| | | closeLong:0 |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | mounted() { |
| | | this.drawTu() |
| | | }, |
| | | methods:{ |
| | | drawTu(){ |
| | | let compAnalBar1 = this.$echarts.init(document.getElementById('compAnalBar1'), 'macarons'); |
| | | let compAnalBar2 = this.$echarts.init(document.getElementById('compAnalBar2'), 'macarons'); |
| | | let compAnalBarOption1 = { |
| | | tooltip: { |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | textStyle: { |
| | | color: "#fff" |
| | | } |
| | | |
| | | } |
| | | }, |
| | | legend: { |
| | | x: '4%', |
| | | top: '11%', |
| | | textStyle: { |
| | | color: '#90979c' |
| | | }, |
| | | data: ['弿ºç', 'å©ç¨ç'] |
| | | }, |
| | | toolbox: { |
| | | show : true, |
| | | feature : { |
| | | mark : {show: true}, |
| | | magicType : {show: true, type: ['line', 'bar']}, |
| | | restore : {show: true}, |
| | | saveAsImage : {show: true,name:'设å¤è¿è¡æç对æ¯åæå¾'} |
| | | } |
| | | }, |
| | | calculable: true, |
| | | grid: { |
| | | borderWidth: 0, |
| | | top: 110, |
| | | bottom: 95, |
| | | textStyle: { |
| | | color: "#fff" |
| | | } |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | type: 'category', |
| | | splitLine: { |
| | | "show": false |
| | | }, |
| | | axisTick: { |
| | | "show": false |
| | | }, |
| | | splitArea: { |
| | | show: false |
| | | }, |
| | | boundaryGap : true, |
| | | axisLabel : { |
| | | interval : 0, |
| | | rotate : 0, |
| | | show: true, |
| | | wigth:20, |
| | | splitNumber: 8, |
| | | textStyle: { |
| | | fontFamily: "微软é
é»", |
| | | fontSize: 12 |
| | | } |
| | | }, |
| | | data : [0] |
| | | } |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: 'value', |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#90979c' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | interval: 0 |
| | | |
| | | }, |
| | | splitArea: { |
| | | show: false |
| | | } |
| | | } |
| | | ], |
| | | dataZoom: [{ |
| | | show: true, |
| | | height: 30, |
| | | xAxisIndex: [0], |
| | | bottom: 30, |
| | | start: 0, |
| | | end: 100, |
| | | handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z', |
| | | handleSize: '110%', |
| | | handleStyle: { |
| | | color: "#d3dee5" |
| | | }, |
| | | textStyle: { |
| | | color: "#fff" |
| | | }, |
| | | borderColor: "#90979c" |
| | | }, { |
| | | type: "inside", |
| | | show: true, |
| | | height: 15, |
| | | start: 1, |
| | | end: 35 |
| | | }], |
| | | series: [ |
| | | { |
| | | name: '弿ºç', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#4169E1' |
| | | } |
| | | }, |
| | | data: [0], |
| | | barCategoryGap: '20%', |
| | | barGap : '-10%', |
| | | markPoint : { |
| | | data : [ |
| | | {type : 'max', name: 'æå¤§å¼',symbolSize:70}, |
| | | {type : 'min', name: 'æå°å¼',symbolSize:70} |
| | | ] |
| | | }, |
| | | markLine : { |
| | | data : [ |
| | | {type : 'average', name: 'å¹³åå¼'} |
| | | ] |
| | | } |
| | | }, |
| | | { |
| | | name: 'å©ç¨ç', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | barCategoryGap: '20%', |
| | | barGap : '-10%', |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#00ee00' |
| | | } |
| | | }, |
| | | data: [0], |
| | | markPoint : { |
| | | data : [ |
| | | {type : 'max', name: 'æå¤§å¼',symbolSize:70}, |
| | | {type : 'min', name: 'æå°å¼',symbolSize:70} |
| | | ] |
| | | }, |
| | | markLine : { |
| | | data : [ |
| | | {type : 'average', name: 'å¹³åå¼'} |
| | | ] |
| | | } |
| | | } |
| | | ] |
| | | }; |
| | | let compAnalBarOption2 = { |
| | | tooltip: { |
| | | trigger: 'axis', |
| | | axisPointer: { |
| | | type: "shadow", |
| | | textStyle: { |
| | | color: "#fff" |
| | | } |
| | | |
| | | } |
| | | }, |
| | | legend: { |
| | | x: '4%', |
| | | top: '11%', |
| | | textStyle: { |
| | | color: '#90979c' |
| | | }, |
| | | data: ['弿ºæ¶é´', 'å
³æºæ¶é´'] |
| | | }, |
| | | toolbox: { |
| | | show : true, |
| | | feature : { |
| | | mark : {show: true}, |
| | | magicType : {show: true, type: ['line', 'bar']}, |
| | | restore : {show: true}, |
| | | saveAsImage : {show: true,name:'设å¤è¿è¡æ¶é´å¯¹æ¯åæå¾'} |
| | | } |
| | | }, |
| | | calculable: true, |
| | | grid: { |
| | | borderWidth: 0, |
| | | top: 110, |
| | | bottom: 95, |
| | | textStyle: { |
| | | color: "#fff" |
| | | } |
| | | }, |
| | | xAxis: [ |
| | | { |
| | | type: 'category', |
| | | splitLine: { |
| | | "show": false |
| | | }, |
| | | axisTick: { |
| | | "show": false |
| | | }, |
| | | splitArea: { |
| | | show: false |
| | | }, |
| | | boundaryGap : true, |
| | | axisLabel : { |
| | | interval : 0, |
| | | rotate : 0, |
| | | show: true, |
| | | wigth:20, |
| | | splitNumber: 8, |
| | | textStyle: { |
| | | fontFamily: "微软é
é»", |
| | | fontSize: 12 |
| | | } |
| | | }, |
| | | data : [0] |
| | | } |
| | | ], |
| | | yAxis: [ |
| | | { |
| | | type: 'value', |
| | | splitLine: { |
| | | show: false |
| | | }, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: '#90979c' |
| | | } |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | interval: 0 |
| | | |
| | | }, |
| | | splitArea: { |
| | | show: false |
| | | } |
| | | } |
| | | ], |
| | | dataZoom: [{ |
| | | show: true, |
| | | height: 30, |
| | | xAxisIndex: [0], |
| | | bottom: 30, |
| | | start: 0, |
| | | end: 100, |
| | | handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z', |
| | | handleSize: '110%', |
| | | handleStyle: { |
| | | color: "#d3dee5" |
| | | }, |
| | | textStyle: { |
| | | color: "#fff" |
| | | }, |
| | | borderColor: "#90979c" |
| | | }, { |
| | | type: "inside", |
| | | show: true, |
| | | height: 15, |
| | | start: 1, |
| | | end: 35 |
| | | }], |
| | | series: [ |
| | | { |
| | | name: '弿ºæ¶é´', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | stack: 'sum', |
| | | barCategoryGap: '20%', |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#4169E1' |
| | | } |
| | | }, |
| | | data: [0] |
| | | }, |
| | | { |
| | | name: 'å
³æºæ¶é´', |
| | | type: 'bar', |
| | | //barWidth: 30, |
| | | stack: 'sum', |
| | | barCategoryGap: '20%', |
| | | itemStyle: { |
| | | normal: { |
| | | color: '#A8A8A8' |
| | | } |
| | | }, |
| | | data: [0] |
| | | } |
| | | ] |
| | | }; |
| | | compAnalBar1.setOption(compAnalBarOption1); |
| | | compAnalBar2.setOption(compAnalBarOption2); |
| | | window.addEventListener('resize', function() { |
| | | compAnalBar1.resize() |
| | | compAnalBar2.resize() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="comparative_Gauge" style="width: 100%;height: 700px;display: flex;flex-direction: column;overflow: scroll"> |
| | | <div style="flex: 1;text-align:center;display: flex;flex-direction: column"> |
| | | <h3 style="height: 18px;margin: 0 auto;">å©ç¨ç Top 5</h3> |
| | | |
| | | <div style="flex: 1;display: flex;"> |
| | | <div id="top1Gauge" class="div-inline"></div> |
| | | <div id="top2Gauge" class="div-inline"></div> |
| | | <div id="top3Gauge" class="div-inline"></div> |
| | | <div id="top4Gauge" class="div-inline"></div> |
| | | <div id="top5Gauge" class="div-inline"></div> |
| | | </div> |
| | | </div> |
| | | <div style="flex: 1;text-align:center;display: flex;flex-direction: column"> |
| | | <h3 style="height: 18px; margin: 0 auto;">å©ç¨ç Last 5</h3> |
| | | |
| | | <div style="flex: 1;display: flex;"> |
| | | <div id="last1Gauge" class="div-inline"></div> |
| | | <div id="last2Gauge" class="div-inline"></div> |
| | | <div id="last3Gauge" class="div-inline"></div> |
| | | <div id="last4Gauge" class="div-inline"></div> |
| | | <div id="last5Gauge" class="div-inline"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts' |
| | | export default { |
| | | name: 'comparativeAnalysisGauge', |
| | | props:{}, |
| | | data(){ |
| | | return{ |
| | | utilizationRateTopOne:0, |
| | | utilizationRateTopTwo:0, |
| | | utilizationRateTopThree:0, |
| | | utilizationRateTopFour:0, |
| | | utilizationRateTopFive:0, |
| | | utilizationRateLastOne:0, |
| | | utilizationRateLastTwo:0, |
| | | utilizationRateLastThree:0, |
| | | utilizationRateLastFour:0, |
| | | utilizationRateLastFive:0 |
| | | } |
| | | }, |
| | | mounted(){ |
| | | this.draw(); |
| | | }, |
| | | methods:{ |
| | | draw(){ |
| | | let gaugeTopChart1 = this.$echarts.init(document.getElementById('top1Gauge'),'macarons'); |
| | | let gaugeTopChart2 = this.$echarts.init(document.getElementById('top2Gauge'),'macarons'); |
| | | let gaugeTopChart3 = this.$echarts.init(document.getElementById('top3Gauge'),'macarons'); |
| | | let gaugeTopChart4 = this.$echarts.init(document.getElementById('top4Gauge'),'macarons'); |
| | | let gaugeTopChart5 = this.$echarts.init(document.getElementById('top5Gauge'),'macarons'); |
| | | let gaugeLastChart1 = this.$echarts.init(document.getElementById('last1Gauge'),'macarons'); |
| | | let gaugeLastChart2 = this.$echarts.init(document.getElementById('last2Gauge'),'macarons'); |
| | | let gaugeLastChart3 = this.$echarts.init(document.getElementById('last3Gauge'),'macarons'); |
| | | let gaugeLastChart4 = this.$echarts.init(document.getElementById('last4Gauge'),'macarons'); |
| | | let gaugeLastChart5 = this.$echarts.init(document.getElementById('last5Gauge'),'macarons'); |
| | | let gaugeTopOption1 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'TOP1' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'TOP1', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeTopOption2 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'TOP2' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'TOP2', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeTopOption3 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'TOP3' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'TOP3', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeTopOption4 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'TOP4' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'TOP4', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeTopOption5 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'TOP5' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'TOP5', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeLessOption1 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'LAST1' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'LAST1', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeLessOption2 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'LAST2' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'LAST2', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeLessOption3 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'LAST3' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'LAST3', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeLessOption4 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'LAST4' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'LAST4', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | let gaugeLessOption5 = { |
| | | title : { |
| | | x : 'center', |
| | | y : 'bottom', |
| | | text : 'LAST5' |
| | | }, |
| | | tooltip : { |
| | | formatter: "{a} <br/>{b} : {c}%" |
| | | }, |
| | | series : [ |
| | | { |
| | | name:'LAST5', |
| | | type:'gauge', |
| | | splitNumber: 10, // å岿®µæ°ï¼é»è®¤ä¸º5 |
| | | axisLine: { // åæ è½´çº¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: [[0.2, '#228b22'],[0.8, '#48b'],[1, '#ff4500']], |
| | | width: 8 |
| | | } |
| | | }, |
| | | axisTick: { // åæ è½´å°æ è®° |
| | | splitNumber: 10, // æ¯ä»½splitç»åå¤å°æ®µ |
| | | length :12, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleæ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | axisLabel: { // åæ è½´ææ¬æ ç¾ï¼è¯¦è§axis.axisLabel |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | splitLine: { // åé线 |
| | | show: true, // é»è®¤æ¾ç¤ºï¼å±æ§showæ§å¶æ¾ç¤ºä¸å¦ |
| | | length :30, // 屿§lengthæ§å¶çº¿é¿ |
| | | lineStyle: { // 屿§lineStyleï¼è¯¦è§lineStyleï¼æ§å¶çº¿æ¡æ ·å¼ |
| | | color: 'auto' |
| | | } |
| | | }, |
| | | pointer : { |
| | | width : 5 |
| | | }, |
| | | title : { |
| | | show : false, |
| | | offsetCenter: [0, '-40%'], // x, yï¼åä½px |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | fontWeight: 'bolder' |
| | | } |
| | | }, |
| | | detail : { |
| | | formatter:'{value}%', |
| | | offsetCenter: [0, '60%'], |
| | | textStyle: { // å
¶ä½å±æ§é»è®¤ä½¿ç¨å
¨å±ææ¬æ ·å¼ï¼è¯¦è§TEXTSTYLE |
| | | color: 'auto', |
| | | fontWeight: 'bolder', |
| | | fontSize:20 |
| | | } |
| | | }, |
| | | data:[{value: 0, name: 'å©ç¨ç'}] |
| | | } |
| | | ] |
| | | }; |
| | | gaugeTopChart1.setOption(gaugeTopOption1); |
| | | gaugeTopChart2.setOption(gaugeTopOption2); |
| | | gaugeTopChart3.setOption(gaugeTopOption3); |
| | | gaugeTopChart4.setOption(gaugeTopOption4); |
| | | gaugeTopChart5.setOption(gaugeTopOption5); |
| | | gaugeLastChart1.setOption(gaugeLessOption1); |
| | | gaugeLastChart2.setOption(gaugeLessOption2); |
| | | gaugeLastChart3.setOption(gaugeLessOption3); |
| | | gaugeLastChart4.setOption(gaugeLessOption4); |
| | | gaugeLastChart5.setOption(gaugeLessOption5); |
| | | window.addEventListener('resize', function() { |
| | | gaugeTopChart1.resize() |
| | | gaugeTopChart2.resize() |
| | | gaugeTopChart3.resize() |
| | | gaugeTopChart4.resize() |
| | | gaugeTopChart5.resize() |
| | | gaugeLastChart1.resize() |
| | | gaugeLastChart2.resize() |
| | | gaugeLastChart3.resize() |
| | | gaugeLastChart4.resize() |
| | | gaugeLastChart5.resize() |
| | | }) |
| | | } |
| | | |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .div-inline{ |
| | | flex: 1; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false" class="device_list"> |
| | | <div class="com_box"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div style="width: 100%; background-color: #fff" class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :md="5" :sm="5"> |
| | | <a-form-item label="åç§°"> |
| | | <a-input placeholder="è¾å
¥è®¾å¤åç§°æ¥è¯¢" :readOnly="readOnly" v-model="queryParam.tierName"></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!--<a-col :md="4" :sm="4">--> |
| | | <!--<a-form-model-item label="驱å¨ç±»å" :labelCol="labelCol" :wrapperCol="wrapperCol">--> |
| | | <!--<j-dict-select-tag :disabled="true" :readOnly="disableSubmit" placeholder="è¯·éæ©é©±å¨ç±»å"--> |
| | | <!--:triggerChange="true" dictCode="mdc_driveType"--> |
| | | <!--v-model="model.driveType" allow-clear/>--> |
| | | <!--</a-form-model-item>--> |
| | | <!--</a-col>--> |
| | | <a-col :md="9" :sm="9" :xs="4"> |
| | | <a-form-item label="æ¶é´"> |
| | | <a-range-picker @change="dateParamChange" v-model="dates" format="YYYY-MM-DD"/> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="2" :sm="3" :xs="3"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | </a-col> |
| | | <a-col :md="2" :sm="2" :xs="2"> |
| | | <a-button type="primary" @click="searchReset" icon="reload">éç½®</a-button> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- tableåºå-begin --> |
| | | <div id="DeviceList"> |
| | | <a-tabs :activeKey="activeKey" @change="tabChange" tabPosition="top"> |
| | | <a-tab-pane key="1" tab="å¾å½¢" force-render> |
| | | <comparative-analysis-bar></comparative-analysis-bar> |
| | | <!--<log-list :dataList='normalList' ref="logList" :loadingequip='loadingstayus'></log-list>--> |
| | | </a-tab-pane> |
| | | <a-tab-pane key="2" tab="仪表"> |
| | | <comparative-analysis-gauge></comparative-analysis-gauge> |
| | | <!--<work-log-list :dataList='runList' ref="workLogList" :loadingrun="loadingrunStatus"></work-log-list>--> |
| | | </a-tab-pane> |
| | | <a-tab-pane key="3" tab="饼å¾"> |
| | | <conparative-analysis-pie></conparative-analysis-pie> |
| | | <!--<alarm-log-list :dataList='waringList' ref="alarmLogList" :loadingwarn="loadingwarnStatus"></alarm-log-list>--> |
| | | </a-tab-pane> |
| | | </a-tabs> |
| | | </div> |
| | | <!-- tableåºå-end --> |
| | | </div> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import moment from 'moment' |
| | | import $ from 'jquery' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag' |
| | | import JDate from '../../../../../components/jeecg/JDate' |
| | | import { |
| | | requestPut, |
| | | deleteAction, |
| | | getAction |
| | | } from '@/api/manage' |
| | | import comparativeAnalysisBar from './comparativeAnalysisBar' |
| | | import comparativeAnalysisGauge from'./comparativeAnalysisGauge' |
| | | import conparativeAnalysisPie from './conparativeAnalysisPie' |
| | | import '@/components/table2excel/table2excel' |
| | | import { |
| | | JeecgListMixin |
| | | } from '@/mixins/JeecgListMixin' |
| | | import JInput from '@/components/jeecg/JInput' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import Tooltip from 'ant-design-vue/es/tooltip' |
| | | import { ajaxGetDictItems, getDictItemsFromCache, duplicateCheck } from '@/api/api' |
| | | export default { |
| | | name: 'comparativeAnalysismain', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | Tooltip, |
| | | comparativeAnalysisBar, |
| | | comparativeAnalysisGauge, |
| | | conparativeAnalysisPie, |
| | | JDictSelectTag, |
| | | JInput, |
| | | JDate, |
| | | JEllipsis |
| | | }, |
| | | props: { nodeTree: '', Type:'',nodePeople: '' }, |
| | | data() { |
| | | return { |
| | | activeKey: '1', |
| | | typeTree:"", |
| | | typeParent:1, |
| | | typeEquipment:1, |
| | | dates: [], |
| | | xianshi:"", |
| | | readOnly:true, |
| | | queryParam: {}, |
| | | queryParams:{}, |
| | | queryParamEquip:{}, |
| | | queryParamPeople:{}, |
| | | dataStartsoucre:[], |
| | | columns: [ |
| | | { |
| | | title: '设å¤ç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'equipmentId' |
| | | }, |
| | | { |
| | | title: '设å¤åç§°', |
| | | align: 'center', |
| | | dataIndex: 'equipmentName', |
| | | defaultSortOrder:'descend', |
| | | sorter: (a, b) => {return a.equipmentName>b.equipmentName?1:-1} |
| | | }, |
| | | { |
| | | title: '维修类å', |
| | | align: 'center', |
| | | dataIndex: 'mdcRepairTypeDictText' |
| | | }, |
| | | { |
| | | title: 'å¼å§æ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'startTime', |
| | | // scopedSlots:{customRender:'startTime'}, |
| | | // customRender:(text,row,index) => { |
| | | // return moment(text).format("YYYY-MM-DD HH:mm:ss") |
| | | // } |
| | | }, |
| | | { |
| | | title: 'ç»ææ¶é´', |
| | | align: 'center', |
| | | dataIndex: 'endTime' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | scopedSlots: {customRender: 'action'}, |
| | | align: "center", |
| | | width: 150 |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/mdc/mdcEquipmentRepair/pageList', |
| | | deleteBatch: '/mdc/mdcEquipmentRepair/delete', |
| | | getEquipmentByPid: '/mdc/mdcequipment/getEquipmentByPid', |
| | | getBaseTree: '/mdc/mdcEquipment/queryTreeListByProduction', |
| | | } |
| | | } |
| | | }, |
| | | watch:{ |
| | | Type(valmath){ |
| | | this.dataList = []; |
| | | this.queryParams.typeTree = valmath |
| | | // console.log(this.queryParams.typeTree) |
| | | }, |
| | | nodeTree(val) { //çå¬currSelected ååï¼å°åååçæ°å¼ä¼ éç» getCurrSelected äºä»¶ |
| | | if (JSON.stringify(val) != '{}') { |
| | | if (val.equipmentId) { |
| | | this.$set(this.queryParam, 'tierName', val.title) |
| | | this.queryParamEquip.parentId = "" |
| | | this.queryParams.equipmentId = val.equipmentId |
| | | this.queryParamEquip.equipmentId = val.equipmentId |
| | | } else { |
| | | this.$set(this.queryParam, 'tierName', val.title) |
| | | this.queryParamEquip.parentId = val.key |
| | | this.queryParams.equipmentId = '' |
| | | } |
| | | this.searchQuery() |
| | | } |
| | | }, |
| | | nodePeople(val){ |
| | | if (JSON.stringify(val) != '{}') { |
| | | if (val.equipmentId) { |
| | | this.$set(this.queryParam, 'tierName', val.title) |
| | | this.queryParamEquip.parentId = "" |
| | | this.queryParams.equipmentId = val.equipmentId |
| | | this.queryParamEquip.equipmentId = val.equipmentId |
| | | } else { |
| | | this.$set(this.queryParam, 'tierName', val.title) |
| | | this.queryParamPeople.parentId = val.key |
| | | this.queryParams.equipmentId = '' |
| | | } |
| | | this.searchQuery() |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | initEquipmentNode(id) { |
| | | let _this = this |
| | | getAction(this.url.getBaseTree).then((res) => { |
| | | if (res.success) { |
| | | // console.log(res.result[0].entity.tierName) |
| | | _this.$set(this.queryParam, 'tierName', res.result[0].title) |
| | | _this.$set(this.queryParams, 'parentId', res.result[0].key) |
| | | // _this.queryStatistical() |
| | | } else { |
| | | this.$message.warn(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | this.cardLoading = false |
| | | }) |
| | | // getAction(this.url.getEquipmentByPid, { pid: id }).then((res) => { |
| | | // if (res.success) { |
| | | // if (res.result) { |
| | | // _this.$set(this.queryParam, 'tierName', res.result.tierName) |
| | | // _this.$set(this.queryParam, 'equipmentId', res.result.equipmentId) |
| | | // // _this.quip = res.result |
| | | // _this.searchQuery() |
| | | // } else { |
| | | // _this.$message.warning('请é
置设å¤ï¼') |
| | | // } |
| | | // } |
| | | // }) |
| | | }, |
| | | tabChange(val) { |
| | | this.activeKey = val |
| | | }, |
| | | dateParamChange(v1, v2) { |
| | | // console.log(v1,v2) |
| | | this.queryParam.startTime = v2[0] |
| | | this.queryParam.endTime = v2[1] |
| | | // console.log(v2[0],v2[1]) |
| | | }, |
| | | onChange(value, dateString) { |
| | | // console.log('Selected Time: ', value); |
| | | // console.log('Formatted Selected Time: ', dateString); |
| | | }, |
| | | onOk(value) { |
| | | console.log('onOk: ', value); |
| | | }, |
| | | searchReset() { |
| | | if(this.queryParams.typeTree == "1"){ |
| | | this.typeTree = this.queryParams.typeTree |
| | | this.typeParent = this.queryParams.parentId |
| | | this.typeEquipment = this.queryParams.equipmentId |
| | | this.queryParams = {} |
| | | this.queryParam = {} |
| | | this.dates = [] |
| | | this.queryParams.typeTree = this.typeTree |
| | | this.queryParams.parentId = this.typeParent |
| | | if(this.queryParams.parentId != ""){ |
| | | this.queryParams.equipmentId = "" |
| | | }else{ |
| | | if(this.queryParams.equipmentId == this.queryParamEquip.equipmentId){ |
| | | this.queryParams.equipmentId = this.typeEquipment |
| | | }else{ |
| | | this.queryParams.equipmentId = this.queryParamEquip.equipmentId |
| | | } |
| | | |
| | | } |
| | | |
| | | this.ipagination.current = 1 |
| | | this.ResetloadData(); |
| | | }else{ |
| | | this.typeTree = this.queryParams.typeTree |
| | | this.typeParent = this.queryParams.parentId |
| | | // this.typeEquipment = this.queryParams.equipmentId |
| | | this.queryParams = {} |
| | | this.queryParam = {} |
| | | this.dates = [] |
| | | this.queryParams.typeTree = this.typeTree |
| | | this.queryParams.parentId = this.typeParent |
| | | // this.queryParams.equipmentId = this.typeEquipment |
| | | this.ipagination.current = 1 |
| | | this.ResetloadData(); |
| | | } |
| | | |
| | | }, |
| | | ResetloadData() { |
| | | if(!this.url.list){ |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | if(!params){ |
| | | return false; |
| | | } |
| | | params.typeTree = this.queryParams.typeTree |
| | | params.parentId = this.queryParams.parentId |
| | | params.equipmentId = this.queryParams.equipmentId |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records||res.result; |
| | | // this.initDeviceType(this.dataSource) |
| | | //update-begin---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | // this.dataSource = res.result.records||res.result; |
| | | if(res.result.total) |
| | | { |
| | | this.ipagination.total = res.result.total; |
| | | }else{ |
| | | this.ipagination.total = 0; |
| | | } |
| | | //update-end---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | }else{ |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | handleEdit: function (record) { |
| | | this.$refs.modalFormedit.edit(record); |
| | | this.$refs.modalFormedit.title = "ç¼è¾"; |
| | | this.$refs.modalFormedit.disableSubmit = false; |
| | | }, |
| | | handleTableChange(pagination, filters, sorter) { |
| | | this.dataSource = [] |
| | | //å页ãæåºãçéååæ¶è§¦å |
| | | //TODO çé |
| | | // console.log(pagination) |
| | | if (Object.keys(sorter).length > 0) { |
| | | this.isorter.column = sorter.field; |
| | | this.isorter.order = "ascend" == sorter.order ? "asc" : "desc" |
| | | } |
| | | this.ipagination = pagination; |
| | | //è·åæ¥è¯¢æ¡ä»¶ |
| | | let sqp = {} |
| | | if(this.superQueryParams){ |
| | | sqp['superQueryParams']=encodeURI(this.superQueryParams) |
| | | sqp['superQueryMatchType'] = this.superQueryMatchType |
| | | } |
| | | var param = Object.assign(sqp, this.queryParams, this.isorter ,this.filters); |
| | | param.pageNo = this.ipagination.current; |
| | | param.pageSize = this.ipagination.pageSize; |
| | | param.field = this.getQueryField(); |
| | | param.parentId = this.queryParams.parentId; |
| | | param.equipmentId = this.queryParams.equipmentId; |
| | | param.startTime = this.queryParam.startTime; |
| | | param.endTime = this.queryParam.endTime; |
| | | getAction(this.url.list,param).then((res) => { |
| | | if(res.success){ |
| | | this.dataSource = res.result.records||res.result; |
| | | if(res.result.total) |
| | | { |
| | | this.ipagination.total = res.result.total; |
| | | }else{ |
| | | this.ipagination.total = 0; |
| | | } |
| | | }else{ |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | searchQueryEdit(){ |
| | | if(this.queryParams.typeTree == "1"){ |
| | | this.queryParams.parentId = this.queryParamEquip.parentId |
| | | }else{ |
| | | this.queryParams.parentId = this.queryParamPeople.parentId |
| | | this.queryParams.equipmentIds = "" |
| | | } |
| | | this.dataSource = []; |
| | | //è·åæ¥è¯¢æ¡ä»¶ |
| | | let sqp = {} |
| | | if(this.superQueryParams){ |
| | | sqp['superQueryParams']=encodeURI(this.superQueryParams) |
| | | sqp['superQueryMatchType'] = this.superQueryMatchType |
| | | } |
| | | var param = Object.assign(sqp, this.queryParams, this.isorter ,this.filters); |
| | | param.pageNo = this.ipagination.current; |
| | | param.pageSize = this.ipagination.pageSize; |
| | | param.field = this.getQueryField(); |
| | | param.parentId = this.queryParams.parentId; |
| | | param.equipmentId = this.queryParams.equipmentId; |
| | | param.startTime = this.queryParam.startTime; |
| | | param.endTime = this.queryParam.endTime; |
| | | getAction(this.url.list,param).then((res) => { |
| | | if(res.success){ |
| | | this.dataSource = res.result.records||res.result; |
| | | if(res.result.total) |
| | | { |
| | | this.ipagination.total = res.result.total; |
| | | }else{ |
| | | this.ipagination.total = 0; |
| | | } |
| | | }else{ |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | searchQuery(){ |
| | | if(this.queryParams.typeTree == "1"){ |
| | | this.queryParams.parentId = this.queryParamEquip.parentId |
| | | // this.queryParams.equipmentId = this.queryParamEquip.equipmentId |
| | | |
| | | }else{ |
| | | this.queryParams.parentId = this.queryParamPeople.parentId |
| | | |
| | | // this.queryParams.equipmentId = "" |
| | | } |
| | | this.dataSource = []; |
| | | //è·åæ¥è¯¢æ¡ä»¶ |
| | | let sqp = {} |
| | | if(this.superQueryParams){ |
| | | sqp['superQueryParams']=encodeURI(this.superQueryParams) |
| | | sqp['superQueryMatchType'] = this.superQueryMatchType |
| | | } |
| | | var param = Object.assign(sqp, this.queryParams, this.isorter ,this.filters); |
| | | param.pageNo = 1; |
| | | param.pageSize = this.ipagination.pageSize; |
| | | param.field = this.getQueryField(); |
| | | param.parentId = this.queryParams.parentId; |
| | | param.equipmentId = this.queryParams.equipmentId; |
| | | param.startTime = this.queryParam.startTime; |
| | | param.endTime = this.queryParam.endTime; |
| | | // console.log(param); |
| | | getAction(this.url.list,param).then((res) => { |
| | | if(res.success){ |
| | | this.dataSource = res.result.records||res.result; |
| | | if(res.result.total) |
| | | { |
| | | this.ipagination.total = res.result.total; |
| | | }else{ |
| | | this.ipagination.total = 0; |
| | | } |
| | | }else{ |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | loadData(arg) { |
| | | if(!this.url.list){ |
| | | this.$message.error("请设置url.list屿§!") |
| | | return |
| | | } |
| | | //å è½½æ°æ® è¥ä¼ å
¥åæ°1åå 载第ä¸é¡µçå
容 |
| | | if (arg === 1) { |
| | | this.ipagination.current = 1; |
| | | } |
| | | var params = this.getQueryParams();//æ¥è¯¢æ¡ä»¶ |
| | | if(!params){ |
| | | return false; |
| | | } |
| | | this.loading = true; |
| | | getAction(this.url.list, params).then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records||res.result; |
| | | // this.initDeviceType(this.dataSource) |
| | | //update-begin---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | // this.dataSource = res.result.records||res.result; |
| | | if(res.result.total) |
| | | { |
| | | this.ipagination.total = res.result.total; |
| | | }else{ |
| | | this.ipagination.total = 0; |
| | | } |
| | | //update-end---author:zhangyafei Date:20201118 forï¼éé
ä¸åé¡µçæ°æ®å表------------ |
| | | }else{ |
| | | this.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | }, |
| | | modalFormOk(val) { |
| | | // æ°å¢/ä¿®æ¹ æåæ¶ï¼éè½½å表 |
| | | this.searchQueryEdit(); |
| | | // this.$emit('openBasetree','') |
| | | this.selectedRowKeys = [] |
| | | }, |
| | | handleDelete: function (id) { |
| | | if(!this.url.deleteBatch){ |
| | | this.$message.error("请设置url.delete屿§!") |
| | | return |
| | | } |
| | | var that = this; |
| | | deleteAction(that.url.deleteBatch, {id: id}).then((res) => { |
| | | if (res.success) { |
| | | //éæ°è®¡ç®å页é®é¢ |
| | | that.reCalculatePage(1) |
| | | that.$message.success(res.message); |
| | | that.searchQuery(); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }); |
| | | }, |
| | | handleAdd() { |
| | | this.$refs.modalForm.add(this.node) |
| | | this.$refs.modalForm.title = 'æ°å¢' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | }, |
| | | handleAddXIU() { |
| | | this.$refs.modalFormadd.add() |
| | | this.$refs.modalFormadd.title = 'æ°å¢' |
| | | this.$refs.modalFormadd.disableSubmit = false |
| | | }, |
| | | pQuery(parentId) { |
| | | this.queryParam.parentId = parentId[0] |
| | | if(this.selectedRowKeys.length >= 1) { |
| | | this.selectedRowKeys.length = 0 |
| | | } |
| | | this.loadData() |
| | | }, |
| | | onSelectChange(selectedRowKeys) { |
| | | this.selectedRowKeys = selectedRowKeys |
| | | }, |
| | | initEquipment(id) { |
| | | let _this = this |
| | | getAction(this.url.getEquipmentByPid, { pid: id }).then((res) => { |
| | | if (res.success) { |
| | | if (res.result) { |
| | | _this.$set(this.queryParams, 'equipmentName', res.result.equipmentName) |
| | | _this.$set(this.queryParams, 'equipmentId', res.result.equipmentId) |
| | | _this.equipment = res.result |
| | | _this.searchQuery() |
| | | } else { |
| | | _this.$message.warning('请é
置设å¤ï¼') |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | exportExcel() { |
| | | $("#DeviceList").table2excel({ |
| | | exclude: ".noExl", |
| | | name: "Excel Document Name", |
| | | filename: "设å¤ç»´ä¿®è¯¦æ
", |
| | | exclude_img: true, |
| | | fileext: ".xls", |
| | | exclude_links: true, |
| | | exclude_inputs: true |
| | | }); |
| | | }, |
| | | }, |
| | | created() { |
| | | this.dates = [moment().subtract('days', 7), moment().subtract('days', 0)] |
| | | this.queryParam.startTime = moment(this.dates[0]).format('YYYYMMDD') |
| | | this.queryParam.endTime = moment(this.dates[1]).format('YYYYMMDD') |
| | | this.queryParam.typeTree = "1"; |
| | | this.initEquipmentNode() |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | /*@import '~@assets/less/common.less';*/ |
| | | |
| | | @media screen and (min-width: 1920px){ |
| | | .device_list{ |
| | | height: 811px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (min-width: 1680px) and (max-width: 1920px){ |
| | | .device_list{ |
| | | height: 811px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (min-width: 1400px) and (max-width: 1680px){ |
| | | .device_list{ |
| | | height: 663px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (min-width: 1280px) and (max-width: 1400px){ |
| | | .device_list{ |
| | | height: 564px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | @media screen and (max-width: 1280px){ |
| | | .device_list{ |
| | | height: 564px!important; |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | /*.device_list{*/ |
| | | /*display: flex;*/ |
| | | /*}*/ |
| | | /*.device_list .table-page-search-wrapper{*/ |
| | | /**/ |
| | | /*}*/ |
| | | /deep/ .ant-card-body{ |
| | | height: 100%!important; |
| | | } |
| | | .device_list .com_box{ |
| | | display: flex!important; |
| | | height: 100%!important; |
| | | flex-direction: column!important; |
| | | } |
| | | .device_list .table-page-search-wrapper{ |
| | | height: 6%!important; |
| | | } |
| | | .device_list #DeviceList{ |
| | | height: 90%!important; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="comparative_pie" style="width: 100%;height: 600px;display: flex;overflow: scroll"> |
| | | <div id="compAnalPie1" style="flex: 1;"></div> |
| | | <div id="compAnalPie2" style="flex: 1;"></div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from 'echarts' |
| | | export default { |
| | | name: 'conparativeAnalysisPie', |
| | | propa:{}, |
| | | data(){ |
| | | return{ |
| | | closeRate:0, |
| | | openRate:0, |
| | | usedRate:0, |
| | | waitRate:0, |
| | | } |
| | | }, |
| | | created(){ |
| | | |
| | | }, |
| | | mounted() { |
| | | this.drawTu() |
| | | }, |
| | | methods:{ |
| | | drawTu(){ |
| | | let pieCompChart1 = this.$echarts.init(document.getElementById('compAnalPie1'),'macarons'); |
| | | let pieCompChart2 = this.$echarts.init(document.getElementById('compAnalPie2'),'macarons'); |
| | | let pieCompChartOption1 = { |
| | | title: { |
| | | x: 'center', |
| | | subtext: '弿ºæç' |
| | | }, |
| | | tooltip: { |
| | | trigger: 'item', |
| | | formatter: "{a} <br/>{b} : {c} ({d}%)" |
| | | }, |
| | | legend: { |
| | | orient: 'vertical', |
| | | x: 'left', |
| | | y: 'bottom', |
| | | data: ['弿ºç', 'å
³æºç'] |
| | | }, |
| | | calculable: true, |
| | | series: [{ |
| | | name: '弿ºæç', |
| | | type: 'pie', |
| | | radius: '70%', |
| | | center: ['55%', '55%'], |
| | | itemStyle: { |
| | | normal: { |
| | | color: function (params) { |
| | | var colorList = ['#4169E1', '#A8A8A8']; |
| | | return colorList[params.dataIndex] |
| | | }, |
| | | label: { |
| | | show: true, |
| | | position: 'top', |
| | | formatter: '{b}\n{c}' |
| | | } |
| | | } |
| | | }, |
| | | data: [{value: 0, name: '弿ºç'}, |
| | | {value: 0, name: 'å
³æºç'}] |
| | | }] |
| | | }; |
| | | let pieCompChartOption2 = { |
| | | title: { |
| | | x: 'center', |
| | | subtext: 'è¿è¡æç' |
| | | }, |
| | | tooltip: { |
| | | trigger: 'item', |
| | | formatter: "{a} <br/>{b} : {c} ({d}%)" |
| | | }, |
| | | legend: { |
| | | orient: 'vertical', |
| | | x: 'left', |
| | | y: 'bottom', |
| | | data: ['å å·¥ç', 'å¾
æºç', 'å
³æºç'] |
| | | }, |
| | | calculable: true, |
| | | series: [{ |
| | | name: 'è¿è¡æç', |
| | | type: 'pie', |
| | | radius: '70%', |
| | | center: ['55%', '55%'], |
| | | itemStyle: { |
| | | normal: { |
| | | color: function (params) { |
| | | var colorList = ['#00ee00', '#FCCE10', '#A8A8A8']; |
| | | return colorList[params.dataIndex] |
| | | }, |
| | | label: { |
| | | show: true, |
| | | position: 'top', |
| | | formatter: '{b}\n{c}' |
| | | } |
| | | } |
| | | }, |
| | | data: [{value: 0, name: 'å å·¥ç'}, |
| | | {value: 0, name: 'å¾
æºç'}, |
| | | {value: 0, name: 'å
³æºç'}] |
| | | }] |
| | | }; |
| | | pieCompChart1.setOption(pieCompChartOption1); |
| | | pieCompChart2.setOption(pieCompChartOption2); |
| | | window.addEventListener('resize', function() { |
| | | pieCompChart1.resize() |
| | | pieCompChart2.resize() |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |
| | |
| | | exclude_img: true, |
| | | fileext: ".xls", |
| | | exclude_links: true, |
| | | exclude_inputs: true |
| | | exclude_inputs: false |
| | | }); |
| | | }, |
| | | showIdentifying() { |
| | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | if (!err) { |
| | | that.confirmLoading = true |
| | | let formData = Object.assign(this.model, values) |
| | | let obj |
| | | if (!this.model.id) { |
| | | obj = postAction(this.url.add, formData) |
| | | } else { |
| | | obj = requestPut(this.url.edit, formData, { |
| | | id: this.model.id |
| | | let stat = formData.processQuantity |
| | | let end = formData.unqualifiedQuantity |
| | | if(end>stat){ |
| | | that.$message.warning("ä¸åæ ¼æ°éå¿
é¡»å°äºçäºå å·¥æ°é"); |
| | | that.confirmLoading = false |
| | | }else{ |
| | | let obj |
| | | if (!this.model.id) { |
| | | obj = postAction(this.url.add, formData) |
| | | } else { |
| | | obj = requestPut(this.url.edit, formData, { |
| | | id: this.model.id |
| | | }) |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("æ·»å æå") |
| | | // that.$message.success(res.message) |
| | | that.$emit('ok', res.result) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |
| | | that.close() |
| | | }) |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("ä¿®æ¹æå") |
| | | // that.$message.success(res.message) |
| | | that.$emit('ok', res.result) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |
| | | that.close() |
| | | }) |
| | | // let start = moment(formData.startTime).format('YYYY-MM-DD HH:mm:ss'); |
| | | // let end = moment(formData.endTime).format('YYYY-MM-DD HH:mm:ss'); |
| | | // let startOne = start.replace(/:/g,''); |
| | | // let endOne = end.replace(/:/g,''); |
| | | // var data = new Date(); |
| | | // let stertDate = moment(data).format("YYYY-MM-DD HH:mm:ss"); |
| | | // let dataStart = stertDate.replace(/:/g,''); |
| | | // if(startOne < dataStart){ |
| | | // that.$message.warning("å¼å§æ¶é´ä¸è½å°äºå½åæ¶é´") |
| | | // that.confirmLoading = false |
| | | // }else{ |
| | | // if(startOne>=endOne){ |
| | | // that.$message.warning("ç»ææ¶é´ä¸è½å°äºå¼å§æ¶é´"); |
| | | // // console.log(this.model) |
| | | // // this.endTime = '' |
| | | // that.confirmLoading = false |
| | | // }else{ |
| | | |
| | | } |
| | | // } |
| | | |
| | | // } |
| | | }) |
| | | }, |
| | | handleCancel() { |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" :maxLength ="20" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong1" :wrapperCol="wrapperColLong1"> |
| | | <a-textarea v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="夿³¨" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | <a-textarea :maxLength="20" v-decorator="['remark', validatorRules.remark]" placeholder="请è¾å
¥å¤æ³¨" ></a-textarea> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |