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

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

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

Loading…
Cancel
Save