提交 | 用户 | 时间
|
850106
|
1 |
<template> |
H |
2 |
<el-card shadow="never" class="aui-card--fill"> |
|
3 |
<div id="data-view"> |
|
4 |
<div id="title-bar"> |
|
5 |
<div class="title-text"> |
|
6 |
<img :src="img_title"/> |
|
7 |
</div> |
|
8 |
</div> |
|
9 |
<div id="data-body"> |
|
10 |
<decision-evaluate></decision-evaluate> |
|
11 |
</div> |
|
12 |
</div> |
|
13 |
<div id="title-tab"> |
|
14 |
<el-button type="text" class="menu-item" style="padding: 0;" @click="back()" > |
|
15 |
<img :src="img_title_tab_right"/> |
|
16 |
</el-button> |
|
17 |
</div> |
|
18 |
</el-card> |
|
19 |
</template> |
|
20 |
<script> |
|
21 |
|
|
22 |
import DecisionEvaluate from "@/views/modules/decision/components/decision-evaluate.vue"; |
|
23 |
import {reWriteUrlSVG} from '@/utils/hostUtil' |
|
24 |
|
|
25 |
export default { |
|
26 |
components: {DecisionEvaluate}, |
|
27 |
data() { |
|
28 |
return { |
|
29 |
img_title: this.doEeWriteUrlSVG('svg/设备健康评价.svg'), |
|
30 |
img_title_tab_right: this.doEeWriteUrlSVG('svg/设备评价.svg') |
|
31 |
} |
|
32 |
}, |
|
33 |
methods: { |
|
34 |
doEeWriteUrlSVG(url) { |
|
35 |
return reWriteUrlSVG(url) |
|
36 |
}, |
|
37 |
back(){ |
|
38 |
this.$router.replace({ name: 'decision-device-health-evaluate' }) |
|
39 |
} |
|
40 |
} |
|
41 |
} |
|
42 |
|
|
43 |
</script> |
|
44 |
<style scoped> |
|
45 |
.aui-card--fill { |
|
46 |
background-image: url('./img/bg.png'); |
|
47 |
background-size: 101% 101%; |
|
48 |
background-repeat: no-repeat; |
|
49 |
} |
|
50 |
|
|
51 |
#data-view { |
|
52 |
width: 100%; |
|
53 |
height: calc(calc(100vh) - 80px); |
|
54 |
padding: 5px; |
|
55 |
display: flex; |
|
56 |
flex-direction: column; |
|
57 |
margin-top: -20px; |
|
58 |
} |
|
59 |
|
|
60 |
#title-bar { |
|
61 |
width: 100%; |
|
62 |
height: 8%; |
|
63 |
} |
|
64 |
|
|
65 |
#title-tab { |
|
66 |
width: 100%; |
|
67 |
height: 4vh; |
|
68 |
margin-top: 8px; |
|
69 |
display: flex; |
|
70 |
flex-direction: row; |
|
71 |
justify-content: center; |
|
72 |
} |
|
73 |
|
|
74 |
.title-text { |
|
75 |
overflow: hidden; |
|
76 |
} |
|
77 |
|
|
78 |
.title-text img { |
|
79 |
width: 100%; |
|
80 |
height: auto; |
|
81 |
object-fit: contain; |
|
82 |
} |
|
83 |
|
|
84 |
#data-body { |
|
85 |
width: 100%; |
|
86 |
height: 92%; |
|
87 |
display: flex; |
|
88 |
flex-direction: row; |
|
89 |
} |
|
90 |
</style> |