|
@@ -1,6 +1,18 @@
|
|
|
<template>
|
|
|
<div class="content-main-manage">
|
|
|
- <div class="content-main">
|
|
|
+ <!-- <DatePicker type="date" :value="dateArr" multiple placeholder="Select date" style="width: 300px"></DatePicker> -->
|
|
|
+ <!-- <div v-show="showTable">
|
|
|
+ erwerwr
|
|
|
+ <Button @click="showCalendar">切换</Button>
|
|
|
+ </div>
|
|
|
+ <Row :gutter="16" style="height:100%" v-show="!showTable">
|
|
|
+ <Col style="height:23%" :span="8" v-for="(item,index) in monthList" :key="item"><calendar-setting ref="calendar" :currentMonthNum="index+1" :calendarData="calendarData" :initCurrentYear="year" :initCurrentMonth="item" ></calendar-setting></Col>
|
|
|
+ </Row> -->
|
|
|
+ <!-- <div v-for="(item,index) in monthList" :key="item">
|
|
|
+ <calendar-setting ref="calendar" :initCurrentYear="year" :initCurrentMonth="item" ></calendar-setting>
|
|
|
+ </div> -->
|
|
|
+ <!-- <calendar-setting ref="calendar"></calendar-setting> -->
|
|
|
+ <div class="content-main">
|
|
|
<div class="content-body-wrap">
|
|
|
<div class="content-body">
|
|
|
<div class="search-list">
|
|
@@ -17,9 +29,9 @@
|
|
|
</Select>
|
|
|
</FormItem>
|
|
|
<FormItem label="" prop="dateStr">
|
|
|
- <DatePicker type="date" :value="monitorParams.dateStr" placeholder="Select date" :clearable="false" :editable="false" class="common-date-picker date-picker-main" placement="bottom-start" v-show="monitorParams.dateType=='DAY'" @on-change="changeDate"></DatePicker>
|
|
|
- <DatePicker type="month" :value="monitorParams.dateStr" placeholder="Select year" :clearable="false" :editable="false" class="common-date-picker date-picker-main" placement="bottom-start" v-show="monitorParams.dateType=='MONTH'" @on-change="changeDate"></DatePicker>
|
|
|
- <DatePicker type="year" :value="monitorParams.dateStr" placeholder="Select year" :clearable="false" :editable="false" class="common-date-picker date-picker-main" placement="bottom-start" v-show="monitorParams.dateType=='YEAR'" @on-change="changeDate"></DatePicker>
|
|
|
+ <DatePicker type="date" :value="monitorParams.dateStr" :clearable="false" :editable="false" class="common-date-picker date-picker-main" placement="bottom-start" v-show="monitorParams.dateType=='DAY'" @on-change="changeDate"></DatePicker>
|
|
|
+ <DatePicker type="month" :value="monitorParams.dateStr" :clearable="false" :editable="false" class="common-date-picker date-picker-main" placement="bottom-start" v-show="monitorParams.dateType=='MONTH'" @on-change="changeDate"></DatePicker>
|
|
|
+ <DatePicker type="year" :value="monitorParams.dateStr" :clearable="false" :editable="false" class="common-date-picker date-picker-main" placement="bottom-start" v-show="monitorParams.dateType=='YEAR'" @on-change="changeDate"></DatePicker>
|
|
|
</FormItem>
|
|
|
<FormItem label="" >
|
|
|
<Button type="primary" class="common-btn-search" @click="searchClick">
|
|
@@ -41,7 +53,7 @@
|
|
|
<div v-show="!showImg1" class="line-loading">
|
|
|
<div class="manage-title">
|
|
|
<span>准确性-数据内容准确性</span>
|
|
|
- <span class="title-right">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
+ <span class="title-right" @click="showDetail('准确性-数据内容准确性','准确性')">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
</div>
|
|
|
<div id="line1" class="line-loading-echarts"></div>
|
|
|
</div>
|
|
@@ -54,7 +66,7 @@
|
|
|
<div v-show="!showImg2" class="line-loading">
|
|
|
<div class="manage-title">
|
|
|
<span>数据一致性-数据类型一致性</span>
|
|
|
- <span class="title-right">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
+ <span class="title-right" @click="showDetail('数据一致性-数据类型一致性','一致性')">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
</div>
|
|
|
<div id="line2" class="line-loading-echarts"></div>
|
|
|
</div>
|
|
@@ -67,7 +79,7 @@
|
|
|
<div v-show="!showImg3" class="line-loading">
|
|
|
<div class="manage-title">
|
|
|
<span>数据一致性-处理前后一致性</span>
|
|
|
- <span class="title-right">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
+ <span class="title-right" @click="showDetail('数据一致性-处理前后一致性','一致性')">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
</div>
|
|
|
<div id="line3" class="line-loading-echarts"></div>
|
|
|
</div>
|
|
@@ -82,7 +94,7 @@
|
|
|
<div v-show="!showImg4" class="line-loading">
|
|
|
<div class="manage-title">
|
|
|
<span>及时性-数据采集</span>
|
|
|
- <span class="title-right">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
+ <span class="title-right" @click="showDetail('及时性-数据采集','及时性(数据采集)')">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
</div>
|
|
|
<div id="line4" class="line-loading-echarts"></div>
|
|
|
</div>
|
|
@@ -95,7 +107,7 @@
|
|
|
<div v-show="!showImg5" class="line-loading">
|
|
|
<div class="manage-title">
|
|
|
<span>及时性-数据入库</span>
|
|
|
- <span class="title-right">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
+ <span class="title-right" @click="showDetail('及时性-数据入库','及时性(数据)')">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
</div>
|
|
|
<div id="line5" class="line-loading-echarts"></div>
|
|
|
</div>
|
|
@@ -108,7 +120,7 @@
|
|
|
<div v-show="!showImg6" class="line-loading">
|
|
|
<div class="manage-title">
|
|
|
<span>数据完整性</span>
|
|
|
- <span class="title-right">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
+ <span class="title-right" @click="showDetail('数据完整性','完整性')">详情<Icon type="ios-arrow-forward" style="margin-left:6px"/></span>
|
|
|
</div>
|
|
|
<div id="line6" class="line-loading-echarts"></div>
|
|
|
</div>
|
|
@@ -129,21 +141,23 @@
|
|
|
reset-drag-position
|
|
|
:mask-closable="false"
|
|
|
footer-hide
|
|
|
+ @on-visible-change="modalChange"
|
|
|
class-name="common-modal">
|
|
|
<div class="common-modal-body">
|
|
|
<div class="common-modal-top">
|
|
|
<div class="common-modal-top-left">
|
|
|
<span>质量规则</span>
|
|
|
- <span class="modal-top-left-color1">4444条</span>
|
|
|
+ <span class="modal-top-left-color1">{{qualityRuleSum}}条</span>
|
|
|
<span>监测记录</span>
|
|
|
- <span class="modal-top-left-color2">445544条</span>
|
|
|
+ <span class="modal-top-left-color2">{{recordSum}}条</span>
|
|
|
<span>异常记录</span>
|
|
|
- <span class="modal-top-left-color3">44条</span>
|
|
|
+ <span class="modal-top-left-color3">{{abnormalRecord}}条</span>
|
|
|
</div>
|
|
|
<div id="guage" class="common-modal-top-right"></div>
|
|
|
</div>
|
|
|
<div class="common-modal-content">
|
|
|
<span>监测异常记录</span>
|
|
|
+ <rolling-detail-table :columns1="abnormalData" apiUrl="metroapi/dataQuality/insp/trend/detail" ref="detailTable" class="rolling-detail-table"></rolling-detail-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</Modal>
|
|
@@ -156,16 +170,122 @@ import moment from 'moment'
|
|
|
export default {
|
|
|
name: "DataMonitor",
|
|
|
components: {
|
|
|
- StatisticsList
|
|
|
+ StatisticsList,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ // dateArr: ['2022-04-04','2022-04-12','2022-04-15'],
|
|
|
+ // showTable: true,
|
|
|
+ // year: new Date().getFullYear(),
|
|
|
+ // monthList:['一','二','三','四','五','六','七','八','九','十','十一','十二'],
|
|
|
+ // calendarData: [ {
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "1",
|
|
|
+ // "startDate": "2022-03-02",
|
|
|
+ // "endDate": "2022-03-31",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "3月运行计划",
|
|
|
+ // "currentMonth": 3,
|
|
|
+ // "currentDay": 1,
|
|
|
+ // },{
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "1",
|
|
|
+ // "startDate": "2022-03-02",
|
|
|
+ // "endDate": "2022-03-31",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "3月运行计划",
|
|
|
+ // "currentMonth": 3,
|
|
|
+ // "currentDay": 4,
|
|
|
+ // },
|
|
|
+ // ,{
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "2",
|
|
|
+ // "startDate": "2022-03-02",
|
|
|
+ // "endDate": "2022-03-31",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "3月运行计划",
|
|
|
+ // "currentMonth": 3,
|
|
|
+ // "currentDay": 4,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "3",
|
|
|
+ // "startDate": "2022-03-02",
|
|
|
+ // "endDate": "2022-03-31",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "3月运行计划",
|
|
|
+ // "currentMonth": 3,
|
|
|
+ // "currentDay": 4,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "1",
|
|
|
+ // "startDate": "2022-04-02",
|
|
|
+ // "endDate": "2022-04-10",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "4月运行计划",
|
|
|
+ // "currentMonth": 4,
|
|
|
+ // "currentDay": 10,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "1",
|
|
|
+ // "startDate": "2022-04-02",
|
|
|
+ // "endDate": "2022-04-10",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "4月运行计划",
|
|
|
+ // "currentMonth": 6,
|
|
|
+ // "currentDay": 6,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "1",
|
|
|
+ // "startDate": "2022-04-02",
|
|
|
+ // "endDate": "2022-04-10",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "4月运行计划",
|
|
|
+ // "currentMonth": 7,
|
|
|
+ // "currentDay": 12,
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // "id": "1507197300345442306",
|
|
|
+ // "lineId": "1",
|
|
|
+ // "startDate": "2022-04-02",
|
|
|
+ // "endDate": "2022-04-10",
|
|
|
+ // "firstTime": "06:30:00",
|
|
|
+ // "lastTime": "21:30:00",
|
|
|
+ // "gmtModified": "2022-03-29 13:58:22",
|
|
|
+ // "gmtCreate": "2022-03-25 11:26:53",
|
|
|
+ // "name": "4月运行计划",
|
|
|
+ // "currentMonth": 12,
|
|
|
+ // "currentDay": 20,
|
|
|
+ // }],
|
|
|
tabsIcon: [
|
|
|
- { imgSrc: require('@/assets/images/dataReport1.png') },
|
|
|
- { imgSrc: require('@/assets/images/dataReport2.png') },
|
|
|
- { imgSrc: require('@/assets/images/dataReport3.png') },
|
|
|
- { imgSrc: require('@/assets/images/dataReport4.png') },
|
|
|
- { imgSrc: require('@/assets/images/dataReport5.png') },
|
|
|
+ { imgSrc: require('@/assets/images/dataMonitor1.png') },
|
|
|
+ { imgSrc: require('@/assets/images/dataMonitor2.png') },
|
|
|
+ { imgSrc: require('@/assets/images/dataMonitor3.png') },
|
|
|
+ { imgSrc: require('@/assets/images/dataMonitor4.png') },
|
|
|
],
|
|
|
tabsTitleColor:['#45F2FD', '#EBF310', '#54D593', '#FD7545'],
|
|
|
unitArr: ['个','种','条','种'],
|
|
@@ -205,26 +325,78 @@ export default {
|
|
|
showImg6: false,
|
|
|
showModal: false,
|
|
|
title: '',
|
|
|
+ abnormalData: [
|
|
|
+ {
|
|
|
+ title: '规则名称',
|
|
|
+ key: 'xAxis',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ tooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '应用',
|
|
|
+ key: 'xAxis2',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ tooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '异常字段',
|
|
|
+ key: 'param01',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ tooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '更新时间',
|
|
|
+ key: 'param03',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ tooltip: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '数据记录',
|
|
|
+ key: 'param04',
|
|
|
+ align: 'center',
|
|
|
+ ellipsis: true,
|
|
|
+ tooltip: true
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ detailParams: {},
|
|
|
+ qualityRuleSum: 0,
|
|
|
+ recordSum: 0,
|
|
|
+ abnormalRecord: 0,
|
|
|
// optionsDay: {
|
|
|
// disabledDate(date) {
|
|
|
// return date && date.valueOf() < Date.now() - 86400000 //可选择今日起之后的日期
|
|
|
// }
|
|
|
// },
|
|
|
// optionsMonth: {
|
|
|
- // disabledDate(date) {
|
|
|
+ // disabledDate(date)
|
|
|
// var dateNow = new Date() ; //之前月份禁用
|
|
|
// return date && date.valueOf() < dateNow.setMonth(dateNow.getMonth()-1);
|
|
|
// }
|
|
|
// },
|
|
|
};
|
|
|
},
|
|
|
+ created () {
|
|
|
+ this.getType()
|
|
|
+ },
|
|
|
mounted() {
|
|
|
- this.getType()
|
|
|
this.getEcharts()
|
|
|
},
|
|
|
methods: {
|
|
|
+ showCalendar () {
|
|
|
+ this.showTable = false
|
|
|
+ },
|
|
|
+ changeClick() {
|
|
|
+ this.year = 2023
|
|
|
+ let arr = this.$refs.calendar
|
|
|
+ arr.forEach((item)=> {
|
|
|
+ item.onCalendarInit(this.year)
|
|
|
+ })
|
|
|
+ },
|
|
|
getType () {
|
|
|
- // 指标类型数据
|
|
|
this.$get('metroapi/application/info/list', this.applicationParams).then(res=>{
|
|
|
if (res.httpCode == 1 ){
|
|
|
this.appData = res.data.data
|
|
@@ -237,11 +409,6 @@ export default {
|
|
|
searchClick () {
|
|
|
this.$refs.statistics.getStatisList()
|
|
|
this.getEcharts()
|
|
|
- // this.getDetailData()
|
|
|
- // this.title = '准确性-数据内容准确性'
|
|
|
- // this.showModal = true
|
|
|
- // this.monitorParams.pageNum = 1
|
|
|
- // this.getTableData()
|
|
|
},
|
|
|
resetClick () {
|
|
|
this.monitorParams.appId = '-1'
|
|
@@ -251,9 +418,10 @@ export default {
|
|
|
this.getEcharts()
|
|
|
},
|
|
|
modalChange (modalStatus) {
|
|
|
- if (!modalStatus) {
|
|
|
- this.$refs.formOption.resetFields();
|
|
|
- }
|
|
|
+ if (!modalStatus) {
|
|
|
+ this.detailParams.pageNum = 1
|
|
|
+ document.querySelector(".rolling-detail-table .ivu-table-body").scrollTo(0, 0)
|
|
|
+ }
|
|
|
},
|
|
|
selectReport (val) {
|
|
|
if (val == 'DAY') {
|
|
@@ -301,7 +469,7 @@ export default {
|
|
|
this.$nextTick(() => this.creatLine(obj))
|
|
|
} else {
|
|
|
this.showImg2 = true
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
let params3 = JSON.parse(JSON.stringify(params))
|
|
|
params3.modelType = '一致性'
|
|
@@ -372,26 +540,56 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- getDetailData () {
|
|
|
- let params = {
|
|
|
- dateStrDate: '2022-03-01',
|
|
|
- endDate: '2022-03-31'
|
|
|
+ showDetail (title,modelTypeText) {
|
|
|
+ this.title = title
|
|
|
+ this.detailParams = JSON.parse(JSON.stringify(this.monitorParams))
|
|
|
+ this.detailParams.appId= this.detailParams.appId == '-1'?'':this.detailParams.appId
|
|
|
+ this.detailParams.modelType = modelTypeText
|
|
|
+ this.detailParams.pageSize = 5
|
|
|
+ this.detailParams.pageNum = 1
|
|
|
+ let params = JSON.parse(JSON.stringify(this.detailParams))
|
|
|
+ if (params.hasOwnProperty('pageNum')) {
|
|
|
+ delete params.pageNum
|
|
|
+ delete params.pageSize
|
|
|
}
|
|
|
- this.$get('metroapi/dataQuality/report/comScores',params).then(res => {
|
|
|
- if (res.httpCode == 1) {
|
|
|
+ console.log(params)
|
|
|
+ this.$get('metroapi/dataQuality/insp/trend/detail/stat',params).then(res => {
|
|
|
+ if (res.httpCode == 1) {
|
|
|
let obj = res.data
|
|
|
obj.id = 'guage'
|
|
|
this.$nextTick(() => this.creatGauge(obj))
|
|
|
+ this.qualityRuleSum = res.data.data[0].value
|
|
|
+ this.recordSum = res.data.data[1].value
|
|
|
+ this.abnormalRecord = res.data.data[2].value
|
|
|
}
|
|
|
})
|
|
|
+ this.$nextTick(()=> {
|
|
|
+ this.$refs.detailTable.getChartsDetail(this.detailParams)
|
|
|
+ this.showModal = true
|
|
|
+ })
|
|
|
},
|
|
|
+ // getDetailData () {
|
|
|
+ // let params = {
|
|
|
+ // dateStrDate: '2022-03-01',
|
|
|
+ // endDate: '2022-03-31'
|
|
|
+ // }
|
|
|
+ // this.$get('metroapi/dataQuality/report/comScores',params).then(res => {
|
|
|
+ // if (res.httpCode == 1) {
|
|
|
+ // this.summaryDeatail = res.data.data
|
|
|
+ // console.log(this.summaryDeatail)
|
|
|
+ // let obj = res.data
|
|
|
+ // obj.id = 'guage'
|
|
|
+ // this.$nextTick(() => this.creatGauge(obj))
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
creatLine (lineData) {
|
|
|
let toplinechart = echarts.init(document.getElementById(lineData.id));
|
|
|
let seriesData = _.map(lineData.legend, (item,index)=>({
|
|
|
name: lineData.legend[index], type: 'line', symbol: 'circle', symbolSize: 2,smooth: true, // 平滑曲线
|
|
|
- lineStyle: { normal: { color: lineData.lineColor[index], width: 2 } },
|
|
|
- itemStyle: { normal: { color: lineData.lineColor[index], borderColor: lineData.lineColor[index], borderWidth: 2 },
|
|
|
- emphasis: { color: '#fff' }
|
|
|
+ lineStyle: {color: lineData.lineColor[index], width: 2},
|
|
|
+ itemStyle: { color: lineData.lineColor[index], borderColor: lineData.lineColor[index], borderWidth: 2,
|
|
|
+ // emphasis: { color: '#fff' }
|
|
|
},
|
|
|
areaStyle: { opacity:0.4,color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0.3, color: lineData.lineColor[index]}, { offset: 1, color: 'rgba(0,0,0,0)' }])},
|
|
|
data: lineData.data
|
|
@@ -476,6 +674,7 @@ export default {
|
|
|
},
|
|
|
creatGauge(gaugeData) {
|
|
|
let titleArr = this.title.split('-')
|
|
|
+ console.log(titleArr)
|
|
|
let myChart = echarts.init(document.getElementById(gaugeData.id))
|
|
|
let option = {
|
|
|
series: [
|
|
@@ -487,7 +686,7 @@ export default {
|
|
|
max: 100,
|
|
|
progress: {
|
|
|
show: true,
|
|
|
- width: 18
|
|
|
+ width: 10
|
|
|
},
|
|
|
itemStyle: {
|
|
|
color: '#4992FF'
|
|
@@ -495,48 +694,50 @@ export default {
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color:[[1, '#36344E']],
|
|
|
- width: 18
|
|
|
+ width: 10
|
|
|
}
|
|
|
},
|
|
|
axisTick: {
|
|
|
show: false
|
|
|
},
|
|
|
splitLine: {
|
|
|
- length: 10,
|
|
|
+ length: 5,
|
|
|
+ distance: 5,
|
|
|
lineStyle: {
|
|
|
width: 2,
|
|
|
color: '#363349'
|
|
|
}
|
|
|
},
|
|
|
axisLabel: {
|
|
|
- distance: 25,
|
|
|
+ distance: 15,
|
|
|
color: '#fff',
|
|
|
fontSize: 12
|
|
|
},
|
|
|
anchor: {
|
|
|
show: true,
|
|
|
showAbove: true,
|
|
|
- size: 25,
|
|
|
+ size: 15,
|
|
|
itemStyle: {
|
|
|
- borderWidth: 10
|
|
|
+ borderWidth: 5
|
|
|
}
|
|
|
},
|
|
|
title: {
|
|
|
- offsetCenter: [0, '70%'],
|
|
|
+ offsetCenter: [0, '65%'],
|
|
|
fontSize: 12,
|
|
|
color:'#fff'
|
|
|
},
|
|
|
detail: {
|
|
|
valueAnimation: true,
|
|
|
- fontSize: 26,
|
|
|
- offsetCenter: [0, '40%'],
|
|
|
+ fontSize: 24,
|
|
|
+ offsetCenter: [0, '35%'],
|
|
|
formatter: '{value} %',
|
|
|
color: '#4992FF'
|
|
|
},
|
|
|
data: [
|
|
|
{
|
|
|
- value: gaugeData.scores,
|
|
|
- name: titleArr[0]+'\n\n'+titleArr[1]
|
|
|
+ value: gaugeData.data[3].value,
|
|
|
+ name: `${titleArr[0]}\n\n${titleArr[1]?titleArr[1]:''}`
|
|
|
+ // name: titleArr[0]+'\n\n'+titleArr[1]?titleArr[1]:''
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -549,23 +750,6 @@ export default {
|
|
|
myChart.resize()
|
|
|
})
|
|
|
},
|
|
|
- // 获取实时大数据处理
|
|
|
- // getRealTimeFirst() {
|
|
|
- // this.loading1 = true
|
|
|
- // this.$get('api/dataCenter/realTimeData', {
|
|
|
- // flag: 1
|
|
|
- // }).then(res => {
|
|
|
- // this.loading1 = false
|
|
|
- // if (res.httpCode == 1) {
|
|
|
- // this.showImg1 = false
|
|
|
- // let obj = res.data
|
|
|
- // obj.id = 'line'
|
|
|
- // this.$nextTick(() => this.creatLine(obj))
|
|
|
- // } else {
|
|
|
- // this.showImg1 = true
|
|
|
- // }
|
|
|
- // })
|
|
|
- // },
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
@@ -673,7 +857,7 @@ export default {
|
|
|
.common-modal-top {
|
|
|
height: 234px;
|
|
|
border: 1px solid #1F4584;
|
|
|
- padding: 20px;
|
|
|
+ padding: 15px 10px 15px 25px;
|
|
|
display: flex;
|
|
|
}
|
|
|
.common-modal-top-left {
|
|
@@ -682,7 +866,7 @@ export default {
|
|
|
align-items: center;
|
|
|
height: 100%;
|
|
|
width: 40%;
|
|
|
- span {
|
|
|
+ span {
|
|
|
width: 50%;
|
|
|
}
|
|
|
span:nth-child(odd) {
|
|
@@ -709,11 +893,16 @@ export default {
|
|
|
width: 60%;
|
|
|
}
|
|
|
.common-modal-content {
|
|
|
- margin: 20px 0;
|
|
|
+ margin: 10px 0;
|
|
|
}
|
|
|
.common-modal-content span {
|
|
|
font-size: 16px;
|
|
|
font-weight: bold;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
+>>> .common-modal-content .ivu-table-body {
|
|
|
+ max-height: 239PX;
|
|
|
+ overflow: hidden;
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
</style>
|