Browse Source

优化

master
4670101279 2 years ago
parent
commit
cc5ab0a348
  1. 4
      src/views/index.vue
  2. 5
      src/views/statistic/river/river.vue

4
src/views/index.vue

@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
<div class="blur"></div>
</div>
</div>
<div class="right">
<div class="right" @click="closeBox">
<div class="showTime"></div>
<!-- 水位趋势 -->
<div class="panel line">
@ -105,7 +105,7 @@ export default { @@ -105,7 +105,7 @@ export default {
api: '/control-api/api/daping/station/',
//
// imgapi: "https://www.huastech.com.cn",
imgapi: process.env.VUE_APP_PIC_PREFIX + '/' + process.env.VUE_APP_BASE_API,
imgapi: process.env.VUE_APP_PIC_PREFIX,
//
station: [],
level: {},

5
src/views/statistic/river/river.vue

@ -78,6 +78,7 @@ @@ -78,6 +78,7 @@
<script>
import barChart from "@/components/ChartTimeLineBar";
import { formatDate } from '@/utils/common';
export default {
name: 'index',
components:{
@ -124,8 +125,8 @@ export default { @@ -124,8 +125,8 @@ export default {
],
//
queryParams: {
endTime: '2022-07-02 00:00:00',
startTime: '2022-07-01 00:00:00',
endTime: formatDate(new Date(), 'yyyy-MM-dd hh:mm:ss'),
startTime: formatDate(new Date(new Date().getTime() - 86400 * 1000), ('yyyy-MM-dd hh:mm:ss')),
stnmId: null,
dataType: '-1'
},

Loading…
Cancel
Save