diff --git a/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue b/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue index 4045c752..ff45dd42 100644 --- a/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue +++ b/src/views/safetyEnvironmental/environmental/voc/vocManagement/index.vue @@ -9,10 +9,11 @@
-

{{item.checkValue ? (item.checkValue).toFixed(2) : '-'}}

+

{{ item.checkValue ? (item.checkValue).toFixed(2) : '-' }}

- {{item.name}}

+ {{ item.name }} +

@@ -24,8 +25,8 @@ 检测指标趋势图 - - + +
@@ -37,11 +38,11 @@ import LineChart from './../../components/lineChart' import SearchArea from './../../components/searchArea' import moment from 'moment' export default { - name: 'Voc', - data(){ + name: 'VocManagement', + data() { return { - realtimeList:[], - queryParams:{ + realtimeList: [], + queryParams: { checkType: 3, timeDim: null, timeRange: [] @@ -53,18 +54,18 @@ export default { mounted() { this.getMsg() this.queryParams.timeDim = this.getDictDatas(this.DICT_TYPE.TIME_DIM)[0].value // 默认时 - this.queryParams.timeRange = [moment().startOf('day')+0, moment().endOf('day')-59*61*1000] + this.queryParams.timeRange = [moment().startOf('day') + 0, moment().endOf('day') - 59 * 61 * 1000] this.getTrend() }, methods: { getMsg() { - environmentalCheckRealtime({checkType: 3}).then(res => { + environmentalCheckRealtime({ checkType: 3 }).then(res => { console.log(res) this.realtimeList = res.data || [] }) }, getTrend() { - environmentalCheckRealtimeTrend({...this.queryParams}).then(res => { + environmentalCheckRealtimeTrend({ ...this.queryParams }).then(res => { if (res.code === 0) { this.chartData = res.data } else { @@ -85,34 +86,41 @@ export default {