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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
| <template>
| <div>
| <!-- 详情弹窗 -->
| <vol-box v-model="showDetialBox" :lazy="true" :height="500" :padding="15" title="日志详情">
| <div>
| id:{{ rowData.id }}
| <hr />
| <b>时间:</b>
| {{ rowData.createtime }}
| <br /><br />
| <b>描述:</b>
| <br />
| {{ rowData.describe }}
| <br />
| <br />
| <b>详情:</b>
| <br />
| <pre>{{ safelyParseJSON(rowData.info) }}</pre>
| <br />
| </div>
| </vol-box>
| </div>
| </template>
|
| <script defer = "true">
| import VolBox from "@/components/basic/VolBox.vue";
| export default {
| components: { "vol-box": VolBox },
| methods: {},
| data() {
| return {
| showDetialBox: false,
| rowData: "",
| };
| },
| methods: {
| safelyParseJSON(json) {
| try {
| return JSON.parse(json);
| } catch (e) {
| return json;
| }
| }
| },
| };
| </script>
|
|
| <style>
| .formContainer {
| position: absolute;
| width: 100%;
| height: 100%;
| display: flex;
| justify-content: center;
| align-items: center;
| }
| </style>
|
|
|