18 |
19 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
48 |
49 |
50 |
51 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/src/views/point/value/card/index.ts:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2016-present the IoT DC3 original author or authors.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * https://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | import { defineComponent, onMounted, reactive } from 'vue'
18 | import { CircleClose, Edit, Management, Sunrise, Sunset, Timer, ZoomIn } from '@element-plus/icons-vue'
19 |
20 | import { TinyArea } from '@antv/g2plot'
21 |
22 | import { copy, timestamp } from '@/utils/CommonUtil'
23 |
24 | export default defineComponent({
25 | name: 'PointValueCard',
26 | components: {
27 | Edit,
28 | Sunset,
29 | Timer,
30 | Management,
31 | Sunrise,
32 | ZoomIn
33 | },
34 | props: {
35 | embedded: {
36 | type: String,
37 | default: () => {
38 | return ''
39 | }
40 | },
41 | data: {
42 | type: Object,
43 | default: () => {
44 | return {}
45 | }
46 | },
47 | device: {
48 | type: Object,
49 | default: () => {
50 | return {}
51 | }
52 | },
53 | point: {
54 | type: Object,
55 | default: () => {
56 | return {}
57 | }
58 | },
59 | unit: {
60 | type: String,
61 | default: ''
62 | },
63 | historyData: {
64 | type: Array