1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| <template>
| <div class="lineLossBox">
| <el-image style="width: 100%; height:100%" :src="imgUrl" :preview-src-list="[imgUrl]">
| </el-image>
| </div>
| </template>
|
| <script>
| import { py_arima } from '@/api/mapView/map.js';
| export default {
| data() {
| return {
| imgUrl: null,
| }
| },
| mounted() {
| this.initPyArima();
| },
| methods: {
| initPyArima() {
| py_arima().then(response => {
| if (response.status != 200) return
| this.imgUrl = config.pyServices + '/image?file_name=' + response.data.image1
|
| })
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .lineLossBox {
| width: 100%;
| height: 100%;
| padding:10px;
| }
| </style>
|
|